Better display and hiding of process queue
This commit is contained in:
parent
ffe0f0730d
commit
2341f6ea3b
1
Source/LibationWinForms/Form1.Designer.cs
generated
1
Source/LibationWinForms/Form1.Designer.cs
generated
@ -451,6 +451,7 @@
|
|||||||
// splitContainer1
|
// splitContainer1
|
||||||
//
|
//
|
||||||
this.splitContainer1.Dock = System.Windows.Forms.DockStyle.Fill;
|
this.splitContainer1.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||||
|
this.splitContainer1.FixedPanel = System.Windows.Forms.FixedPanel.Panel2;
|
||||||
this.splitContainer1.Location = new System.Drawing.Point(0, 0);
|
this.splitContainer1.Location = new System.Drawing.Point(0, 0);
|
||||||
this.splitContainer1.Name = "splitContainer1";
|
this.splitContainer1.Name = "splitContainer1";
|
||||||
//
|
//
|
||||||
|
|||||||
@ -17,7 +17,9 @@ namespace LibationWinForms
|
|||||||
processBookQueue1.popoutBtn.Click += ProcessBookQueue1_PopOut;
|
processBookQueue1.popoutBtn.Click += ProcessBookQueue1_PopOut;
|
||||||
var coppalseState = Configuration.Instance.GetNonString<bool>(nameof(splitContainer1.Panel2Collapsed));
|
var coppalseState = Configuration.Instance.GetNonString<bool>(nameof(splitContainer1.Panel2Collapsed));
|
||||||
WidthChange = splitContainer1.Panel2.Width + splitContainer1.SplitterWidth;
|
WidthChange = splitContainer1.Panel2.Width + splitContainer1.SplitterWidth;
|
||||||
|
int width = this.Width;
|
||||||
SetQueueCollapseState(coppalseState);
|
SetQueueCollapseState(coppalseState);
|
||||||
|
this.Width = width;
|
||||||
}
|
}
|
||||||
|
|
||||||
private void ProductsDisplay_LiberateClicked(object sender, LibraryBook e)
|
private void ProductsDisplay_LiberateClicked(object sender, LibraryBook e)
|
||||||
|
|||||||
@ -20,7 +20,7 @@ namespace LibationWinForms
|
|||||||
// Before calling anything else, including subscribing to events, ensure database exists. If we wait and let it happen lazily, race conditions and errors are likely during new installs
|
// Before calling anything else, including subscribing to events, ensure database exists. If we wait and let it happen lazily, race conditions and errors are likely during new installs
|
||||||
using var _ = DbContexts.GetContext();
|
using var _ = DbContexts.GetContext();
|
||||||
|
|
||||||
this.Load += (_, _) => this.RestoreSizeAndLocation(Configuration.Instance);
|
this.RestoreSizeAndLocation(Configuration.Instance);
|
||||||
this.FormClosing += (_, _) => this.SaveSizeAndLocation(Configuration.Instance);
|
this.FormClosing += (_, _) => this.SaveSizeAndLocation(Configuration.Instance);
|
||||||
|
|
||||||
// this looks like a perfect opportunity to refactor per below.
|
// this looks like a perfect opportunity to refactor per below.
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user