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

            SetBackground(@"source\logo.png");
            this.Show();
            LoLMainWindow lolMain = new LoLMainWindow();

            Thread.Sleep(2000);
            lolMain.Show();
            this.Close();
        }
Exemplo n.º 2
0
        void StartUp_Startup(object sender, StartupEventArgs e)
        {
            // Application is running
            // Process command line args
            bool startMinimized = false;

            for (int i = 0; i != e.Args.Length; ++i)
            {
                if (e.Args[i] == "/StartMinimized")
                {
                    startMinimized = true;
                }
            }

            // Create main application window, starting minimized if specified
            LoLMainWindow mainWindow = new LoLMainWindow();

            if (startMinimized)
            {
                mainWindow.WindowState = WindowState.Minimized;
            }
            mainWindow.Show();
        }