Ejemplo n.º 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;
        }
Ejemplo n.º 2
0
 public void CreateWinConfig()
 {
     if (WinConfig == null)
     {
         WinConfig = new WindowConfig();
     }
     WinConfig.Configure_Window();
 }
Ejemplo n.º 3
0
        public void Window_ScaleTo_Default()
        {
            WindowConfig config = account.Settings.WinConfig;

            Window_Scale(config.Win_Width, config.Win_Height);
        }
Ejemplo n.º 4
0
        public void Window_MoveTo_Default()
        {
            WindowConfig config = account.Settings.WinConfig;

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