protected override void OnClosing(CancelEventArgs e) { mountVm.Disconnect(); base.OnClosing(e); AppSettings.Instance.WindowPos = new Point((int)Math.Max(0, this.Left), (int)Math.Max(0, this.Top)); AppSettings.Instance.Save(); }
protected override void OnClosing(CancelEventArgs e) { mountVm.Disconnect(); base.OnClosing(e); Settings.Default.WindowPos = new System.Drawing.Point((int)Math.Max(0, this.Left), (int)Math.Max(0, this.Top)); Settings.Default.Save(); }