コード例 #1
0
ファイル: ConfigModel.cs プロジェクト: DoreenVas/ImageService
        /// <summary>
        /// Initializes a new config model.
        /// Sends the Server a GetConfigCommand.
        /// </summary>
        private void Initializer()
        {
            Handlers = new List <string>();
            string[] arr = new string[1];
            CommandRecievedEventArgs request = new CommandRecievedEventArgs((int)CommandEnum.GetConfigCommand, arr, "");

            Client.SendCommand(request);
        }
コード例 #2
0
        /// <summary>
        /// Initializes a new log model.
        /// Sends the Server a LogCommand to recieve all the logs so far.
        /// </summary>
        private void Initializer()
        {
            Logs = new List <MessageRecievedEventArgs>();
            CommandRecievedEventArgs request = new CommandRecievedEventArgs((int)CommandEnum.LogCommand, null, "");

            Client.SendCommand(request);
        }