private void barEmployerCompany_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { EmployerInfo oForm = new EmployerInfo(); oForm.MainMenu = this; oForm.ConnectionString = this.ConnectionString; oForm.ShowDialog(); }
private void txtCardCode_ButtonClick(object sender, DevExpress.XtraEditors.Controls.ButtonPressedEventArgs e) { EmployerInfo oForm = new EmployerInfo(); DevExpress.XtraEditors.TextEdit txt1 = (DevExpress.XtraEditors.TextEdit)sender; oForm.MainMenu = this; oForm.ConnectionString = this.ConnectionString; oForm.OpenEmployerInfo(txt1.Text); oForm.ShowDialog(); RefreshMainMenu(); }
private void barNewEmployer_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { EmployerInfo oForm = new EmployerInfo(); oForm.MdiParent = this; oForm.ConnectionString = this.ConnectionString; oForm.Show(); }