Exemple #1
0
 /// <summary>
 /// Constractur.
 /// </summary>
 public LogsVM()
 {
     this.logsModel = new LogsModel();
     this.logsModel.PropertyChanged += delegate(Object sender, PropertyChangedEventArgs e) {
         NotifyPropertyChanged("VM_" + e.PropertyName);
     };
 }
Exemple #2
0
 /// <summary>
 /// constructor
 /// </summary>
 /// <param name="logsModel">ILogsModel object</param>
 public LogsViewModel(ILogsModel logsModel)
 {
     this.m_logsModel             = logsModel;
     m_logsModel.PropertyChanged +=
         delegate(Object sender, PropertyChangedEventArgs e)
     {
         NotifyPropertyChanged(e.PropertyName);
     };
 }
 public LogsViewModel(ILogsModel model)
 {
     this.model = model;
     this.model.PropertyChanged +=
         delegate(Object sender, PropertyChangedEventArgs e)
     {
         NotifyPropertyChanged("VM_" + e.PropertyName);
     };
 }
Exemple #4
0
 /// <summary>
 /// LogsViewModel Constructor
 /// </summary>
 public LogsViewModel()
 {
     //Creates a new logs model
     this.logs_model = new LogsModel();
     //delegates
     this.logs_model.PropertyChanged += delegate(object sender, PropertyChangedEventArgs e)
     {
         this.NotifyPropertyChanged("VM_" + e.PropertyName);
     };
 }
Exemple #5
0
 /// <summary>
 /// The constructor of the class.
 /// </summary>
 public LogsViewModel()
 {
     _logsModel   = new LogsModel();
     VmLogArchive = _logsModel.LogMessegesArchive;
 }
 public LogsViewModel()
 {
     model = new LogsModel();
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="LogsViewModel"/> class.
 /// </summary>
 public LogsViewModel()
 {
     this.model = new LogsModel();
 }