public GateObjectConfig(GateProperty gatep, DeviceConfig devconf, Guid devc_id, DeviceProperty devp) { GateProperty = gatep; DeviceConfig = devconf; DeviceClassID = devc_id; DeviceProperty = devp; }
public GateEditDialog(GateProperty gatep, DeviceConfig devconf, Guid devc_id, DeviceProperty devp) { InitializeComponent(); InitializeDeviceType(); gatep_ = gatep; devconf_ = devconf; devc_id_ = devc_id; devp_ = (devp != null) ? (devp.Clone()) : (null); /* 初期値設定 */ TBox_Alias.Text = gatep.Alias; CBox_DeviceType.SelectedItem = devc_id; Btn_SelectColor.BackColor = gatep_.Color; ChkBox_Notify_DataSendCompleted.Checked = devconf.DataSendCompletedNotify; ChkBox_Notify_DataRecvCompleted.Checked = devconf.DataRecvCompletedNotify; ChkBox_Notify_DeviceConnect.Checked = devconf.DeviceConnectNotify; ChkBox_DataSendEnable.Checked = devconf.DataSendEnable; Num_DataSendQueueLimit.Value = devconf.DataSendQueueLimit; ChkBox_DataRedirectEnable.Checked = devconf.DataRedirectEnable; Num_DataRedirectQueueLimit.Value = devconf.DataRedirectQueueLimit; TBox_SendDataRedirectTargetAlias.Text = gatep.SendRedirectAlias; TBox_RecvDataRedirectTargetAlias.Text = gatep.RecvRedirectAlias; TBox_ConnectCommand.Text = gatep.ConnectCommand; }
public void AddGate(GateProperty gatep, DeviceConfig devconf, Guid devc_id, DeviceProperty devp) { if (gatec_list_.Count >= ConfigManager.System.ApplicationCore.GateNum.Value) { return; } var gate = GateManager.CreateGateObject(gatep, devconf, devc_id, devp); if (gate == null) { return; } var gatec = new MainWindow_Gate(gate); /* リストへ追加 */ gatec_list_.Add(gatec); /* フォームに追加 */ Panel_GateList.Controls.Add(gatec); }