コード例 #1
0
 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();
 }
コード例 #2
0
 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();
 }