Exemplo n.º 1
0
        public Start()
        {
            InitializeComponent();


            if (!App.IsNotUpdate)
            {
                Update();
            }

#if (CUSTOMER)
            MainWindow window = new MainWindow();
            Application.Current.MainWindow = window;
            window.Show();
            this.Close();
#else
            if (ConfigurationManager.AppSettings["isSkip"] == "True")
            {
                MainWindow mw = new MainWindow();
                Application.Current.MainWindow = mw;
                mw.Show();
                this.Close();
                return;
            }

            mLogin         = new PageLogin(this);
            mFrame.Content = mLogin;
            manager        = new NnStockManager(ShowMessage);
#endif
        }
Exemplo n.º 2
0
        // 不用跳过
        public Start(bool isSkip)
        {
            InitializeComponent();

            mLogin         = new PageLogin(this);
            mFrame.Content = mLogin;
            manager        = new NnStockManager(ShowMessage);
        }