private void repositoryItemLookUpEdit1_ButtonClick(object sender, DevExpress.XtraEditors.Controls.ButtonPressedEventArgs e)
        {
            if (e.Button.Kind == DevExpress.XtraEditors.Controls.ButtonPredefines.Ellipsis)
            {
                BranchForm f = new BranchForm();
                f.m_bCanSelect = true;
                DialogResult res = f.ShowDialog(this);

                this.qBranchesSubjectsTableAdapter.Fill(this.dataSetQuery.QBranchesSubjects);
                if (this.dataSetQuery.QBranchesSubjects.Rows.Count < 7)
                {
                    this.repBranch.DropDownRows = this.dataSetQuery.QBranchesSubjects.Rows.Count;
                }
                else
                {
                    this.repBranch.DropDownRows = 7;
                }

                this.qSubjectsTableAdapter.Fill(this.dataSetQuery.QSubjects);

                if (res == System.Windows.Forms.DialogResult.OK)
                {
                    GridView.BeginUpdate();
                    DataRowView drv = (DataRowView)(qSubstationsBindingSource.Current);
                    drv.Row["BranchID"]        = f.m_SelectID;
                    drv.Row["SubjectID"]       = f.m_SubjectID;
                    dictSubjects[f.m_SelectID] = f.m_SubjectID;
                    GridView.EndUpdate();
                }
            }
        }
Exemple #2
0
        private void BranchSubMenu_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            BranchForm f = new BranchForm();

            f.ShowDialog(this);
            m_strFilterString = "###";
            FindEquipments(-1);
        }
Exemple #3
0
 private void BranchSubMenu_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
 {
     try
     {
         BranchForm f = new BranchForm();
         f.ShowDialog(this);
         m_bNeedFilter = false;
         FindChecks(-1);
     }
     catch (Exception ex)
     {
         MyLocalizer.XtraMessageBoxShow(ex.Message, "Ошибка", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }