mirror of
https://github.com/Crypto-Notepad/Crypto-Notepad.git
synced 2026-03-11 08:55:25 +00:00
Save window pos/size/state
This commit is contained in:
parent
e1cea72396
commit
30608a0ecd
1 changed files with 7 additions and 3 deletions
|
|
@ -242,12 +242,16 @@ private async void saveAsToolStripMenuItem_Click(object sender, EventArgs e)
|
|||
|
||||
private void MainWindow_FormClosing(object sender, FormClosingEventArgs e)
|
||||
{
|
||||
ps.WindowLocation = this.Location;
|
||||
ps.MenuWrap = переносПоСловамToolStripMenuItem.Checked;
|
||||
ps.RichWrap = customRTB.WordWrap;
|
||||
if (this.WindowState == FormWindowState.Normal)
|
||||
{
|
||||
ps.WindowSize = this.Size;
|
||||
ps.WindowLocation = this.Location;
|
||||
ps.WindowState = this.WindowState;
|
||||
}
|
||||
|
||||
if (this.WindowState == FormWindowState.Maximized)
|
||||
{
|
||||
ps.WindowState = this.WindowState;
|
||||
}
|
||||
|
||||
ps.Save();
|
||||
|
|
|
|||
Loading…
Reference in a new issue