private void StockAdd_Click(object sender, EventArgs e)
 {
     if (dataGridViewPhoneCaseManage.SelectedRows.Count == 0)
     {
         new PhoneCaseCreate().Show();
     }
     else
     {
         int             SelectedId = (int)dataGridViewPhoneCaseManage.SelectedRows[0].Cells["ID"].Value;
         PhoneCaseCreate f          = new PhoneCaseCreate();
         f.SelectedPhoneCase(SelectedId);
         f.Show();
     }
 }
 private void btn_phoneCaseCreate_Click(object sender, EventArgs e)
 {
     if (dataGridView1.SelectedRows.Count == 0)
     {
         new PhoneCaseCreate().Show();
     }
     else
     {
         int             secilenId = (int)dataGridView1.SelectedRows[0].Cells["ID"].Value;
         PhoneCaseCreate f         = new PhoneCaseCreate();
         f.Show();
         f.SelectPhoneCase(secilenId);
     }
 }
Exemple #3
0
 private void btnAddStock_Click(object sender, EventArgs e)
 {
     if (gridPhoneCase.SelectedRows.Count == 0)
     {
         new PhoneCaseCreate().Show();
     }
     else
     {
         int             chosenId = (int)gridPhoneCase.SelectedRows[0].Cells["ID"].Value;
         PhoneCaseCreate f        = new PhoneCaseCreate();
         f.Show();
         f.SelectPhoneCase(chosenId);
     }
 }