Changeset 3350 for trunk/sources/HeuristicLab.MainForm
- Timestamp:
- 04/15/10 01:34:27 (15 years ago)
- Location:
- trunk/sources/HeuristicLab.MainForm/3.2
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.MainForm/3.2/Interfaces/IView.cs
r2790 r3350 30 30 bool IsShown { get; } 31 31 string Caption { get; set; } 32 bool ReadOnly { get; set; } 33 event EventHandler ReadOnlyChanged; 32 34 event EventHandler CaptionChanged; 33 35 event EventHandler Changed; -
trunk/sources/HeuristicLab.MainForm/3.2/MainFormManager.cs
r3278 r3350 148 148 return (IView)Activator.CreateInstance(t, content); 149 149 } 150 public static IView CreateDefaultView(object content, bool readOnly) { 151 IView view = CreateDefaultView(content); 152 if (view != null) 153 view.ReadOnly = readOnly; 154 return null; 155 } 150 156 151 157 public static IView CreateView(Type viewType) { … … 156 162 157 163 return (IView)Activator.CreateInstance(viewType); 164 } 165 public static IView CreateView(Type viewType, bool readOnly) { 166 IView view = CreateView(viewType); 167 view.ReadOnly = readOnly; 168 return view; 158 169 } 159 170 … … 166 177 167 178 return (IView)Activator.CreateInstance(view, content); 179 } 180 public static IView CreateView(Type viewType, object content, bool readOnly) { 181 IView view = CreateView(viewType, content); 182 view.ReadOnly = readOnly; 183 return view; 168 184 } 169 185
Note: See TracChangeset
for help on using the changeset viewer.