public Component2ComponentDialog(bool showNewTargetTab = true) { InitializeComponent(); if (!showNewTargetTab) tabCtrl.TabPages.RemoveAt(1); m_newActionHandler = new NewActionHandler(txtSource, txtTarget, cmbEvent, cmbClientAction, txtServerAction, cmbJoint, chkServer); this.chkServer.CheckedChanged += m_newActionHandler.OnServerCheckboxChanged; this.cmbClientAction.SelectedIndexChanged += m_newActionHandler.OnSelectedActionChanged; m_newTargetHandler = new NewTargetHandler(lstAction, cmbJoint2, txtTarget2); }
public Component2ComponentDialog(bool showNewTargetTab = true) { InitializeComponent(); if (!showNewTargetTab) { tabCtrl.TabPages.RemoveAt(1); } m_newActionHandler = new NewActionHandler(txtSource, txtTarget, cmbEvent, cmbClientAction, txtServerAction, cmbJoint, chkServer); this.chkServer.CheckedChanged += m_newActionHandler.OnServerCheckboxChanged; this.cmbClientAction.SelectedIndexChanged += m_newActionHandler.OnSelectedActionChanged; m_newTargetHandler = new NewTargetHandler(lstAction, cmbJoint2, txtTarget2); }