Beispiel #1
0
        private void addToolStripMenuItem2_Click(object sender, EventArgs e)
        {
            toolStripStatusLabel1.Text = "New Complaints can be added";
            frmComplaints obj = new frmComplaints();

            obj.StartComplaints(1, 0);
            toolStripStatusLabel1.Text = "New Complaints are added";
        }
 private void button1_Click(object sender, EventArgs e)
 {
     if (dataGridView1.SelectedRows.Count > 0)
     {
         int           a   = Convert.ToInt32(dataGridView1.SelectedRows[0].Cells[0].Value);
         frmComplaints obj = new frmComplaints();
         obj.StartComplaints(2, a);
         RefreshData();
     }
 }