Ejemplo n.º 1
0
        private void PsdInputLoseFocus()
        {
            var wh = getPsdWidthAndHeight();

            if (wh.IsValid)
            {
                Config.SavePsdWidthAndHeight(wh);
                pwh = Config.GetPsdWidthAndHeight();
            }
        }
Ejemplo n.º 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();
         }
     }
 }
Ejemplo n.º 3
0
        public MainWindow()
        {
            InitializeComponent();

            pwh = Config.GetPsdWidthAndHeight();

            this.FillPsdPixedTextBox();

            this.InitNotifyIcon();

            this.Closed += MainWindow_Closed;

            this.Topmost = true;
        }