예제 #1
0
 private void manualToolStripMenuItem_Click(object sender, EventArgs e)
 {
     ChangeMode(tvActionExplorer.SelectedNode.Name, manualToolStripMenuItem.Text);
     changeModeToolStripMenuItem.Text = "Change Mode : " + manualToolStripMenuItem.Text;
     CMSAction.Show();
     CMSAction.Refresh();
 }
        public void initAction(string ch, MouseEventArgs e)
        {
            ActionToolStrip obj = new ActionToolStrip();

            switch (ch)
            {
            case "NodeDataSynchronization":
                obj = ActionDataSync;
                initToolStrip(ActionDataSync.ActionPropery.ActionProperties.Type);
                CMSAction.Show(tvActionExplorer, e.Location);
                break;

            case "NodePayments":
                obj = ActionDataSyncPayment;
                initToolStrip(ActionDataSyncPayment.ActionPropery.ActionProperties.Type);
                CMSAction.Show(tvActionExplorer, e.Location);
                break;

            case "NodeDirect":

                obj = ActionDataSyncPaymentDirect;
                initToolStrip(ActionDataSyncPaymentDirect.ActionPropery.ActionProperties.Type);
                changeModeToolStripMenuItem.Text = "Change Mode : " + ActionDataSyncPaymentDirect.getMode();
                CMSAction.Show(tvActionExplorer, e.Location);
                break;

            case "NodeIndirect":

                obj = ActionDataSyncPaymentIndirect;
                initToolStrip(ActionDataSyncPaymentIndirect.ActionPropery.ActionProperties.Type);
                changeModeToolStripMenuItem.Text = "Change Mode : " + ActionDataSyncPaymentIndirect.getMode();
                CMSAction.Show(tvActionExplorer, e.Location);
                break;

            case "NodeFile":

                obj = ActionDataSyncPaymentIndirect;
                initToolStrip(ActionDataSyncPaymentIndirect.ActionPropery.ActionProperties.Type);
                changeModeToolStripMenuItem.Text = "Change Mode : " + ActionDataSyncPaymentIndirect.getMode();
                CMSAction.Show(tvActionExplorer, e.Location);
                break;

            case "NodeMembership":

                obj = ActionDataSyncMembership;
                initToolStrip(ActionDataSyncMembership.ActionPropery.ActionProperties.Type);
                changeModeToolStripMenuItem.Text = "Change Mode : " + ActionDataSyncMembership.getMode();
                CMSAction.Show(tvActionExplorer, e.Location);
                break;

            case "NodeMembershipApplication":


                obj = ActionDataSyncMembershipApplication;
                initToolStrip(ActionDataSyncMembershipApplication.ActionPropery.ActionProperties.Type);
                changeModeToolStripMenuItem.Text = "Change Mode : " + ActionDataSyncMembershipApplication.getMode();
                CMSAction.Show(tvActionExplorer, e.Location);
                break;

            case "NodeChangeAddress":


                obj = ActionDataSyncChangeAddress;
                initToolStrip(ActionDataSyncChangeAddress.ActionPropery.ActionProperties.Type);
                changeModeToolStripMenuItem.Text = "Change Mode : " + ActionDataSyncChangeAddress.getMode();
                CMSAction.Show(tvActionExplorer, e.Location);
                break;

            case "NodeMemberData":

                obj = ActionDataSyncMemberData;
                initToolStrip(ActionDataSyncMemberData.ActionPropery.ActionProperties.Type);
                changeModeToolStripMenuItem.Text = "Change Mode : " + ActionDataSyncMemberData.getMode();
                CMSAction.Show(tvActionExplorer, e.Location);
                break;

            case "NodeExamination":

                initToolStrip(ActionDataSyncExamination.ActionPropery.ActionProperties.Type);
                changeModeToolStripMenuItem.Text = "Change Mode : " + ActionDataSyncExamination.getMode();
                CMSAction.Show(tvActionExplorer, e.Location);
                break;

            case "NodeTechnicalActivities":

                initToolStrip(ActionDataSyncTechnicalActivities.ActionPropery.ActionProperties.Type);
                changeModeToolStripMenuItem.Text = "Change Mode : " + ActionDataSyncTechnicalActivities.getMode();
                CMSAction.Show(tvActionExplorer, e.Location);
                break;
            }
            CMSActionRefresh(obj.ActionPropery);
        }