Пример #1
0
        private void addToolStripMenuItem1_Click(object sender, EventArgs e)
        {
            toolStripStatusLabel1.Text = "New Staff can be added";
            frmStaff obj = new frmStaff();

            obj.StartStaff(1, 0);
            toolStripStatusLabel1.Text = "New Staff is added";
        }
Пример #2
0
 private void button1_Click(object sender, EventArgs e)
 {
     if (dataGridView1.SelectedRows.Count > 0)
     {
         int      a   = Convert.ToInt32(dataGridView1.SelectedRows[0].Cells[0].Value);
         frmStaff obj = new frmStaff();
         obj.StartStaff(2, a);
         RefreshData();
     }
 }