当前位置: 首页>>代码示例>>C#>>正文


C# Form.Hide方法代码示例

本文整理汇总了C#中Form.Hide方法的典型用法代码示例。如果您正苦于以下问题:C# Form.Hide方法的具体用法?C# Form.Hide怎么用?C# Form.Hide使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Form的用法示例。


在下文中一共展示了Form.Hide方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: CleaniREB

	public void CleaniREB()
	{
		MDIMain.dfuinstructions.Visible = false;
		MDIMain.dfuinstructionstxt.Visible = false;
		MDIMain.blue.Visible = false;
		MDIMain.Button1.Visible = false;
		BackgroundWorker1.Dispose();
		BackgroundWorker2.Dispose();
		// Display a child form.
		Form frm = new Form();
		frm.MdiParent = MDIMain;
		frm.Width = this.Width / 2;
		frm.Height = this.Height / 2;
		frm.Show();
		frm.Hide();

		Welcome.MdiParent = MDIMain;
		Welcome.Show();
		Welcome.Button1.Enabled = false;
		About.MdiParent = MDIMain;
		About.Show();
		About.BringToFront();

		MDIMain.done.Enabled = false;
		MDIMain.done.Checked = false;
		MDIMain.donetxt.ForeColor = Color.DimGray;
		this.Dispose();
	}
开发者ID:bobbytdotcom,项目名称:iFaith,代码行数:28,代码来源:DFU.cs

示例2: MDIMain_Load

	private void MDIMain_Load(System.Object sender, System.EventArgs e)
	{
		SetMdiClientBorder(false);
		foreach (Control ctl in this.Controls) {
			if (ctl is MdiClient) {
				ctl.BackColor = this.BackColor;
			}
		}
		// Display a child form.
		Form frm = new Form();
		frm.MdiParent = this;
		frm.Width = this.Width / 2;
		frm.Height = this.Height / 2;
		frm.Show();
		frm.Hide();

		this.Text = "iFaith v" + VersionNumber + " -- By: iH8sn0w";

		Welcome.MdiParent = this;
		Welcome.Show();
		Welcome.Button1.Enabled = false;
		About.MdiParent = this;
		About.Show();
		About.BringToFront();
		temppath = System.Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData) + "\\Temp\\iFaith";
		Folder_Delete(temppath);
		Create_Directory(temppath);
		// SendKeys
		Microsoft.Win32.RegistryKey NewKey = Microsoft.Win32.Registry.LocalMachine.OpenSubKey("Software\\Microsoft\\Windows NT\\CurrentVersion", true);
		string GetVal = Convert.ToString(NewKey.GetValue("ProductName"));
		if (GetVal.Contains("Windows XP")) {
			NewKey = Microsoft.Win32.Registry.LocalMachine.OpenSubKey("Software\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\{FF66E9F6-83E7-3A3E-AF14-8DE9A809A6A4}", true);
			try {
				GetVal = Convert.ToString(NewKey.GetValue("DisplayName"));
			} catch (Exception ex) {
				//uh-oh...
			}
			if (GetVal.Contains("C++")) {
			//MsgBox("INSTALLED!", MsgBoxStyle.Information)
			} else {
				InstallVCPP.RunWorkerAsync();
				//MsgBox("NOT INSTALLED!", MsgBoxStyle.Information)
			}
		}
	}
开发者ID:bobbytdotcom,项目名称:iFaith,代码行数:45,代码来源:MDIMain.cs

示例3: Button4_Click

	private void Button4_Click(System.Object sender, System.EventArgs e)
	{
		// Display a child form.
		Button4.Enabled = false;
		this.Enabled = false;
		CancelDownload = true;
		if (Worker.IsBusy == true) {
			Worker.CancelAsync();
		}
		Form frm = new Form();
		frm.MdiParent = MDIMain;
		frm.Width = this.Width / 2;
		frm.Height = this.Height / 2;
		frm.Show();
		frm.Hide();

		Welcome.MdiParent = MDIMain;
		Welcome.Show();
		Welcome.Button1.Enabled = false;
		About.MdiParent = MDIMain;
		About.Show();
		About.BringToFront();

		MDIMain.done.Enabled = false;
		MDIMain.done.Checked = false;
		MDIMain.donetxt.ForeColor = Color.DimGray;
		Delay(1);
		this.Dispose();
	}
