Пример #1
0
        void AppStartup(object sender, StartupEventArgs e)
        {
            switch (Environment.UserName[0])
            {
            case 'p':
                MainOUP MOUP = new MainOUP();
                MOUP.Show();
                break;

            case 'o':
                MainWindowOTGO MWOT = new MainWindowOTGO();
                MWOT.Show();
                break;

            case 'c':
                ShopAlert SA = new ShopAlert(References.GetReferences.GetIdCeh(Environment.UserName.Substring(1,
                                                                                                              Environment.UserName.IndexOf('-') - 1).PadLeft(3, '0')));
                SA.Show();
                break;

            case 'l':
                Window1 W1 = new Window1();
                W1.Show();
                break;
            }
        }
Пример #2
0
        private void Button_Click_1(object sender, RoutedEventArgs e)
        {
            Authorization.InitAut(false);

            MainWindowOTGO MOT = new MainWindowOTGO();

            MOT.Show();
        }