public CommunicationDataViewForm(MCObject mcObject)
        {
            this.MCObject = mcObject;

            this.SuspendLayout();

            this.ResumeLayout(false);
        }
Exemplo n.º 2
0
        public MCForm()
        {
            this.SuspendLayout();

            this.StartPosition = FormStartPosition.CenterScreen;

            this._ListBox = new ListBox();
            this.Controls.Add(this.ListBox);

            var commandTextBox = this._CommandTextBox = new ComboBox();

            commandTextBox.KeyDown += this.OnCommandTextBoxKeyDown;
            this.Controls.Add(commandTextBox);

            var communicationSetupGroupBox = this._CommunicationSetupGroupBox = this.CreateCommSetupGroupBox();

            communicationSetupGroupBox.ApplyClick += this.OnCommunicationSetupGroupBoxApplyClick;
            this.Controls.Add(communicationSetupGroupBox);

            this.ResumeLayout(false);

            this.ClientSize = new Size(600, 480);

            this.LogQueue       = new List <string>();
            this.Timer          = new Timer();
            this.Timer.Tick    += this.OnTimerTick;
            this.Timer.Interval = 50;
            this.Timer.Start();

            var mcObject = this.CreateMCObject();

            mcObject.Protocol.DataCode        = CommunicationDataCode.BINARY;
            mcObject.Logger.MessageLog       += this.OnMCMesssageLog;
            mcObject.Logger.CommunicationLog += this.OnMCCommunicationLog;
            this.MCObject = mcObject;
        }
Exemplo n.º 3
0
 public override void Execute(MCObject mcObject)
 {
     mcObject.GetMemoryRequest(this.DeviceCode, this.Offset, this.Count);
 }
Exemplo n.º 4
0
 public abstract void Execute(MCObject mcObject);