Esempio n. 1
0
        // Gets info for word and populates
        public IEnumerator getHelp()
        {
            wordlist = PlayerPrefs.GetString("words").Split(","[0]);
            string myword = wordlist[PlayerPrefs.GetInt("currentword")];

            wordlist = new string[0];
            WWWForm form = new WWWForm();

            form.AddField("method", "getHelp");
            form.AddField("word", myword);
            using (var w = UnityWebRequest.Post("http://nati.games/apis/spellingflea.cfc", form))
            {
                yield return(w.SendWebRequest());

                if (w.isNetworkError || w.isHttpError)
                {
                    print(w.error);
                }
                else
                {
                    var myString = w.downloadHandler.text;
                    book            = JsonUtility.FromJson <help>(myString);
                    definition.text = book.definition;
                    examples.text   = book.examples;
                    synonyms.text   = book.synonyms;
                    help.SetActive(true);
                }
            }
        }
Esempio n. 2
0
 // Start is called before the first frame update
 void Start()
 {
     h1 = transform.Find("help_1").GetComponent <help>();
     h2 = transform.Find("help_2").GetComponent <help_2>();
     h3 = transform.Find("help_3").GetComponent <help>();
     h4 = transform.Find("help_4").GetComponent <help>();
     h5 = transform.Find("help_5").GetComponent <help_2>();
     help_1.SetActive(true);
 }
Esempio n. 3
0
 private void homepage_Load(object sender, EventArgs e)
 {
     //窗口变量赋值
     organization   = new organization();
     personal       = new personal();
     feedback       = new feedback();
     administrator  = new administrator();
     help           = new help();
     changepassword = new changepassword();
 }
Esempio n. 4
0
        public IActionResult checkbox()
        {
            help h = new help();

            h.Countrieslist.Add("bangladesh");
            h.Countrieslist.Add("newzealand");
            h.Countrieslist.Add("India");


            return(View(h));
        }
Esempio n. 5
0
        public async Task <IHttpActionResult> UpdateMarker([FromBody] help mar)
        {
            try
            {
                bool b = await BL.User.updateMarker(mar.phone, mar.lat, mar.lng);

                return(Ok(b));
            }
            catch (Exception ex)
            {
                return(Content(HttpStatusCode.BadRequest, ex.Message));
            }
        }
 // Start is called before the first frame update
 void Start()
 {
     //h1 = GameObject.FindWithTag("help_1").GetComponent<help>();
     //h2 = GameObject.FindWithTag("help_2").GetComponent<help_2>();
     //h3 = GameObject.FindWithTag("help_3").GetComponent<help>();
     //h4 = GameObject.FindWithTag("help_4").GetComponent<help>();
     //h5 = GameObject.FindWithTag("help_5").GetComponent<help_2>();
     h1 = transform.Find("help_1").GetComponent <help>();
     h2 = transform.Find("help_2").GetComponent <help_2>();
     h3 = transform.Find("help_3").GetComponent <help>();
     h4 = transform.Find("help_4").GetComponent <help>();
     h5 = transform.Find("help_5").GetComponent <help_2>();
     help_1.SetActive(true);
 }
Esempio n. 7
0
        public IActionResult checkbox(help h)
        {
            CountryMaster c = new CountryMaster();

            c.Name = h.Name;
            return(RedirectToAction("Succeed", c));

            /* HttpClient client = new HttpClient();
             * client.BaseAddress = new Uri("https://localhost:44395/");
             * client.DefaultRequestHeaders.Accept.Add(new MediaTypeWithQualityHeaderValue("application/json"));
             * client.DefaultRequestHeaders.Accept.Clear();
             *
             * HttpResponseMessage response = await client.PostAsJsonAsync("api/Demo", c);
             *
             * if (response.IsSuccessStatusCode == true)
             * {
             *   return View();
             * }*/
        }
Esempio n. 8
0
    public void getHelp()
    {
        BmobQuery queryUser = new BmobQuery();

        //  queryUser.WhereEqualTo("userId",userId);

        bmob.Find <help>(tableNameForHelp, queryUser, (resp, exception) =>
        {
            if (exception != null)
            {
                showMessagem("查询异常" + exception.Message);
                return;
            }
            if (resp.results.Count > 0)
            {
                help = resp.results[0];
            }
            getUser();
        });
    }
