private void repositoryItemLookUpEdit1_ButtonClick(object sender, DevExpress.XtraEditors.Controls.ButtonPressedEventArgs e) { if (e.Button.Kind == DevExpress.XtraEditors.Controls.ButtonPredefines.Ellipsis) { SubjectForm f = new SubjectForm(); f.m_bCanSelect = true; DialogResult res = f.ShowDialog(this); this.subjectsTableAdapter.Fill(this.dataSetMain.Subjects); if (this.dataSetMain.Subjects.Rows.Count < 7) { this.repositoryItemLookUpEdit1.DropDownRows = this.dataSetMain.Subjects.Rows.Count; } else { this.repositoryItemLookUpEdit1.DropDownRows = 7; } if (res == System.Windows.Forms.DialogResult.OK) { GridView.BeginUpdate(); DataRowView drv = (DataRowView)(qBranchesBindingSource.Current); drv.Row["SubjectID"] = f.m_SelectID; GridView.EndUpdate(); //GridView.Refresh(); } } }
private void SubjectSubMenu_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { SubjectForm f = new SubjectForm(); f.ShowDialog(this); m_strFilterString = "###"; FindEquipments(-1); }
private void SubjectSubMenu_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { try { SubjectForm f = new SubjectForm(); f.ShowDialog(this); m_bNeedFilter = false; FindChecks(-1); } catch (Exception ex) { MyLocalizer.XtraMessageBoxShow(ex.Message, "Ошибка", MessageBoxButtons.OK, MessageBoxIcon.Error); } }