/// <summary> /// constructor /// </summary> public SettingModal() { client = GuiClient.GetInstance; client.CommandRecieved += this.OnUpdate; client.RecivedMessageFromServer(); InitializedSettings(); }
/// <summary> /// construtor - when created - ask from server the log list /// </summary> public LogModel() { //singelton client = GuiClient.GetInstance; client.CommandRecieved += this.OnUpdate; InitializedLog(); }
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); }
/// <summary> /// constructor - initalized if client connected to server (in not conneceted = false) /// </summary> public MainWindowModal() { client = GuiClient.GetInstance; this.connected = client.IsConnected; }