Toasts – Diff between revs 9 and 10
?pathlinks?
Rev 9 | Rev 10 | |||
---|---|---|---|---|
Line 111... | Line 111... | |||
111 | 500); |
111 | 500); |
|
Line 112... | Line 112... | |||
112 | |
112 | |
|
113 | Region = Region.FromHrgn(NativeMethods.CreateRoundRectRgn(0, 0, Width - 5, Height - 5, 20, 20)); |
113 | Region = Region.FromHrgn(NativeMethods.CreateRoundRectRgn(0, 0, Width - 5, Height - 5, 20, 20)); |
|
Line -... | Line 114... | |||
- | 114 | } |
||
- | 115 | |
||
- | 116 | public ToastForm(string title, string body, int duration, Icon logo) : this() |
||
- | 117 | { |
||
- | 118 | lifeTimer.Interval = duration; |
||
- | 119 | labelTitle.Text = title; |
||
- | 120 | labelBody.Text = body; |
||
- | 121 | imageBox.Image = logo.ToBitmap(); |
||
- | 122 | |
||
- | 123 | _animator = new FormAnimator(this, FormAnimator.AnimationMethod.Slide, FormAnimator.AnimationDirection.Up, |
||
- | 124 | 500); |
||
- | 125 | |
||
- | 126 | Region = Region.FromHrgn(NativeMethods.CreateRoundRectRgn(0, 0, Width - 5, Height - 5, 20, 20)); |
||
114 | } |
127 | } |
|
115 | |
128 | |
|
116 | /// <summary> |
129 | /// <summary> |
|
117 | /// Clean up any resources being used. |
130 | /// Clean up any resources being used. |
|
118 | /// </summary> |
131 | /// </summary> |