private void format_Load(object sender, EventArgs e) { temp = new Thread( () => { if (FormatDrive(metroLabel2.Text, "Windows") == true) { Invoke(new Action(() => { maximum = true; var form2 = new Form13(); this.Hide(); form2.Show(); temp.Abort(); })); } else { Invoke(new Action(() => { temp.Abort(); })); } }) { IsBackground = true }; temp.Start(); if (maximum == true) { this.Close(); test.Hide(); } }
private void format_Load(object sender, EventArgs e) { temp = new Thread( () => { if (FormatDrive(metroLabel2.Text, partition_name_type, format_type_fileSystem, format_type_quickformat, format_type_cluster) == true) { Invoke(new Action(() => { maximum = true; var form2 = new Form13(); this.Hide(); form2.Show(); temp.Abort(); })); } else { Invoke(new Action(() => { temp.Abort(); })); } }) { IsBackground = true }; temp.Start(); if (maximum == true) { this.Close(); test.Hide(); } }
private void button4_Click(object sender, EventArgs e) { Form13 f13 = new Form13(); this.Hide(); f13.ShowDialog(); this.Close(); }
private void changePropertiesToolStripMenuItem3_Click(object sender, EventArgs e) { Form13 f13 = new Form13(); f13.Tag = this.Tag.ToString();//userId f13.label19.Visible = true; f13.comboBox1.Visible = true; f13.button3.Visible = true; f13.ShowDialog(); }
private void addCustomerToolStripMenuItem_Click(object sender, EventArgs e) { Form13 f13 = new Form13(); f13.Tag = this.Tag.ToString();//userId f13.label19.Visible = false; f13.comboBox1.Visible = false; f13.button3.Visible = false; f13.ShowDialog(); }
private void appliedAnnouncements_Click(object sender, EventArgs e) { using (HrMatchContext db = new HrMatchContext()) { IQueryable <WorkersAnnouncements> query = db.workersAnnouncements .Where(x => x.WorkerID == activeWorker.ID); if (query.Any(x => x.WorkerID == activeWorker.ID)) { Form13 form13 = new Form13(activeWorker); form13.ShowDialog(); } else { MessageBox.Show("There is no Applied Announcement for You.", "Alert", MessageBoxButtons.OK, MessageBoxIcon.Error); } } }
private void button6_Click(object sender, EventArgs e) { Form a = new Form13(); a.Show(); }
private void button19_Click(object sender, EventArgs e) { Form13 f13 = new Form13(); f13.ShowDialog(); }