Esempio n. 9
0
    public override void OnEnter()
    {
        help_1.SetActive(true);
        if (h1 == null)
        {
            h1 = transform.Find("help_1").GetComponent <help>();
        }
        if (h2 == null)
        {
            h2 = transform.Find("help_2").GetComponent <help_2>();
        }
        if (h3 == null)
        {
            h3 = transform.Find("help_3").GetComponent <help>();
        }
        if (h4 == null)
        {
            h4 = transform.Find("help_4").GetComponent <help>();
        }
        if (h5 == null)
        {
            h5 = transform.Find("help_5").GetComponent <help_2>();
        }
        h1.setBool(true); h1.shouldActive = true;
        h2.setBool(true);
        h3.setBool(true);
        h4.setBool(true);
        h5.setBool(true);

        help = false;

        base.OnEnter();
        Time.timeScale = 1;
        if (canvasGroup == null)
        {
            canvasGroup = GetComponent <CanvasGroup>();
        }
        canvasGroup.alpha          = 1;
        canvasGroup.blocksRaycasts = true;
        onShow = true;
    }
        /* Private member functions */
        /// <summary>
        /// Creates object for each individual command
        /// Corresponding command constructor initializes command specific parameters
        /// Also adds each command name and command object to command dictionary
        /// </summary>
        private static void CommandInitializer()
        {
            #region Chassis Infrastructure Commands
            GetServiceVersion getServiceVersionCmd = new GetServiceVersion();
            commandMap.Add(WcsCliConstants.getserviceversion, getServiceVersionCmd);

            // Get Chassis Info
            GetChassisInfo getChassisInfoCmd = new GetChassisInfo();
            commandMap.Add(WcsCliConstants.getChassisInfo, getChassisInfoCmd);

            GetChassisHealth getChassisHealthCmd = new GetChassisHealth();
            commandMap.Add(WcsCliConstants.getChassisHealth, getChassisHealthCmd);

            // Get Blade Info
            GetBladeInfo getBladeInfoCmd = new GetBladeInfo();
            commandMap.Add(WcsCliConstants.getBladeInfo, getBladeInfoCmd);

            GetBladeHealth getBladeHealthCmd = new GetBladeHealth();
            commandMap.Add(WcsCliConstants.getBladeHealth, getBladeHealthCmd);

            // PSU Firmware
            UpdatePsuFirmware updatePsuFirmwareCmd = new UpdatePsuFirmware();
            commandMap.Add(WcsCliConstants.updatePsuFirmware, updatePsuFirmwareCmd);

            GetPsuFirmwareStatus getPsuFirmwareStatusCmd = new GetPsuFirmwareStatus();
            commandMap.Add(WcsCliConstants.getPsuFirmwareStatus, getPsuFirmwareStatusCmd);

            #endregion

            #region Blade Management Commands
            // Get Power State
            GetBladeHardPowerState getBladeHardPowerStateCmd = new GetBladeHardPowerState();
            commandMap.Add(WcsCliConstants.getBladeHardPowerState, getBladeHardPowerStateCmd);

            SetPowerOn poweronCmd = new SetPowerOn();
            commandMap.Add(WcsCliConstants.setPowerOn, poweronCmd);

            SetPowerOff poweroffCmd = new SetPowerOff();
            commandMap.Add(WcsCliConstants.setPowerOff, poweroffCmd);

            GetBladeSoftPowerState getBladeSoftPowerStateCmd = new GetBladeSoftPowerState();
            commandMap.Add(WcsCliConstants.getBladeSoftPowerState, getBladeSoftPowerStateCmd);

            SetBladeOn bladeOnCmd = new SetBladeOn();
            commandMap.Add(WcsCliConstants.setBladeOn, bladeOnCmd);

            SetBladeOff bladeOffCmd = new SetBladeOff();
            commandMap.Add(WcsCliConstants.setBladeOff, bladeOffCmd);

            // Blade Default Power On state
            SetBladeDefaultPowerState setBladeDefaultPowerStateCmd = new SetBladeDefaultPowerState();
            commandMap.Add(WcsCliConstants.setBladeDefaultPowerState, setBladeDefaultPowerStateCmd);

            GetBladeDefaultPowerState getBladeDefaultPowerStateCmd = new GetBladeDefaultPowerState();
            commandMap.Add(WcsCliConstants.getBladeDefaultPowerState, getBladeDefaultPowerStateCmd);

            SetBladeActivePowerCycle powercycleCmd = new SetBladeActivePowerCycle();
            commandMap.Add(WcsCliConstants.setBladeActivePowerCycle, powercycleCmd);

            GetNextBoot getNextBootCmd = new GetNextBoot();
            commandMap.Add(WcsCliConstants.getnextboot, getNextBootCmd);

            SetNextBoot setNextBootCmd = new SetNextBoot();
            commandMap.Add(WcsCliConstants.setnextboot, setNextBootCmd);

            // Blade Attention LED on
            SetBladeAttentionLEDOn setBladeAttentionLEDOnCmd = new SetBladeAttentionLEDOn();
            commandMap.Add(WcsCliConstants.setBladeAttentionLEDOn, setBladeAttentionLEDOnCmd);

            // Blade Attention LED off
            SetBladeAttentionLEDOff setBladeAttentionLEDOffCmd = new SetBladeAttentionLEDOff();
            commandMap.Add(WcsCliConstants.setBladeAttentionLEDOff, setBladeAttentionLEDOffCmd);

            // Read Blade Log
            ReadBladeLog readBladeLogCmd = new ReadBladeLog();
            commandMap.Add(WcsCliConstants.readBladeLog, readBladeLogCmd);

            // Clear Blade Log
            ClearBladeLog clearBladeLogCmd = new ClearBladeLog();
            commandMap.Add(WcsCliConstants.clearBladeLog, clearBladeLogCmd);

            getpowerreading getpowerreadingCmd = new getpowerreading();
            commandMap.Add(WcsCliConstants.getpowerreading, getpowerreadingCmd);

            getpowerlimit getpowerlimitCmd = new getpowerlimit();
            commandMap.Add(WcsCliConstants.getpowerlimit, getpowerlimitCmd);

            setpowerlimit setpowerlimitCmd = new setpowerlimit();
            commandMap.Add(WcsCliConstants.setpowerlimit, setpowerlimitCmd);

            SetBladeActivePowerLimitOn activatepowerlimitCmd = new SetBladeActivePowerLimitOn();
            commandMap.Add(WcsCliConstants.setBladePowerLimitOn, activatepowerlimitCmd);

            SetBladeActivePowerLimitOff deactivatepowerlimitCmd = new SetBladeActivePowerLimitOff();
            commandMap.Add(WcsCliConstants.setBladePowerLimitOff, deactivatepowerlimitCmd);

            SetDataSafeBladeOn dataSafeBladeOnCmd = new SetDataSafeBladeOn();
            commandMap.Add(WcsCliConstants.dataSafeBladeOn, dataSafeBladeOnCmd);

            SetDataSafePowerOn dataSafePowerOnCmd = new SetDataSafePowerOn();
            commandMap.Add(WcsCliConstants.dataSafePowerOn, dataSafePowerOnCmd);

            SetDataSafeBladeOff dataSafeBladeOffCmd = new SetDataSafeBladeOff();
            commandMap.Add(WcsCliConstants.dataSafeBladeOff, dataSafeBladeOffCmd);

            SetDataSafePowerOff dataSafePowerOffCmd = new SetDataSafePowerOff();
            commandMap.Add(WcsCliConstants.dataSafePowerOff, dataSafePowerOffCmd);

            SetDataSafeBladeActivePowerCycle dataSafePowerCycleCmd = new SetDataSafeBladeActivePowerCycle();
            commandMap.Add(WcsCliConstants.dataSafePowerCycle, dataSafePowerCycleCmd);

            GetBladeDataSafePowerState getBladeDataSafePowerStateCmd = new GetBladeDataSafePowerState();
            commandMap.Add(WcsCliConstants.getBladeDataSafePowerState, getBladeDataSafePowerStateCmd);

            GetBladeBiosPostCode getBiosPostCodeCmd = new GetBladeBiosPostCode();
            commandMap.Add(WcsCliConstants.getBladeBiosPostCode, getBiosPostCodeCmd);

            SetBladePsuAlertDefaultPowerCap setPsuAlertDpcCmd = new SetBladePsuAlertDefaultPowerCap();
            commandMap.Add(WcsCliConstants.setBladePsuAlertDpc, setPsuAlertDpcCmd);

            GetBladePsuAlertDpc getPsuAlertDpcCmd = new GetBladePsuAlertDpc();
            commandMap.Add(WcsCliConstants.getBladePsuAlertDpc, getPsuAlertDpcCmd);

            GetBladePsuAlert getPsuAlertCmd = new GetBladePsuAlert();
            commandMap.Add(WcsCliConstants.getBladePsuAlert, getPsuAlertCmd);

            ActivateDeactivateBladePsuAlert activateDeactivatePsuAlertCmd = new ActivateDeactivateBladePsuAlert();
            commandMap.Add(WcsCliConstants.activateDeactivateBladePsuAlert, activateDeactivatePsuAlertCmd);

            GetBladeAssetInfo getBladeAssetInfoCmd = new GetBladeAssetInfo();
            commandMap.Add(WcsCliConstants.getBladeAssetInfo, getBladeAssetInfoCmd);

            GetBladeMezzAssetInfo getBladeMezzAssetInfoCmd = new GetBladeMezzAssetInfo();
            commandMap.Add(WcsCliConstants.getBladeMezzAssetInfo, getBladeMezzAssetInfoCmd);

            SetBladeAssetInfo setBladeAssetInfoCmd = new SetBladeAssetInfo();
            commandMap.Add(WcsCliConstants.setBladeAssetInfo, setBladeAssetInfoCmd);

            GetBladeMezzPassThroughMode getBladeMezzPassThroughModeCmd = new GetBladeMezzPassThroughMode();
            commandMap.Add(WcsCliConstants.getBladeMezzPassThroughMode, getBladeMezzPassThroughModeCmd);

            SetBladeMezzPassThroughMode setBladeMezzPassThroughModeCmd = new SetBladeMezzPassThroughMode();
            commandMap.Add(WcsCliConstants.setBladeMezzPassThroughMode, setBladeMezzPassThroughModeCmd);
            #endregion

            #region Chassis Management Commands
            // Chassis Attention LED Status
            GetChassisAttentionLEDStatus getChassisAttentionLEDStatusCmd = new GetChassisAttentionLEDStatus();
            commandMap.Add(WcsCliConstants.getChassisAttentionLEDStatus, getChassisAttentionLEDStatusCmd);

            // Chassis Attention LED On
            SetChassisAttentionLEDOn setChassisAttentionLEDCmd = new SetChassisAttentionLEDOn();
            commandMap.Add(WcsCliConstants.setChassisAttentionLEDOn, setChassisAttentionLEDCmd);

            // Chassis Attention LED Off
            SetChassisAttentionLEDOff setChassisAttentionLEDOffCmd = new SetChassisAttentionLEDOff();
            commandMap.Add(WcsCliConstants.setChassisAttentionLEDOff, setChassisAttentionLEDOffCmd);

            ReadChassisLog readChassisLogCmd = new ReadChassisLog();
            commandMap.Add(WcsCliConstants.readChassisLog, readChassisLogCmd);

            ClearChassisLog clearChassisLogCmd = new ClearChassisLog();
            commandMap.Add(WcsCliConstants.clearChassisLog, clearChassisLogCmd);

            // Get AC socket power state
            GetACSocketPowerState getACSocketPowerStateCmd = new GetACSocketPowerState();
            commandMap.Add(WcsCliConstants.getACSocketPowerState, getACSocketPowerStateCmd);

            // Set AC socket power state On
            SetACSocketPowerStateOn setACSocketPowerStateOnCmd = new SetACSocketPowerStateOn();
            commandMap.Add(WcsCliConstants.setACSocketPowerStateOn, setACSocketPowerStateOnCmd);

            // Set AC socket power state Off
            SetACSocketPowerStateOff setACSocketPowerStateOffCmd = new SetACSocketPowerStateOff();
            commandMap.Add(WcsCliConstants.setACSocketPowerStateOff, setACSocketPowerStateOffCmd);

            GetChassisAssetInfo getChassisAssetInfoCmd = new GetChassisAssetInfo();
            commandMap.Add(WcsCliConstants.getCMAssetInfo, getChassisAssetInfoCmd);

            GetPDBAssetInfo getPDBAssetInfoCmd = new GetPDBAssetInfo();
            commandMap.Add(WcsCliConstants.getPDBAssetInfo, getPDBAssetInfoCmd);

            SetChassisManagerAssetInfo setCMAssetInfoCmd = new SetChassisManagerAssetInfo();
            commandMap.Add(WcsCliConstants.setCMAssetInfo, setCMAssetInfoCmd);

            SetPDBAssetInfo setPDBAssetInfoCmd = new SetPDBAssetInfo();
            commandMap.Add(WcsCliConstants.setPDBAssetInfo, setPDBAssetInfoCmd);
            #endregion

            #region Local Commands (WCSCLI Serial Mode Only)
            SetNetworkProperties setNetworkPropertiesCmd = new SetNetworkProperties();
            setNetworkPropertiesCmd.isCmServiceCommand = false;
            commandMap.Add(WcsCliConstants.setNetworkProperties, setNetworkPropertiesCmd);

            GetNetworkProperties getNetworkPropertiesCmd = new GetNetworkProperties();
            getNetworkPropertiesCmd.isCmServiceCommand = false;
            commandMap.Add(WcsCliConstants.getNetworkProperties, getNetworkPropertiesCmd);

            Clear clearCmd = new Clear();
            clearCmd.isCmServiceCommand = false;
            commandMap.Add(WcsCliConstants.clear, clearCmd);
            #endregion

            #region Chassis Manager Service Configuration Commands (WCSCLI Serial Mode Only)
            StartChassisManagerService startCMServiceCmd = new StartChassisManagerService();
            startCMServiceCmd.isCmServiceCommand = false;
            commandMap.Add(WcsCliConstants.startchassismanager, startCMServiceCmd);

            StopChassisManagerService stopCMServiceCmd = new StopChassisManagerService();
            stopCMServiceCmd.isCmServiceCommand = false;
            commandMap.Add(WcsCliConstants.stopchassismanager, stopCMServiceCmd);

            GetCMServiceStatus getCMServiceStatusCmd = new GetCMServiceStatus();
            getCMServiceStatusCmd.isCmServiceCommand = false;
            commandMap.Add(WcsCliConstants.getchassismanagerstatus, getCMServiceStatusCmd);

            EnableSSL enableSslCmd = new EnableSSL();
            enableSslCmd.isCmServiceCommand = false;
            commandMap.Add(WcsCliConstants.enablessl, enableSslCmd);

            DisableSSL disableSslCmd = new DisableSSL();
            disableSslCmd.isCmServiceCommand = false;
            commandMap.Add(WcsCliConstants.disablessl, disableSslCmd);
            #endregion

            #region User Management Commands
            adduser adduserCmd = new adduser();
            commandMap.Add(WcsCliConstants.adduser, adduserCmd);

            ChangeUserRole changeuserCmd = new ChangeUserRole();
            commandMap.Add(WcsCliConstants.changeuserrole, changeuserCmd);

            ChangeUserPassword changeUserPwd = new ChangeUserPassword();
            commandMap.Add(WcsCliConstants.changeuserpassword, changeUserPwd);

            removeuser removeuserCmd = new removeuser();
            commandMap.Add(WcsCliConstants.removeuser, removeuserCmd);
            #endregion

            #region Serial Session Commands
            startBladeSerialSession startBladeSerialSessionCmd = new startBladeSerialSession();
            commandMap.Add(WcsCliConstants.startBladeSerialSession, startBladeSerialSessionCmd);

            StopBladeSerialSession stopBladeSerialSessionCmd = new StopBladeSerialSession();
            commandMap.Add(WcsCliConstants.stopBladeSerialSession, stopBladeSerialSessionCmd);

            startPortSerialSession startPortSerialSessionCmd = new startPortSerialSession();
            commandMap.Add(WcsCliConstants.startPortSerialSession, startPortSerialSessionCmd);

            StopPortSerialSession stopPortSerialSessionCmd = new StopPortSerialSession();
            commandMap.Add(WcsCliConstants.stopPortSerialSession, stopPortSerialSessionCmd);

            EstablishConnectionToCm establishCmConnectionCmd = new EstablishConnectionToCm();
            establishCmConnectionCmd.isCmServiceCommand = false;
            commandMap.Add(WcsCliConstants.establishCmConnection, establishCmConnectionCmd);

            TerminateCmConnection terminateCmConnectionCmd = new TerminateCmConnection();
            terminateCmConnectionCmd.isCmServiceCommand = false;
            commandMap.Add(WcsCliConstants.terminateCmConnection, terminateCmConnectionCmd);
            #endregion

            help helpCmd = new help();
            helpCmd.isCmServiceCommand = false;
            commandMap.Add(WcsCliConstants.help, helpCmd);

            return;
        }
