Beispiel #1
0
        private void Button_Click_2(object sender, RoutedEventArgs e)
        {
            Authorization.InitAut(true);
            ShopAlert SA = new ShopAlert(References.GetReferences.GetIdCeh("024"));

            SA.Show();
        }
Beispiel #2
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;
            }
        }