示例#1
0
 private void CashMainForm_Load(object sender, System.EventArgs e)
 {
     if (!Manager.DesignMode)
     {
         if ((!User.IsMemberOf(RightsEnum.АРМКассирВходВСистему) && (Settings.Default.LoginFormUser != "dbo")) && (Settings.Default.LoginFormUser != "sa"))
         {
             Messages.ShowError("Извините, у вас нет прав для работы с этим АРМ");
             base.Close();
         }
         System.Windows.Forms.InputLanguage.set_CurrentInputLanguage(System.Windows.Forms.InputLanguage.FromCulture(new System.Globalization.CultureInfo("ru-RU")));
         this.m_ApartmentReports = new ApartmentReports(this, this.tsAccountReportMenu, new ApartmentReports.GetCurrentAccountHandler(this.GetSelectedAccount), false);
         this.set_Font(Manager.WindowFont);
     }
 }
示例#2
0
 private void ApartmentAccountsView_Load(object sender, System.EventArgs e)
 {
     if (!Manager.DesignMode)
     {
         this.m_ApartmentReports = new ApartmentReports(this, this.tsAccountReportMenu, new ApartmentReports.GetCurrentAccountHandler(this.GetSelectedAccount), true);
         this.set_Font(Manager.WindowFont);
         this.accountsSplitContainer.set_SplitterDistance(Settings.Default.AccountantAccountListSplitterDistance);
         this.m_Loaded = true;
         string str = (string) (Setting.GetValueByName("Глобальные установки", "Использовать СМС сервис") ?? "Нет");
         this.m_ShowSmsService.set_Visible((bool) (str.ToLower() == "да"));
     }
 }