Example #1
0
        private void FormReportIntegrationMain_Load(object sender, EventArgs e)
        {
            if (IsLogin() == false)
            {
                Close();
                return;
            }

            First = false;
            DispCaption();

            AppRes.TotalLog[ELogTag.Note] = "Resume screen invalidation thread";
            invalidThread = new InvalidThread(csInvalidTime);
            invalidThread.InvalidControls += InvalidForm;
            invalidThread.Resume();
        }
Example #2
0
        private void Initialize()
        {
            First         = true;
            invalidThread = null;

            staffSet = new StaffDataSet(AppRes.DB.Connect, null, null);

            DefMenu = new UlMenu(viewPanel);
            DefMenu.Add(new CtrlEditRight(), editButton);
            DefMenu.Add(new CtrlSettingsRight(), settingsButton);
            DefMenu.Add(new CtrlLogRight(), logButton);
            DefMenu.Index = 0;

            AppRes.TotalLog[ELogTag.Note] = "Create application mainform";
            AppRes.DbLog[ELogTag.Note]    = $"MS-SQL Server ConnectionString - '{AppRes.DB.ConnectString}'";
        }