private void btnAddExpensses_Click(object sender, EventArgs e) { frmPrecurementExpensess frm = new frmPrecurementExpensess(); frm.txtISSUED_ID.Text = txtSwid.Text; frm.txtISSUED_TYPE.Text = "تحاويل مخزنية"; frm.txtTempletId.Text = lstTemplet.SelectedValue.ToString(); frm.ShowDialog(); }
private void btnAddExpeness_Click(object sender, EventArgs e) { if (txtSwid.Text.Trim() == "") { glb_function.MsgBox("الرجاء اختيار الوارد"); return; } if (lstCURRENCY_ID.SelectedIndex == -1) { glb_function.MsgBox("الرجاء اختيار العملة"); return; } frmPrecurementExpensess frm = new frmPrecurementExpensess(); frm.txtISSUED_ID.Text = txtSwid.Text; frm.txtISSUED_TYPE.Text = "وارد"; frm.txtTempletId.Text = lstTemplet.SelectedValue.ToString(); frm.ShowDialog(); }