/// <summary>
 /// Initializes a new instance of the <see cref="ImageWebModel"/> class.
 /// </summary>
 public ImageWebModel()
 {
     Client      = ImageServiceClient.Instance;
     IsConnected = Client.IsConnected;
     NumOfPics   = 0;
     Students    = GetStudents();
 }
Example #2
0
 /// <summary>
 /// SettingModel constructor.
 /// </summary>
 public SettingModel()
 {
     this.GuiClient = ImageServiceClient.Instance;
     this.GuiClient.RecieveCommand();
     this.GuiClient.UpdateResponse += UpdateResponse;
     this.InitializeSettingsParams();
 }
Example #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ConfigModel"/> class.
 /// </summary>
 public ConfigModel()
 {
     client   = ImageServiceClient.Instance;
     handlers = new List <string>();
     this.client.DataReceived += NotifyChange;
     this.requested            = false;
 }
Example #4
0
        public Log()
        {
            this.client = ImageServiceClient.Instance;

            this.client.UpdateResponse += UpdateResponse;
            this.client.RecieveCommand();
            this.InitializeLogsParams();
        }
Example #5
0
        public ImageWebInfo()
        {
            Counter = "";
            Status  = "";

            this.client = ImageServiceClient.Instance;
            this.client.RecieveCommand();
            this.client.UpdateResponse += UpdateResponse;
            Students = getList();
            string[] arr = new string[2];
            CommandRecievedEventArgs request = new CommandRecievedEventArgs((int)CommandEnum.ImageWebCommand, arr, "");

            this.client.SendCommand(request);
        }
Example #6
0
        /// <summary>
        /// constructor.
        /// initialize new config params.
        /// </summary>
        public Config()
        {
            SourceName      = "";
            LogName         = "";
            OutputDirectory = "";
            ThumbnailSize   = 1;
            try
            {
                this.clien = ImageServiceClient.Instance;
                this.clien.RecieveCommand();
                this.clien.UpdateResponse += UpdateResponse;

                Handlers = new ObservableCollection <string>();
                Enabled  = false;
                string[] arr = new string[5];
                CommandRecievedEventArgs request = new CommandRecievedEventArgs((int)CommandEnum.GetConfigCommand, arr, "");
                this.clien.SendCommand(request);
                SpinWait.SpinUntil(() => Enabled);
            }
            catch (Exception ex)
            {
            }
        }
Example #7
0
 /// <summary>
 /// MainWindowModel constructor.
 /// </summary>
 public MainWindowModel()
 {
     GuiClient   = ImageServiceClient.Instance;
     IsConnected = GuiClient.IsConnected;
 }
Example #8
0
 /// <summary>
 /// Initializes a new instance of the <see cref="LogsModel"/> class.
 /// </summary>
 public LogsModel()
 {
     client = ImageServiceClient.Instance;
     client.DataReceived += NotifyChange;
 }