开发者ID:bobbytdotcom,项目名称:iFaith,代码行数:29,代码来源:Welcome-ipsw.cs

示例4: Button1_Click

	private void Button1_Click(System.Object sender, System.EventArgs e)
	{
		dynamic Answer = null;
		Answer = Interaction.MsgBox("Are you sure you want to cancel?", MsgBoxStyle.YesNo, "iFaith");
		if (Answer == Constants.vbYes) {
			Interaction.Shell("cmd /c taskkill /f /t /im xpwntool.exe", AppWinStyle.Hide);
			Interaction.Shell("cmd /c taskkill /f /t /im vfdecrypt.exe", AppWinStyle.Hide);
			Interaction.Shell("cmd /c taskkill /f /t /im hfsplus.exe", AppWinStyle.Hide);
			// Display a child form.
			Form frm = new Form();
			frm.MdiParent = MDIMain;
			frm.Width = this.Width / 2;
			frm.Height = this.Height / 2;
			frm.Show();
			frm.Hide();

			Welcome.MdiParent = MDIMain;
			Welcome.Show();
			Welcome.Button1.Enabled = false;
			About.MdiParent = MDIMain;
			About.Show();
			About.BringToFront();
			this.Close();
			this.Dispose();
		} else {
			return;
		}
	}
开发者ID:bobbytdotcom,项目名称:iFaith,代码行数:28,代码来源:sn0wbreeze.cs

示例5: goback_Click

	private void goback_Click(System.Object sender, System.EventArgs e)
	{
		iLeft = true;
		QuitMOFO = true;
		// Display a child form.
		Form frm = new Form();
		frm.MdiParent = MDIMain;
		frm.Width = this.Width / 2;
		frm.Height = this.Height / 2;
		frm.Show();
		frm.Hide();

		Welcome.MdiParent = MDIMain;
		Welcome.Show();
		Welcome.Button1.Enabled = false;
		About.MdiParent = MDIMain;
		About.Show();
		About.BringToFront();
		this.Close();
		this.Dispose();
	}
开发者ID:bobbytdotcom,项目名称:iFaith,代码行数:21,代码来源:iAcqua.cs

