Beispiel #1
0
 private void dataGridView1_CellClick(object sender, DataGridViewCellEventArgs e)
 {
     if (e.RowIndex != -1 && e.ColumnIndex != -1)
     {
         edit      = 1;
         delStatus = 1;
         MainClass.disable(leftpanel);
         DataGridViewRow row = dataGridView1.Rows[e.RowIndex];
         catID            = Convert.ToInt32(row.Cells["catIDGV"].Value.ToString());
         categoryTxt.Text = row.Cells["CatnameGV"].Value.ToString();
     }
 }
 private void dataGridView1_CellClick(object sender, DataGridViewCellEventArgs e)
 {
     if (e.RowIndex != -1 && e.ColumnIndex != -1)
     {
         edit      = 1;
         delStatus = 1;
         MainClass.disable(leftpanel);
         DataGridViewRow row = dataGridView1.Rows[e.RowIndex];
         taxID           = Convert.ToInt16(row.Cells["taxIDGV"].Value.ToString());
         taxTxt.Text     = row.Cells["taxvGV"].Value.ToString();
         CB.SelectedItem = row.Cells["taxtGV"].Value;
     }
 }
Beispiel #3
0
 private void dataGridView1_CellClick(object sender, DataGridViewCellEventArgs e)
 {
     if (e.RowIndex != -1 && e.ColumnIndex != -1)
     {
         edit      = 1;
         delStatus = 1;
         MainClass.disable(leftpanel);
         DataGridViewRow row = dataGridView1.Rows[e.RowIndex];
         TabelID = Convert.ToInt32(row.Cells["tableidGV"].Value.ToString());
         comboBox1.SelectedItem = row.Cells["tablenumGV"].Value.ToString();
         NOchairCB.SelectedItem = row.Cells["ChairsGV"].Value.ToString();
         FloorCB.SelectedValue  = row.Cells["floorIDGV"].Value.ToString();
     }
 }
Beispiel #4
0
 private void dataGridView1_CellClick(object sender, DataGridViewCellEventArgs e)
 {
     if (e.RowIndex != -1 && e.ColumnIndex != -1)
     {
         edit      = 1;
         delStatus = 1;
         MainClass.disable(leftpanel);
         DataGridViewRow row = dataGridView1.Rows[e.RowIndex];
         custID          = Convert.ToInt64(row.Cells["custIDGV"].Value.ToString());
         nameTxt.Text    = row.Cells["nameGV"].Value.ToString();
         phoneTxt.Text   = row.Cells["phoneGV"].Value.ToString();
         addressTxt.Text = row.Cells["addressGV"].Value.ToString();
     }
 }
 private void dataGridView1_CellClick(object sender, DataGridViewCellEventArgs e)
 {
     if (e.RowIndex != -1 && e.ColumnIndex != -1)
     {
         edit      = 1;
         delStatus = 1;
         MainClass.disable(leftpanel);
         DataGridViewRow row = dataGridView1.Rows[e.RowIndex];
         menuID = Convert.ToInt32(row.Cells["menuIDgv"].Value.ToString());
         categoryCB.SelectedValue = row.Cells["catIDGV"].Value.ToString();
         menuTxt.Text             = row.Cells["MenuItemGV"].Value.ToString();
         priceTxt.Text            = row.Cells["priceGV"].Value.ToString();
         statusCB.SelectedItem    = row.Cells["statusGV"].Value.ToString();
         //  pictureBox1.Image = Image.FromFile(row.Cells["imageGV"].Value.ToString());
     }
 }