Example #1
0
 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();
     }
 }
Example #2
0
 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();
     }
 }
Example #3
0
        private void button4_Click(object sender, EventArgs e)
        {
            Form13 f13 = new Form13();

            this.Hide();
            f13.ShowDialog();
            this.Close();
        }
Example #4
0
        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();
        }
Example #5
0
        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();
        }
Example #6
0
        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);
                }
            }
        }
Example #7
0
        private void button6_Click(object sender, EventArgs e)
        {
            Form a = new Form13();

            a.Show();
        }
Example #8
0
 private void button19_Click(object sender, EventArgs e)
 {
     Form13 f13 = new Form13();
     f13.ShowDialog();
 }