Exemplo n.º 1
0
 public Login(IvfControl ic, FrmSplash splash)
 {
     InitializeComponent();
     this.ic     = ic;
     this.splash = splash;
     initConfig();
 }
Exemplo n.º 2
0
        public MainMenu(IvfControl ic, FrmSplash splash)
        {
            this.ic = ic;
            //MessageBox.Show("111", "");
            InitializeComponent();
            tC1.TabPageClosing += TC1_TabPageClosing;
            login = new Login(ic, splash);
            splash.Dispose();
            login.ShowDialog(this);
            new Thread(() =>
            {
                Thread.CurrentThread.IsBackground = true;
                /* run your code here */
                ic.ivfDB = new objdb.IvfDB(ic.conn);
                //ic.logw.WriteLog("d", "MainMenu getInit before ");
                ic.getInit();
                //ic.logw.WriteLog("d", "MainMenu getInit end ");
            }).Start();

            if (login.LogonSuccessful.Equals("1"))
            {
                //ic.logw.WriteLog("d", "MainMenu if (login.LogonSuccessful.Equals('1')) ");
                initConfig();
                ic.logw.WriteLog("d", "processID " + ic.processID + " MainMenu Construtor ");
                //new Thread(() =>
                //{
                //    Thread.CurrentThread.IsBackground = true;
                //    /* run your code here */

                //}).Start();
            }
            else
            {
                Application.Exit();
            }
        }