Esempio n. 1
0
        private void frmMain_Load(object sender, EventArgs e)
        {
            Application.ThreadException += new System.Threading.ThreadExceptionEventHandler(Application_ThreadException);

            frmSplash frm    = null;
            bool      splash = ShowSplash();

            if (splash)
            {
                frm         = new frmSplash();
                frm.TopMost = true;
                frm.ShowDialog(this);
            }



            SetupListViewDevices();
            m_Tasks = new ScheduledTasks();

            LoadData();
            LoadTasks();

            if (splash)
            {
                frm.TopMost = false;
                frm.Close();
            }

            if (IsPasswordPrincipalActive())
            {
                if (ShowAskSecurityPolicy())
                {
                    frmAskSecurityPolicy policy = new frmAskSecurityPolicy();
                    DialogResult         result = policy.ShowDialog(this);

                    policy.Close();
                }
            }
        }
Esempio n. 2
0
        private void frmMain_Load(object sender, EventArgs e)
        {
            Application.ThreadException += new System.Threading.ThreadExceptionEventHandler(Application_ThreadException);

            frmSplash frm = null;
            bool splash = ShowSplash();

            if (splash)
            {
                frm = new frmSplash();
                frm.TopMost = true;
                frm.ShowDialog(this);
            }

            SetupListViewDevices();
            m_Tasks = new ScheduledTasks();

            LoadData();
            LoadTasks();

            if (splash)
            {
                frm.TopMost = false;
                frm.Close();
            }

            if (IsPasswordPrincipalActive())
            {
                if (ShowAskSecurityPolicy())
                {
                    frmAskSecurityPolicy policy = new frmAskSecurityPolicy();
                    DialogResult result = policy.ShowDialog(this);

                    policy.Close();
                }
            }
        }