Example #1
0
        void MainWindow_Closing(object sender,
            System.ComponentModel.CancelEventArgs e)
        {
            UserPreferences userPrefs = new UserPreferences();

            userPrefs.WindowHeight = this.Height;
            userPrefs.WindowWidth = this.Width;
            userPrefs.WindowTop = this.Top;
            userPrefs.WindowLeft = this.Left;
            userPrefs.WindowState = this.WindowState;

            userPrefs.Save();
        }
Example #2
0
        public IS3MainWindow()
        {
            InitializeComponent();

            Closing += MainWindow_Closing;

            UserPreferences userPrefs = new UserPreferences();
            this.Height = userPrefs.WindowHeight;
            this.Width = userPrefs.WindowWidth;
            this.Top = userPrefs.WindowTop;
            this.Left = userPrefs.WindowLeft;
            this.WindowState = userPrefs.WindowState;

            ProjectListPage projectListPage = new ProjectListPage();
            pageTransitionControl.ShowPage(projectListPage);

            //SwitchToMainFrame("NJ_MetroL10.xml");
        }
Example #3
0
        public IS3MainWindow()
        {
            InitializeComponent();

            Closing += MainWindow_Closing;

            UserPreferences userPrefs = new UserPreferences();

            this.Height      = userPrefs.WindowHeight;
            this.Width       = userPrefs.WindowWidth;
            this.Top         = userPrefs.WindowTop;
            this.Left        = userPrefs.WindowLeft;
            this.WindowState = userPrefs.WindowState;

            UserLoginPage userLoginPage = new UserLoginPage();

            pageTransitionControl.ShowPage(userLoginPage);
        }