void btn_Cat_Click(object sender, EventArgs e) { G.frm_G frm_g = new G.frm_G(); frm_g.Table = "Cat"; frm_g.Text = "الفئة"; ((Control)sender).Parent.Parent.Parent.Hide(); frm_g.ShowDialog(); }
void btn_Types_Click(object sender, EventArgs e) { G.frm_G frm_g = new G.frm_G(); frm_g.Table = "ItemType"; frm_g.Text = "النوع "; ((Control)sender).Parent.Parent.Parent.Hide(); frm_g.ShowDialog(); }
void btn_Farms_Click(object sender, EventArgs e) { G.frm_G frm_g = new G.frm_G(); frm_g.Table = "Farm"; frm_g.Text = "الحظيرة"; ((Control)sender).Parent.Parent.Parent.Hide(); frm_g.ShowDialog(); }
private void btn_Cat_Add_Click(object sender, EventArgs e) { G.frm_G frm_g = new G.frm_G(); frm_g.Table = "Cat"; frm_g.Text = "الفئة"; frm_g.ShowDialog(); com_Cat.DataSource = g.Select("Cat"); com_Cat.SelectedValue = frm_g.txt_ID.Text; }
private void btn_Unit_Add_Click(object sender, EventArgs e) { G.frm_G frm_g = new G.frm_G(); frm_g.Table = "Units"; frm_g.Text = "الوحدات"; frm_g.ShowDialog(); com_Unit.DataSource = g.Select("Units"); com_Unit.SelectedValue = frm_g.txt_ID.Text; }
private void btn_HealthStatus_Add_Click(object sender, EventArgs e) { G.frm_G frm_g = new G.frm_G(); frm_g.Table = "HealthStatus"; frm_g.Text = "الحالة الصحية "; frm_g.ShowDialog(); com_HealthStatus.DataSource = g.Select("HealthStatus"); com_HealthStatus.SelectedValue = frm_g.txt_ID.Text; }
private void btn_ItemType_Add_Click(object sender, EventArgs e) { G.frm_G frm_g = new G.frm_G(); frm_g.Table = "ItemType"; frm_g.Text = "النوع "; frm_g.ShowDialog(); com_Type.DataSource = g.Select("ItemType"); com_Type.SelectedValue = frm_g.txt_ID.Text; }
private void btn_Farm_Add_Click(object sender, EventArgs e) { G.frm_G frm_g = new G.frm_G(); frm_g.Table = "Farm"; frm_g.Text = "الحظيرة"; frm_g.ShowDialog(); com_Farm.DataSource = g.Select("Farm"); com_Farm.SelectedValue = frm_g.txt_ID.Text; }