public static void StartGame(Object sender, EventArgs e) { Game.Init(MainForm); Button1.Hide(); Button2.Hide(); Button4.Hide(); MainForm.KeyPreview = true; Button3.Location = new Point(0, Game.Height - 60); Game.Draw(); }
private void pictureBox1_Click(object sender, EventArgs e) { Label6.Hide(); Panel1.Size = new Size(45, 727); pictureBox1.Hide(); Button1.Hide(); Button2.Hide(); Button3.Hide(); Button4.Hide(); PictureBox2.Show(); DataGridView1.Hide(); }
//Activar boost private void Button1_Click(object sender, EventArgs e) { Button1.Hide(); circularProgressBar1.Show(); timer1.Stop(); circularProgressBar1.Value = 0; circularProgressBar1.Text = circularProgressBar1.Value.ToString(); timer1.Start(); Process process = new Process(); ProcessStartInfo startInfo = new ProcessStartInfo { WindowStyle = ProcessWindowStyle.Hidden, FileName = "cmd.exe", Arguments = @"/C net stop FontCache & net stop SDRSVC & net stop wuauserv & net stop SysMain & net stop WbioSrvc & net stop WSearch & net stop DeviceAssociationService & exit" }; process.StartInfo = startInfo; process.Start(); Process proces = new Process(); ProcessStartInfo startInf = new ProcessStartInfo { WindowStyle = ProcessWindowStyle.Hidden, FileName = "cmd.exe", Arguments = @"/C net stop Themes & net stop DeviceAssociationService & net stop Dnscache & net stop TimeBroker & net stop VaultSvc & net stop UsoSvc & net stop wmiApSrv & net stop SgrmBroker & net stop Spooler & net stop wscsvc & net stop RmSvc & exit" }; proces.StartInfo = startInf; proces.Start(); Process proce = new Process(); ProcessStartInfo startIn = new ProcessStartInfo { WindowStyle = ProcessWindowStyle.Hidden, FileName = "cmd.exe", Arguments = @"/C net stop AppXSvs & net stop InstallService & net stop DisplayEnhancementService & net stop TabletInputService & net stop fsvc & net stop NVDisplay.ContainerLocalSystem & net stop AppXSvc & cd C:\Program Files\Game_Booster\Archivos & EmptyStandbyList.exe workingsets & EmptyStandbyList.exe modifiedpagelist & EmptyStandbyList.exe priority0standbylist & EmptyStandbyList.exe standbylist & exit" }; proce.StartInfo = startIn; proce.Start(); Process proc = new Process(); ProcessStartInfo startI = new ProcessStartInfo { WindowStyle = ProcessWindowStyle.Hidden, FileName = "cmd.exe", Arguments = @"/C net stop Winmgmt & net stop CryptSvc & net stop stisvc & net stop SmsRouter & net stop SENS & net stop FontCache & exit" }; proc.StartInfo = startI; proc.Start(); }
private void Frm_usuario_Load(object sender, EventArgs e) { // oculta elementos de la interfaz como los botones de guardar actualizar y eliminar Button1.Hide(); Button2.Hide(); Button3.Hide(); Button4.Hide(); pictureBox1.Hide(); PictureBox3.SetBounds(this.Width - 80, 25, PictureBox3.Width, PictureBox3.Height); Label6.Hide(); DataGridView1.Hide(); ComboBox1.SelectedIndex = 0; }
void hasil_Akhir() { GroupBox2.Hide(); TextBox1.Hide(); Label2.Text = "Selesai"; Button1.Enabled = false; Button1.Hide(); Button2.Enabled = false; Data.Enabled = false; Button2.Show(); Data.Show(); Button2.Location = new System.Drawing.Point(569, 275); }
private void Frm_usuario_Load(object sender, EventArgs e) { // oculta elementos de la interfaz Button1.Hide(); Button2.Hide(); Button3.Hide(); Button4.Hide(); pictureBox1.Hide(); PictureBox3.SetBounds(this.Width - 80, 25, PictureBox3.Width, PictureBox3.Height); Label6.Hide(); //DataGridView1.Hide(); ComboBox1.SelectedIndex = 0; ComboBox2.SelectedIndex = 0; }
private void btnStart_Click(object sender, EventArgs e) { VideoCaptureDeviceForm videoCaptureDeviceForm = new VideoCaptureDeviceForm(); if (videoCaptureDeviceForm.ShowDialog() == System.Windows.Forms.DialogResult.OK) { videoCaptureDevice = videoCaptureDeviceForm.VideoDevice; videoCaptureDevice.NewFrame += new NewFrameEventHandler(Captured); videoCaptureDevice.Start(); Button1.Hide(); btnCaptured.Show(); btnSaveImage.Show(); btnStart.Hide(); } }
public static void Records(Object sender, EventArgs e) { Button3.Hide(); Button2.Hide(); Button1.Hide(); Button4.Location = new Point(400, 400); Button4.Show(); ListBox.Show(); ListBox.Clear(); int i = 1; foreach (int res in Results.Reverse()) { ListBox.Items.Add(i.ToString() + ") " + res.ToString()); i += 1; } }
private void Frm_usuario_Load(object sender, EventArgs e) { Button1.Hide(); Button2.Hide(); Button3.Hide(); Button4.Hide(); pictureBox1.Hide(); PictureBox3.SetBounds(this.Width - 80, 25, PictureBox3.Width, PictureBox3.Height); Label6.Hide(); DataGridView1.Hide(); ComboBox1.SelectedIndex = 0; conexion.llenarComboBox("SELECT * from tbl_departamentos", cb_departamento, "id_departamento", "nombre"); if (cb_departamento.SelectedIndex > 0 & cb_nombramiento.SelectedIndex > 0) { cb_departamento.SelectedIndex = 0; } cb_nombramiento.SelectedIndex = 0; }