Example #1
0
        internal void SaveConfig()
        {
            if (Config == null)
            {
                return;
            }
            FixNan(this);

            if (DebugStartUp)
            {
                Debug.WriteLine("Saving " + Name);
            }

            Config.Height      = Height;
            Config.Width       = Width;
            Config.Top         = Top;
            Config.Left        = Left;
            Config.WindowState = WindowState;
            Config.Opacity     = Opacity;
            Config.FontSize    = FontSize;

            WindowSettings.UpgradeRequired = false;
            WindowSettings.Save();
        }
Example #2
0
 public WindowBase()
 {
     WindowSettings = new WindowSettings();
     Loaded        += Window_Loaded;
 }