コード例 #1
0
 public SettingsModel()
 {
     this.LbHandlers               = new ObservableCollection <string>();
     this.communication            = CommunicationSingleton.Instance;
     this.communication.InMessage += IncomingMessage;
     this.communication.Read();
 }
コード例 #2
0
ファイル: Logs.cs プロジェクト: braunsteind/ImageService
        /// <summary>
        /// Constructor
        /// </summary>
        public Logs()
        {
            Communication            = CommunicationSingleton.Instance;
            Communication.InMessage += UpdateAction;
            Communication.Read();
            LogItems = new List <Log>();
            CommandRecievedEventArgs args = new CommandRecievedEventArgs((int)CommandEnum.LogCommand, null, "");

            Communication.Write(args);
        }
コード例 #3
0
        public Config()
        {
            Communication = CommunicationSingleton.Instance;
            Communication.Read();
            Communication.InMessage += UpdateResponse;
            SourceName      = "";
            LogName         = "";
            OutputDirectory = "";
            ThumbnailSize   = 1;
            Handlers        = new ObservableCollection <string>();
            Enabled         = false;
            string[] arr = new string[5];
            CommandRecievedEventArgs command = new CommandRecievedEventArgs((int)CommandEnum.GetConfigCommand, arr, "");

            Communication.Write(command);
        }
コード例 #4
0
        /// <summary>
        /// Constructor
        /// </summary>
        public SettingsModel()
        {
            //get instance of communication
            this.Communication = CommunicationSingleton.Instance;
            //sign to InMessage
            this.Communication.Read();
            this.Communication.InMessage += UpdateSettings;
            //create list of handelrs
            this.LbHandlers = new ObservableCollection <string>();
            Object settingsLock = new Object();

            BindingOperations.EnableCollectionSynchronization(LbHandlers, settingsLock);
            //write GetConfigCommand to server
            string[] arr = new string[5];
            CommandRecievedEventArgs command = new CommandRecievedEventArgs((int)CommandEnum.GetConfigCommand, arr, "");

            this.Communication.Write(command);
        }