示例6: iAcqua

	public void iAcqua()
	{
		try {
			Label2.Text = "Communicating with Server...";
			spinny.Visible = true;
			iphone.Visible = false;
			Label3.Visible = false;
			Center_Label(spinny);
			Center_Label(Label2);
			Center_Label(availableshsh);
			Center_Label(dlallBTN);
			Center_Label(dlblobBTN);
			if (DoIgiveAshit == true) {
				return;
			}
			Delay(1);
			File_Delete(temppath + "\\available.xml");
			if (DoIgiveAshit == true) {
				return;
			}
			try {
				string Check = "http://iacqua.ih8sn0w.com/req.php?ecid=" + ECID;
				Uri CheckURI = new Uri(Check);
				dynamic clientCheck = new System.Net.WebClient();
				clientCheck.Headers.Add("user-agent", "iacqua/1.0-452");
				clientCheck.DownloadFileAsync(CheckURI, temppath + "\\available.xml");
				if (DoIgiveAshit == true) {
					return;
				}
				while (!(clientCheck.IsBusy == false)) {
					Delay(0.5);
				}
			} catch (Exception ex) {
				Interaction.MsgBox("Error 3 : We have failed trying to connect to iFaith's SHSH Cache server!", MsgBoxStyle.Critical);
				// Display a child form.
				Form frm = new Form();
				frm.MdiParent = MDIMain;
				frm.Width = this.Width / 2;
				frm.Height = this.Height / 2;
				frm.Show();
				frm.Hide();

				Welcome.MdiParent = MDIMain;
				Welcome.Show();
				Welcome.Button1.Enabled = false;
				About.MdiParent = MDIMain;
				About.Show();
				About.BringToFront();
				this.Dispose();
				return;
			}
			try {
				while (!(File_Exists(temppath + "\\available.xml") == true)) {
					if (DoIgiveAshit == true) {
						return;
					}
					Delay(0.1);
				}
				Delay(2);
				thatbox.LoadFile(temppath + "\\available.xml", RichTextBoxStreamType.PlainText);
				spinny.Visible = false;
				if (DoIgiveAshit == true) {
					return;
				}
				availableshsh.Items.AddRange(thatbox.Lines);
				if (availableshsh.Items.Count >= 1) {
					availableshsh.Items.Remove(availableshsh.Items.Item(availableshsh.Items.Count - 1));
				}
				if (DoIgiveAshit == true) {
					return;
				}
				Label2.Text = "Available Blobs:";
				Center_Label(Label2);
				Button1.Visible = true;
				//Show drop down menu.
				if (availableshsh.Items.Count == 0) {
					availableshsh.Items.Add("None");
					dlallBTN.Enabled = false;
					dlblobBTN.Enabled = false;
				} else {
					dlallBTN.Enabled = true;
					dlblobBTN.Enabled = true;
				}
				availableshsh.Visible = true;
				availableshsh.SelectedIndex = 0;
				dlallBTN.Visible = true;
				dlblobBTN.Visible = true;
			} catch (Exception ex) {
			}
		} catch (Exception ex) {
		}
	}
开发者ID:bobbytdotcom,项目名称:iFaith,代码行数:92,代码来源:iAcqua.cs

示例7: goback_Click

	private void goback_Click(System.Object sender, System.EventArgs e)
	{
		// Display a child form.
		Form frm = new Form();
		frm.MdiParent = MDIMain;
		frm.Width = this.Width / 2;
		frm.Height = this.Height / 2;
		frm.Show();
		frm.Hide();

		this.Controls.Clear();
		InitializeComponent();
		Show();

		this.Button1.Enabled = false;
		About.MdiParent = MDIMain;
		About.Show();
		About.BringToFront();
	}
开发者ID:bobbytdotcom,项目名称:iFaith,代码行数:19,代码来源:Welcome.cs

示例8: GoGoGadgetsn0wbreeze


