예제 #1
0
 private void Change_Click(object sender, EventArgs e)
 {
     if (drinkDataGriedView.SelectedRows.Count != 0)
     {
         int     index = drinkDataGriedView.SelectedRows[0].Index;
         Drink   d     = Control.bindList.ElementAt(index);
         AddForm f     = new AddForm(d, index);
         f.Show();
     }
 }
예제 #2
0
        private void Add_Click(object sender, EventArgs e)
        {
            AddForm f = new AddForm();

            f.Show();
        }