Ejemplo n.º 1
0
        public WindowMain()
        {
            Instance   = this;
            Activated += new EventHandler(WindowMain_Activated);
            Closing   += new System.ComponentModel.CancelEventHandler(WindowMain_Closing);
            Application.Current.Exit += new ExitEventHandler(Current_Exit);

            InitializeComponent();

            if (Rawr.WPF.Properties.Settings.Default.UpgradeRequired)
            {
                Rawr.WPF.Properties.Settings.Default.Upgrade();
                Rawr.WPF.Properties.Settings.Default.UpgradeRequired = false;
                Rawr.WPF.Properties.Settings.Default.Save();
            }

            Height = Rawr.WPF.Properties.Settings.Default.WindowHeight;
            Width  = Rawr.WPF.Properties.Settings.Default.WindowWidth;
            Top    = Rawr.WPF.Properties.Settings.Default.WindowTop;
            Left   = Rawr.WPF.Properties.Settings.Default.WindowLeft;
            if (Rawr.WPF.Properties.Settings.Default.WindowState == System.Windows.WindowState.Maximized)
            {
                WindowState = Rawr.WPF.Properties.Settings.Default.WindowState;
            }

            LoadScreen.StartLoading(new EventHandler(LoadFinished));
        }
Ejemplo n.º 2
0
        private void Application_Startup(object sender, StartupEventArgs e)
        {
            Properties.NetworkSettings.UseAspx = e.InitParams.ContainsKey("UseAspx");
            Grid       g  = new Grid();
            LoadScreen ls = new LoadScreen();

            g.Children.Add(ls);
            RootVisual = g;
            ls.StartLoading(new EventHandler(LoadFinished));
        }
Ejemplo n.º 3
0
        private void Application_Startup(object sender, StartupEventArgs e)
        {
            Properties.NetworkSettings.UseAspx = e.InitParams.ContainsKey("UseAspx");
            if (this.IsRunningOutOfBrowser)
            {
                this.MainWindow.WindowState = WindowState.Maximized;
            }
            Grid       g  = new Grid();
            LoadScreen ls = new LoadScreen();

            g.Children.Add(ls);
            RootVisual = g;
            ls.StartLoading(new EventHandler(LoadFinished));
        }
Ejemplo n.º 4
0
 public WindowMain()
 {
     //Application.Current.Exit += new ExitEventHandler(Current_Exit);
     InitializeComponent();
     LoadScreen.StartLoading(new EventHandler(LoadFinished));
 }