public p_AddOtherEarningsEntry(p_OtherEarningEntry frm, String pk, Boolean _isnew) { InitializeComponent(); gc.load_employee(cbo_employee); _frm_earn = frm; code = pk; isnew = _isnew; if(isnew == false) { init_load(code); } }
private void open_otherearnings() { p_OtherEarningEntry jsi = new p_OtherEarningEntry(); closechild(); btn_color_reset(); jsi.MdiParent = this; lbl_modname.Text = btn_6.Text; btn_6.BackColor = panel2.BackColor; colormain = panel2.BackColor; color2 = Color.Peru; jsi.Show(); }