コード例 #1
0
 /// <summary>
 /// constructor
 /// </summary>
 public SettingModal()
 {
     client = GuiClient.GetInstance;
     client.CommandRecieved += this.OnUpdate;
     client.RecivedMessageFromServer();
     InitializedSettings();
 }
コード例 #2
0
ファイル: LogModel.cs プロジェクト: SnirHazan/Image-Service
 /// <summary>
 /// construtor - when created - ask from server the log list
 /// </summary>
 public LogModel()
 {
     //singelton
     client = GuiClient.GetInstance;
     client.CommandRecieved += this.OnUpdate;
     InitializedLog();
 }
コード例 #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);
 }
コード例 #4
0
 /// <summary>
 /// constructor - initalized if client connected to server (in not conneceted = false)
 /// </summary>
 public MainWindowModal()
 {
     client         = GuiClient.GetInstance;
     this.connected = client.IsConnected;
 }