//.........这里部分代码省略.........
			CacheSaver.Headers.Add("user-agent", "iacqua/1.0-452");
			//CacheSaver.BaseAddres()
			string UploadBlobRequest = null;
			UploadBlobRequest = "http://iacqua.ih8sn0w.com/req.php?";
			//Attaching Revision of iFaith...
			UploadBlobRequest = UploadBlobRequest + "revision=" + MDIMain.VersionNumber + "&";
			//Attaching iOS build...
			UploadBlobRequest = UploadBlobRequest + "ios=" + realiosversion.Replace(" ", "%20") + "&";
			//Attaching iDevice Model...
			UploadBlobRequest = UploadBlobRequest + "model=" + iDevice.Replace(" ", "%20") + "&";
			//Attaching Board Config...
			UploadBlobRequest = UploadBlobRequest + "board=" + board + "&";
			//Attaching ECID...
			UploadBlobRequest = UploadBlobRequest + "ecid=" + ECID + "&";
			//Attaching Apple Logo Blob...
			UploadBlobRequest = UploadBlobRequest + "logo=" + AppleLogoBLOB + "&";
			//Attaching Battery Charging 0 Blob...
			UploadBlobRequest = UploadBlobRequest + "chg0=" + BatCharg0BLOB + "&";
			//Attaching Battery Charging 1 Blob...
			UploadBlobRequest = UploadBlobRequest + "chg1=" + BatCharg1BLOB + "&";
			//Attaching Battery Full Blob...
			UploadBlobRequest = UploadBlobRequest + "batf=" + BatFullBLOB + "&";
			//Attaching Battery Low 0 Blob...
			UploadBlobRequest = UploadBlobRequest + "bat0=" + BatLow0BLOB + "&";
			//Attaching Battery Low 1 Blob...
			UploadBlobRequest = UploadBlobRequest + "bat1=" + BatLow1BLOB + "&";
			//Attaching DeviceTree Blob...
			UploadBlobRequest = UploadBlobRequest + "dtre=" + DeviceTreeBLOB + "&";
			//Attaching Glyph Charging Blob...
			UploadBlobRequest = UploadBlobRequest + "glyc=" + GlyphChrgBLOB + "&";
			//Attaching Glyph Plugin Blob...
			UploadBlobRequest = UploadBlobRequest + "glyp=" + GlyphPluginBLOB + "&";
			//Attaching iBoot Blob...
			UploadBlobRequest = UploadBlobRequest + "ibot=" + iBootBLOB + "&";
			//Attaching LLB Blob...
			UploadBlobRequest = UploadBlobRequest + "illb=" + LLBBlob + "&";
			//Attaching Recovery Logo Blob...
			UploadBlobRequest = UploadBlobRequest + "recm=" + RecLogoBLOB + "&";
			//Attaching Kernel Blob...
			UploadBlobRequest = UploadBlobRequest + "krnl=" + KernelBLOB + "&";
			//Attaching iFaith md5...
			UploadBlobRequest = UploadBlobRequest + "md5=" + MD5CalcString(AppleLogoBLOB + ECID + MDIMain.VersionNumber) + "&";
			//Attaching IPSW md5...
			UploadBlobRequest = UploadBlobRequest + "ipsw_md5=" + theIPSWhash + "&";
			if (iosversion.Substring(0, 1) == "3") {
				UploadBlobRequest = UploadBlobRequest + "nsrv=" + NeedServiceBLOB + "&";
			}
			Delay(1.5);
			try {
				if (Debug_Mode == false) {
					Uri UploadBlobRequestURI = new Uri(UploadBlobRequest);
					CacheSaver.DownloadStringAsync(UploadBlobRequestURI);
					while (!(CacheSaver.IsBusy == false)) {
						Delay(0.5);
					}
				}
			} catch (Exception ex) {
				Interaction.MsgBox("Unable to send request to server.", MsgBoxStyle.Critical);
			}
			//Were Done!
			MDIMain.createipsw.Enabled = false;
			MDIMain.createipsw.Checked = false;
			MDIMain.createipswtxt.ForeColor = Color.DimGray;

			Status.Text = "Done!";
			Center_status();

			MDIMain.done.Enabled = true;
			MDIMain.done.Checked = true;
			MDIMain.donetxt.ForeColor = Color.White;

			MDIMain.Text = "iFaith v" + MDIMain.VersionNumber + " -- By: iH8sn0w";


			Interaction.MsgBox("iFaith has finished saving your SHSH Blobs!" + Strings.Chr(13) + Strings.Chr(13) + "Keep them in a VERY safe spot!" + Strings.Chr(13) + "Even email them to yourself!" + Strings.Chr(13) + Strings.Chr(13) + "You will now be returned to the main menu" + Strings.Chr(13) + "where you can create a signed IPSW with your blobs." + Strings.Chr(13) + Strings.Chr(13), MsgBoxStyle.Information);


			// Display a child form.
			Form frm = new Form();
			frm.MdiParent = MDIMain;
			frm.Width = this.Width / 2;
			frm.Height = this.Height / 2;
			frm.Show();
			frm.Hide();

			Welcome.MdiParent = MDIMain;
			Welcome.Show();
			Welcome.Button1.Enabled = false;
			About.MdiParent = MDIMain;
			About.Show();
			About.BringToFront();

			MDIMain.done.Enabled = false;
			MDIMain.done.Checked = false;
			MDIMain.donetxt.ForeColor = Color.DimGray;

			Hide_Stages();
			this.Dispose();
		}
	}
开发者ID:bobbytdotcom,项目名称:iFaith,代码行数:101,代码来源:Run.cs


注:本文中的Form.Hide方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。