comparison Chronosv2/source/Presentation/Core/Windows/IWindow.cs @ 10:443821e55f06

Initial cleaned up add from Codeplex files
author stevenh7776 stevenhollidge@hotmail.com
date Tue, 21 Feb 2012 17:25:44 +0700
parents
children
comparison
equal deleted inserted replaced
9:904a9faadf8b 10:443821e55f06
1 /*
2 The MIT License
3
4 Copyright (c) 2009-2010. Carlos Guzmán Álvarez. http://chronoswpf.codeplex.com/
5
6 Permission is hereby granted, free of charge, to any person obtaining a copy
7 of this software and associated documentation files (the "Software"), to deal
8 in the Software without restriction, including without limitation the rights
9 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10 copies of the Software, and to permit persons to whom the Software is
11 furnished to do so, subject to the following conditions:
12
13 The above copyright notice and this permission notice shall be included in
14 all copies or substantial portions of the Software.
15
16 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
22 THE SOFTWARE.
23 */
24
25 using System;
26 using System.ComponentModel;
27 using System.Windows;
28 using System.Windows.Input;
29
30 namespace Chronos.Presentation.Core.Windows
31 {
32 /// <summary>
33 ///
34 /// </summary>
35 public interface IWindow
36 : IDesktopElement
37 {
38 #region · Events ·
39
40 /// <summary>
41 /// Occurs when the window state has changed
42 /// </summary>
43 event EventHandler WindowStateChanged;
44
45 /// <summary>
46 /// Occurs when the window is about to be closed
47 /// </summary>
48 event CancelEventHandler Closing;
49
50 /// <summary>
51 /// Occurs when the window is closed
52 /// </summary>
53 event EventHandler Closed;
54
55 #endregion
56
57 #region · Commands ·
58
59 /// <summary>
60 /// Gets the close window command
61 /// </summary>
62 ICommand CloseCommand
63 {
64 get;
65 }
66
67 /// <summary>
68 /// Gets the maximize window command
69 /// </summary>
70 ICommand MaximizeCommand
71 {
72 get;
73 }
74
75 /// <summary>
76 /// Gets the minimize window command
77 /// </summary>
78 ICommand MinimizeCommand
79 {
80 get;
81 }
82
83 #endregion
84
85 #region · Properties ·
86
87 /// <summary>
88 /// Gets or sets the window title
89 /// </summary>
90 string Title
91 {
92 get;
93 set;
94 }
95
96 /// <summary>
97 /// Gets or sets a value that indicates whether the maximize button is shown
98 /// </summary>
99 bool ShowMaximizeButton
100 {
101 get;
102 set;
103 }
104
105 /// <summary>
106 /// Gets or sets a value that indicates whether the minimize button is shown
107 /// </summary>
108 bool ShowMinimizeButton
109 {
110 get;
111 set;
112 }
113
114 /// <summary>
115 /// Gets or sets a value that indicates whether the close button is shown
116 /// </summary>
117 bool ShowCloseButton
118 {
119 get;
120 set;
121 }
122
123 /// <summary>
124 /// Gets or sets the current <see cref="Chronos.Presentation.Core.Windows.ViewModeType"/>
125 /// </summary>
126 ViewModeType ViewMode
127 {
128 get;
129 set;
130 }
131
132 /// <summary>
133 /// Gets or sets the <see cref="Chronos.Presentation.Core.Windows.WindowState"/>
134 /// </summary>
135 WindowState WindowState
136 {
137 get;
138 set;
139 }
140
141 #endregion
142
143 #region · Methods ·
144
145 /// <summary>
146 /// Shows the window
147 /// </summary>
148 void Show();
149
150 /// <summary>
151 /// Closes the window
152 /// </summary>
153 void Close();
154
155 /// <summary>
156 /// Hides the window
157 /// </summary>
158 void Hide();
159
160 #endregion
161 }
162 }