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;
             }
         }
     }
 }
 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;
             }
         }
     }
 }
        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();
        }