Ejemplo n.º 1
0
 /// <summary>
 /// constructor
 /// </summary>
 public SettingModal()
 {
     client = GuiClient.GetInstance;
     client.CommandRecieved += this.OnUpdate;
     client.RecivedMessageFromServer();
     InitializedSettings();
 }
Ejemplo n.º 2
0
 /// <summary>
 /// construtor - when created - ask from server the log list
 /// </summary>
 public LogModel()
 {
     //singelton
     client = GuiClient.GetInstance;
     client.CommandRecieved += this.OnUpdate;
     InitializedLog();
 }
Ejemplo n.º 3
0
 public SettingsViewModal(ISettingsModal modal)
 {
     this.modal  = modal;
     this.client = GuiClient.GetInstance;
     this.modal.PropertyChanged += delegate(object sender, PropertyChangedEventArgs e)
     {
         NotifyPropertyChanged("VM_" + e.PropertyName);
     };
     RemoveHandlerCommand = new DelegateCommand <object>(OnRemoveHandler, CanExecute);
 }
Ejemplo n.º 4
0
 /// <summary>
 /// constructor - initalized if client connected to server (in not conneceted = false)
 /// </summary>
 public MainWindowModal()
 {
     client         = GuiClient.GetInstance;
     this.connected = client.IsConnected;
 }