Widow – Diff between revs 6 and 7
?pathlinks?
Rev 6 | Rev 7 | |||
---|---|---|---|---|
Line 22... | Line 22... | |||
22 | |
22 | |
|
Line 23... | Line 23... | |||
23 | public Windows.Windows Windows { get; set; } |
23 | public Windows.Windows Windows { get; set; } |
|
Line 24... | Line 24... | |||
24 | |
24 | |
|
Line 25... | Line 25... | |||
25 | public RuleEditForm RuleEditForm { get; set; } |
25 | public RuleEditForm RuleEditForm { get; set; } |
|
Line 26... | Line 26... | |||
26 | |
26 | |
|
Line 43... | Line 43... | |||
43 | |
43 | |
|
Line 44... | Line 44... | |||
44 | Natives.RegisterShellHookWindow(Handle); |
44 | Natives.RegisterShellHookWindow(Handle); |
|
45 | |
45 | |
|
46 | LoadWindows().ContinueWith(task => |
46 | LoadWindows().ContinueWith(task => |
|
47 | { |
47 | { |
|
48 | Apply = new Apply(this, Windows) {OnWindowCreate = Settings.Default.OnWindowCreate}; |
48 | WindowRescale = new WindowRescale(this, Windows) {OnWindowCreate = Settings.Default.OnWindowCreate}; |
|
Line 49... | Line 49... | |||
49 | }); |
49 | }); |
|
50 | } |
50 | } |
|
Line 142... | Line 142... | |||
142 | |
142 | |
|
143 | private void OnWindowCreateToolStripMenuItem_CheckedChanged(object sender, EventArgs e) |
143 | private void OnWindowCreateToolStripMenuItem_CheckedChanged(object sender, EventArgs e) |
|
144 | { |
144 | { |
|
Line 145... | Line 145... | |||
145 | Settings.Default.OnWindowCreate = ((ToolStripMenuItem) sender).Checked; |
145 | Settings.Default.OnWindowCreate = ((ToolStripMenuItem) sender).Checked; |
|
146 | |
146 | |
|
Line 147... | Line 147... | |||
147 | Apply.OnWindowCreate = Settings.Default.OnWindowCreate; |
147 | WindowRescale.OnWindowCreate = Settings.Default.OnWindowCreate; |
|
148 | } |
148 | } |
|
149 | |
149 | |
|
150 | private void AboutToolStripMenuItem_Click(object sender, EventArgs e) |
150 | private void AboutToolStripMenuItem_Click(object sender, EventArgs e) |
|
151 | { |
151 | { |
|
152 | // Show the about form. |
152 | // Show the about form. |
|
Line -... | Line 153... | |||
- | 153 | AboutForm = new AboutForm(); |
||
- | 154 | AboutForm.Show(); |
||
- | 155 | } |
||
- | 156 | |
||
- | 157 | private void ApplyNowToolStripMenuItem_Click(object sender, EventArgs e) |
||
153 | AboutForm = new AboutForm(); |
158 | { |
|
Line 154... | Line 159... | |||
154 | AboutForm.Show(); |
159 | WindowRescale.Apply(); |
|
Line 155... | Line 160... | |||
155 | } |
160 | } |