Пример #1
0
        public void Configure_Window()
        {
            List <WindowSpacer> spacer_windows = new List <WindowSpacer>();

            foreach (Account acc in AccountManager.Accounts)
            {
                if (acc.Settings.HasWindowConfig)
                {
                    WindowSpacer window = new WindowSpacer(acc);
                    spacer_windows.Add(window);
                    window.Show();
                }
            }

            WindowInfo_Grabber grabber = new WindowInfo_Grabber();

            grabber.ShowDialog();


            foreach (WindowSpacer win in spacer_windows)
            {
                win.Close();
            }

            WindowConfig tmp = grabber.GetInfo();

            this.WinPos_X    = tmp.WinPos_X;
            this.WinPos_Y    = tmp.WinPos_Y;
            this.Win_Width   = tmp.Win_Width;
            this.Win_Height  = tmp.Win_Height;
            this.WindowState = tmp.WindowState;
        }
Пример #2
0
 public void CreateWinConfig()
 {
     if (WinConfig == null)
     {
         WinConfig = new WindowConfig();
     }
     WinConfig.Configure_Window();
 }
Пример #3
0
        public void Window_ScaleTo_Default()
        {
            WindowConfig config = account.Settings.WinConfig;

            Window_Scale(config.Win_Width, config.Win_Height);
        }
Пример #4
0
        public void Window_MoveTo_Default()
        {
            WindowConfig config = account.Settings.WinConfig;

            Window_Move(config.WinPos_X, config.WinPos_Y);
        }