QuickImage – Diff between revs 7 and 8
?pathlinks?
Rev 7 | Rev 8 | |||
---|---|---|---|---|
Line 19... | Line 19... | |||
19 | } |
19 | } |
|
Line 20... | Line 20... | |||
20 | |
20 | |
|
21 | public ViewLogsForm(Form1 mainForm) : this() |
21 | public ViewLogsForm(Form1 mainForm) : this() |
|
22 | { |
22 | { |
|
23 | _mainForm = mainForm; |
- | ||
24 | _mainForm.MemorySinkEnabled = true; |
23 | _mainForm = mainForm; |
|
Line 25... | Line 24... | |||
25 | } |
24 | } |
|
26 | |
25 | |
|
27 | public ViewLogsForm(Form1 mainForm, LogMemorySink memorySink, CancellationToken cancellationToken) : |
26 | public ViewLogsForm(Form1 mainForm, LogMemorySink memorySink, CancellationToken cancellationToken) : |
|
Line 41... | Line 40... | |||
41 | { |
40 | { |
|
42 | if (disposing && components != null) components.Dispose(); |
41 | if (disposing && components != null) components.Dispose(); |
|
Line 43... | Line 42... | |||
43 | |
42 | |
|
Line 44... | Line -... | |||
44 | _memorySink.Events.CollectionChanged -= Events_CollectionChanged; |
- | ||
45 | |
- | ||
46 | _mainForm.MemorySinkEnabled = false; |
- | ||
47 | _memorySink.Clear(); |
43 | _memorySink.Events.CollectionChanged -= Events_CollectionChanged; |
|
48 | |
44 | |
|
Line 49... | Line 45... | |||
49 | base.Dispose(disposing); |
45 | base.Dispose(disposing); |
|
50 | } |
46 | } |
|
Line 65... | Line 61... | |||
65 | } |
61 | } |
|
66 | } |
62 | } |
|
Line 67... | Line 63... | |||
67 | |
63 | |
|
68 | private void ViewLogsForm_Load(object sender, System.EventArgs e) |
64 | private void ViewLogsForm_Load(object sender, System.EventArgs e) |
|
69 | { |
65 | { |
|
- | 66 | JotFormTracker.Tracker.Track(this); |
||
- | 67 | |
||
- | 68 | |
||
- | 69 | foreach (var @event in _memorySink.Events) |
||
- | 70 | { |
||
- | 71 | textBox1.AppendText(@event); |
||
70 | JotFormTracker.Tracker.Track(this); |
72 | } |
|
71 | } |
73 | } |
|
72 | } |
74 | } |
|
73 | } |
75 | } |