Esempio n. 11
0
 -Help         Print this help message and exit.
Esempio n. 12
0
 private void kryptonButton2_Click(object sender, EventArgs e)
 {
     help hp = new help();
     hp.ShowDialog();
 }
Esempio n. 13
0
 protected virtual void OnHelp1Activated(object sender, System.EventArgs e)
 {
     help helpuser = new help();
             helpuser.Run();
             helpuser.Destroy();
 }
Esempio n. 14
0
 private void 帮助ToolStripMenuItem_Click(object sender, EventArgs e)
 {
     help help = new help();
     help.Show();
 }
Esempio n. 15
0
 /*帮助*/
 private void linkLabel3_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
 {
     help hel = new help();
     hel.Show();
 }
Esempio n. 16
0
        /* Private memeber functions */
        /// <summary>
        /// Creates object for each individual command
        /// Corresponding command constructor initializes command specific parameters
        /// Also adds each command name and command object to command dictionary
        /// </summary>
        private static void CommandInitializer()
        {
            getinfo getinfoCmd = new getinfo();

            commandMap.Add(WcsCliConstants.getinfo, getinfoCmd);

            getscinfo getscinfoCmd = new getscinfo();

            commandMap.Add(WcsCliConstants.getscinfo, getscinfoCmd);
            commandsWithSledIdAndSledName.Add(getscinfoCmd);

            help helpCmd = new help();

            helpCmd.isCmServiceCommand = false;
            commandMap.Add(WcsCliConstants.help, helpCmd);

            ncidon ncidonCmd = new ncidon();

            commandMap.Add(WcsCliConstants.ncidon, ncidonCmd);

            ncidoff ncidoffCmd = new ncidoff();

            commandMap.Add(WcsCliConstants.ncidoff, ncidoffCmd);

            ncidstatus ncidstatusCmd = new ncidstatus();

            commandMap.Add(WcsCliConstants.ncidstatus, ncidstatusCmd);

            scidon scidonCmd = new scidon();

            commandMap.Add(WcsCliConstants.scidon, scidonCmd);
            commandsWithSledIdAndSledName.Add(scidonCmd);

            scidoff scidoffCmd = new scidoff();

            commandMap.Add(WcsCliConstants.scidoff, scidoffCmd);
            commandsWithSledIdAndSledName.Add(scidoffCmd);

            setscponstate setscponstateCmd = new setscponstate();

            commandMap.Add(WcsCliConstants.setscponstate, setscponstateCmd);
            commandsWithSledIdAndSledName.Add(setscponstateCmd);

            getscponstate getscponstateCmd = new getscponstate();

            commandMap.Add(WcsCliConstants.getscponstate, getscponstateCmd);
            commandsWithSledIdAndSledName.Add(getscponstateCmd);

            poweron poweronCmd = new poweron();

            commandMap.Add(WcsCliConstants.poweron, poweronCmd);
            commandsWithSledIdAndSledName.Add(poweronCmd);

            poweroff poweroffCmd = new poweroff();

            commandMap.Add(WcsCliConstants.poweroff, poweroffCmd);
            commandsWithSledIdAndSledName.Add(poweroffCmd);

            bladeon bladeOnCmd = new bladeon();

            commandMap.Add(WcsCliConstants.bladeon, bladeOnCmd);
            commandsWithSledIdAndSledName.Add(bladeOnCmd);

            bladeoff bladeOffCmd = new bladeoff();

            commandMap.Add(WcsCliConstants.bladeoff, bladeOffCmd);
            commandsWithSledIdAndSledName.Add(bladeOffCmd);

            getbladestate bladeStateCmd = new getbladestate();

            commandMap.Add(WcsCliConstants.getbladestate, bladeStateCmd);
            commandsWithSledIdAndSledName.Add(bladeStateCmd);

            powercycle powercycleCmd = new powercycle();

            commandMap.Add(WcsCliConstants.powercycle, powercycleCmd);
            commandsWithSledIdAndSledName.Add(powercycleCmd);

            getscpowerstate getscpowerstateCmd = new getscpowerstate();

            commandMap.Add(WcsCliConstants.getscpowerstate, getscpowerstateCmd);
            commandsWithSledIdAndSledName.Add(getscpowerstateCmd);

            powerinton powerintonCmd = new powerinton();

            commandMap.Add(WcsCliConstants.powerinton, powerintonCmd);

            powerintoff powerintoffCmd = new powerintoff();

            commandMap.Add(WcsCliConstants.powerintoff, powerintoffCmd);

            getpowerintstate getpowerintstateCmd = new getpowerintstate();

            commandMap.Add(WcsCliConstants.getpowerintstate, getpowerintstateCmd);

            startBladeSerialSession startBladeSerialSessionCmd = new startBladeSerialSession();

            commandMap.Add(WcsCliConstants.startBladeSerialSession, startBladeSerialSessionCmd);
            commandsWithSledIdAndSledName.Add(startBladeSerialSessionCmd);

            startPortSerialSession startPortSerialSessionCmd = new startPortSerialSession();

            commandMap.Add(WcsCliConstants.startPortSerialSession, startPortSerialSessionCmd);
            commandsWithSledIdAndSledName.Add(startBladeSerialSessionCmd);

            StopPortSerialSession stopsersessionCmd = new StopPortSerialSession();

            commandMap.Add(WcsCliConstants.stopPortSerialSession, stopsersessionCmd);
            commandsWithSledIdAndSledName.Add(stopsersessionCmd);

            StopBladeSerialSession stopBladeSerialSessionCmd = new StopBladeSerialSession();

            commandMap.Add(WcsCliConstants.stopBladeSerialSession, stopBladeSerialSessionCmd);
            commandsWithSledIdAndSledName.Add(stopBladeSerialSessionCmd);

            readnclog readnclogCmd = new readnclog();

            commandMap.Add(WcsCliConstants.readnclog, readnclogCmd);

            clrnclog clrnclogCmd = new clrnclog();

            commandMap.Add(WcsCliConstants.clrnclog, clrnclogCmd);

            readsclog readsclogCmd = new readsclog();

            commandMap.Add(WcsCliConstants.readsclog, readsclogCmd);
            commandsWithSledIdAndSledName.Add(readsclogCmd);

            clrsclog clrsclogCmd = new clrsclog();

            commandMap.Add(WcsCliConstants.clrsclog, clrsclogCmd);
            commandsWithSledIdAndSledName.Add(clrsclogCmd);

            adduser adduserCmd = new adduser();

            commandMap.Add(WcsCliConstants.adduser, adduserCmd);

            ChangeUserRole changeuserCmd = new ChangeUserRole();

            commandMap.Add(WcsCliConstants.changeuserrole, changeuserCmd);

            ChangeUserPassword changeUserPwd = new ChangeUserPassword();

            commandMap.Add(WcsCliConstants.changeuserpassword, changeUserPwd);

            removeuser removeuserCmd = new removeuser();

            commandMap.Add(WcsCliConstants.removeuser, removeuserCmd);

            getnic getnicCmd = new getnic();

            getnicCmd.isCmServiceCommand = false;
            commandMap.Add(WcsCliConstants.getnic, getnicCmd);

            setnic setnicCmd = new setnic();

            setnicCmd.isCmServiceCommand = false;
            commandMap.Add(WcsCliConstants.setnic, setnicCmd);

            getpowerreading getpowerreadingCmd = new getpowerreading();

            commandMap.Add(WcsCliConstants.getpowerreading, getpowerreadingCmd);

            getpowerlimit getpowerlimitCmd = new getpowerlimit();

            commandMap.Add(WcsCliConstants.getpowerlimit, getpowerlimitCmd);

            setpowerlimit setpowerlimitCmd = new setpowerlimit();

            commandMap.Add(WcsCliConstants.setpowerlimit, setpowerlimitCmd);

            activatepowerlimit activatepowerlimitCmd = new activatepowerlimit();

            commandMap.Add(WcsCliConstants.activatepowerlimit, activatepowerlimitCmd);

            deactivatepowerlimit deactivatepowerlimitCmd = new deactivatepowerlimit();

            commandMap.Add(WcsCliConstants.deactivatepowerlimit, deactivatepowerlimitCmd);

            GetChassisHealth getChassisHealthCmd = new GetChassisHealth();

            commandMap.Add(WcsCliConstants.getChassisHealth, getChassisHealthCmd);

            GetBladeHealth getBladeHealthCmd = new GetBladeHealth();

            commandMap.Add(WcsCliConstants.getBladeHealth, getBladeHealthCmd);

            SetNextBoot setNextBootCmd = new SetNextBoot();

            commandMap.Add(WcsCliConstants.setnextboot, setNextBootCmd);

            GetNextBoot getNextBootCmd = new GetNextBoot();

            commandMap.Add(WcsCliConstants.getnextboot, getNextBootCmd);

            GetServiceVersion getServiceVersionCmd = new GetServiceVersion();

            commandMap.Add(WcsCliConstants.getserviceversion, getServiceVersionCmd);

            EstablishConnectionToCm establishCmConnectionCmd = new EstablishConnectionToCm();

            establishCmConnectionCmd.isCmServiceCommand = false;
            commandMap.Add(WcsCliConstants.establishCmConnection, establishCmConnectionCmd);

            TerminateCmConnection terminateCmConnectionCmd = new TerminateCmConnection();

            terminateCmConnectionCmd.isCmServiceCommand = false;
            commandMap.Add(WcsCliConstants.terminateCmConnection, terminateCmConnectionCmd);

            StartChassisManagerService startCMServiceCmd = new StartChassisManagerService();

            startCMServiceCmd.isCmServiceCommand = false;
            commandMap.Add(WcsCliConstants.startchassismanager, startCMServiceCmd);

            StopChassisManagerService stopCMServiceCmd = new StopChassisManagerService();

            stopCMServiceCmd.isCmServiceCommand = false;
            commandMap.Add(WcsCliConstants.stopchassismanager, stopCMServiceCmd);

            GetCMServiceStatus getCMServiceStatusCmd = new GetCMServiceStatus();

            getCMServiceStatusCmd.isCmServiceCommand = false;
            commandMap.Add(WcsCliConstants.getchassismanagerstatus, getCMServiceStatusCmd);

            EnableSSL enableSslCmd = new EnableSSL();

            enableSslCmd.isCmServiceCommand = false;
            commandMap.Add(WcsCliConstants.enablessl, enableSslCmd);

            DisableSSL disableSslCmd = new DisableSSL();

            disableSslCmd.isCmServiceCommand = false;
            commandMap.Add(WcsCliConstants.disablessl, disableSslCmd);

            return;
        }
Esempio n. 17
0
 private void pictureBox11_Click(object sender, EventArgs e)
 {
     form6 = new help();
     form6.ShowDialog();
     panel2.Location = new Point(0, -50);
 }
Esempio n. 18
0
        private void helpToolStripMenuItem_Click(object sender, EventArgs e)
        {
            help obj = new help();

            obj.ShowDialog();
        }