コード例 #1
0
 private void buttonEdit_Click(object sender, EventArgs e)
 {
     addmenu       = new MenuRecordView("edit");
     addmenu.id    = Convert.ToInt32(dataGridViewData.SelectedRows[0].Cells[0].Value);
     addmenu.name  = dataGridViewData.SelectedRows[0].Cells[1].Value.ToString();
     addmenu.harga = Convert.ToInt64(dataGridViewData.SelectedRows[0].Cells[2].Value);
     addmenu.tipe  = dataGridViewData.SelectedRows[0].Cells[3].Value.ToString();
     addmenu.ShowDialog();
     Init_DataBinding(textBoxSearch.Text);
 }
コード例 #2
0
 private void buttonAdd_Click(object sender, EventArgs e)
 {
     addmenu = new MenuRecordView("new");
     addmenu.ShowDialog();
     Init_DataBinding(textBoxSearch.Text);
 }