Exemplo n.º 1
0
 void btnCompany_ButtonClick(object sender, DevExpress.XtraEditors.Controls.ButtonPressedEventArgs e)
 {
     if (e.Button.Caption == "Search...")
     {
         using (XF_CompanyFinder find = new XF_CompanyFinder(true))
         {
             if (find.ShowDialog() == DialogResult.Yes)
             {
                 this.CompanyID = find.CompanyID;
                 this.CompanyCode.Select();
                 this.CompanyCode.SelectionStart = this.CompanyCode.Text.Length;
             }
         }
     }
 }
Exemplo n.º 2
0
 void btnCompany_ButtonClick(object sender, DevExpress.XtraEditors.Controls.ButtonPressedEventArgs e)
 {
     if (e.Button.Caption == "Search...")
     {
         using (XF_CompanyFinder find = new XF_CompanyFinder(true))
         {
             if (find.ShowDialog() == DialogResult.Yes)
             {
                 this.CompanyID = find.CompanyID;
                 this.CompanyCode.Select();
                 this.CompanyCode.SelectionStart = this.CompanyCode.Text.Length;
             }
         }
     }
 }
Exemplo n.º 3
0
        private void menuSettingsCompanies_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            if (!GLOB.User.IsAdmin)
                return;

            using (XF_CompanyFinder find = new XF_CompanyFinder(false))
                find.ShowDialog();
        }