public CommunicationDataViewForm(MCObject mcObject) { this.MCObject = mcObject; this.SuspendLayout(); this.ResumeLayout(false); }
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; }
public override void Execute(MCObject mcObject) { mcObject.GetMemoryRequest(this.DeviceCode, this.Offset, this.Count); }
public abstract void Execute(MCObject mcObject);