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

            this.SuspendLayout();

            this.ResumeLayout(false);
        }
Esempio 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;
        }
Esempio n. 3
0
 public override void Execute(MCObject mcObject)
 {
     mcObject.GetMemoryRequest(this.DeviceCode, this.Offset, this.Count);
 }
Esempio n. 4
0
 public abstract void Execute(MCObject mcObject);