private void iName_txt_MouseClick_1(object sender, MouseEventArgs e) { if (item_data.Rows.Count < 1) { MessageBox.Show("No items Found"); Item_Add add = new Item_Add(); add.Show(); add.prevForm = this; this.Hide(); } else { btn_remove.Visible = false; label12.Visible = false; cmb_type.Visible = false; item_panel.Visible = true; item_panel.Enabled = true; label5.Visible = false; iDesc_txt.Visible = false; item_panel.Size = new Size(523, 423); item_panel.Location = new Point(3, 124); item_data.Columns["name"].Width = 110; item_data.Columns["description"].Width = 80; item_data.Columns["price"].Width = 50; item_data.Columns["ItemMeasurement"].Width = 80; } }
private void iName_txt_MouseClick(object sender, MouseEventArgs e) { if (supplier_txt.Text == "") { MessageBox.Show("Choose a supplier first!"); } else if (item_data.Rows.Count < 1) { MessageBox.Show("No items Found"); Item_Add add = new Item_Add(); add.Show(); add.prevForm = this; this.Hide(); } else { item_panel.Visible = true; item_panel.Enabled = true; label14.Visible = false; iDesc_txt.Visible = false; item_panel.Size = new Size(474, 434); item_panel.Location = new Point(8, 125); btn_remove.Visible = false; label12.Visible = false; cmb_type.Visible = false; item_data.Columns["name"].Width = 110; item_data.Columns["description"].Width = 110; item_data.Columns["price"].Width = 50; item_data.Columns["itemMeasurement"].Width = 80; } }
private void btn_item_Click(object sender, EventArgs e) { Item_Add add = new Item_Add(); add.Show(); add.prevForm = this; this.Hide(); }