private void PsdInputLoseFocus() { var wh = getPsdWidthAndHeight(); if (wh.IsValid) { Config.SavePsdWidthAndHeight(wh); pwh = Config.GetPsdWidthAndHeight(); } }
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(); } } }
public MainWindow() { InitializeComponent(); pwh = Config.GetPsdWidthAndHeight(); this.FillPsdPixedTextBox(); this.InitNotifyIcon(); this.Closed += MainWindow_Closed; this.Topmost = true; }