コード例 #1
0
 /// <summary>
 /// LogCollection constructor.
 /// initialize new Log list.
 /// </summary>
 public LogCollection()
 {
     try
     {
         GuiClient = ImageServiceClient.Instance;
         GuiClient.UpdateResponse += UpdateResponse;
         GuiClient.RecieveCommand();
         this.InitializeLogsParams();
     }
     catch (Exception ex)
     {
     }
 }
コード例 #2
0
 /// <summary>
 /// ImageWebInfo constructor.
 /// initialize new ImageWebInfo obj.
 /// </summary>
 public ImageWebInfo()
 {
     try
     {
         GuiClient        = Communication.ImageServiceClient.Instance;
         IsConnected      = GuiClient.IsConnected;
         NumofPics        = 0;
         m_config         = new Config();
         m_config.Notify += Notify;
         Students         = GetStudents();
     }
     catch (Exception ex)
     {
     }
 }
コード例 #3
0
ファイル: Config.cs プロジェクト: OriBenZaken/ImageService
 /// <summary>
 /// constructor.
 /// initialize new config params.
 /// </summary>
 public Config()
 {
     try
     {
         GuiClient = Communication.ImageServiceClient.Instance;
         GuiClient.RecieveCommand();
         GuiClient.UpdateResponse += UpdateResponse;
         SourceName      = "";
         LogName         = "";
         OutputDirectory = "";
         ThumbnailSize   = 1;
         Handlers        = new ObservableCollection <string>();
         Enabled         = false;
         string[] arr = new string[5];
         CommandRecievedEventArgs request = new CommandRecievedEventArgs((int)CommandEnum.GetConfigCommand, arr, "");
         GuiClient.SendCommand(request);
     }
     catch (Exception ex)
     {
     }
 }