Exemple #1
0
        private void PsdInputLoseFocus()
        {
            var wh = getPsdWidthAndHeight();

            if (wh.IsValid)
            {
                Config.SavePsdWidthAndHeight(wh);
                pwh = Config.GetPsdWidthAndHeight();
            }
        }
Exemple #2
0
 public static void SavePsdWidthAndHeight(PsdWidthAndHeight wh)
 {
     using (var fs = new FileStream(ConfigFilePath(), FileMode.Create))
     {
         using (var sw = new StreamWriter(fs))
         {
             sw.WriteLine(wh.Format());
             sw.Flush();
         }
     }
 }
Exemple #3
0
        public MainWindow()
        {
            InitializeComponent();

            pwh = Config.GetPsdWidthAndHeight();

            this.FillPsdPixedTextBox();

            this.InitNotifyIcon();

            this.Closed += MainWindow_Closed;

            this.Topmost = true;
        }