[tasque/viewmodel: 69/78] Format ViewModel.cs
- From: Antonius Riha <antoniusri src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tasque/viewmodel: 69/78] Format ViewModel.cs
- Date: Wed, 29 Aug 2012 18:40:27 +0000 (UTC)
commit 36a38503c126da4679cf17a2a19df6ddca9e3d12
Author: Antonius Riha <antoniusriha gmail com>
Date: Fri Aug 10 00:17:56 2012 +0200
Format ViewModel.cs
src/libtasqueui/ViewModel.cs | 11 ++++++++---
1 files changed, 8 insertions(+), 3 deletions(-)
---
diff --git a/src/libtasqueui/ViewModel.cs b/src/libtasqueui/ViewModel.cs
index 368dcca..3729379 100644
--- a/src/libtasqueui/ViewModel.cs
+++ b/src/libtasqueui/ViewModel.cs
@@ -40,6 +40,7 @@ namespace Tasque.UIModel
parent.Children.Add (this);
}
+ #region Close Command
public ICommand Close {
get {
if (close == null) {
@@ -61,6 +62,10 @@ namespace Tasque.UIModel
protected virtual void OnClose () {}
+ internal event EventHandler Closed;
+ #endregion
+
+ #region IDisposable
void Dispose ()
{
Dispose (true);
@@ -73,7 +78,7 @@ namespace Tasque.UIModel
{
Dispose (false);
}
-
+ #endregion
#region Object Service
//DOCS: Provides a service for descendants to retrieve an object instance
@@ -103,6 +108,7 @@ namespace Tasque.UIModel
}
#endregion
+ #region INotifyPropertyChanged
public event PropertyChangedEventHandler PropertyChanged;
protected virtual void OnPropertyChanged (string propertyName)
@@ -110,13 +116,12 @@ namespace Tasque.UIModel
if (PropertyChanged != null)
PropertyChanged (this, new PropertyChangedEventArgs (propertyName));
}
+ #endregion
internal Collection<ViewModel> Children {
get { return children ?? (children = new Collection<ViewModel> ()); }
}
- internal event EventHandler Closed;
-
Collection<ViewModel> children;
RelayCommand close;
ViewModel parent;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]