コード例 #1
0
        public objectClass(string name, enumCmd enumCmd, string code)
        {
            this.Name = name;

            this.enumCmd = enumCmd;

            this.Code = code;
        }
コード例 #2
0
        /// <summary>
        /// user Selected a new index check vise group to show
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void CMDCombobox_SelectedIndexChanged(object sender, EventArgs e)
        {
            this.hideAllgroup();

            int indx = this.CMDCombobox.SelectedIndex;

            this.SELEnumCmd = (enumCmd)Enum.ToObject(typeof(enumCmd), (indx - 1));

            switch (this.SELEnumCmd)
            {
            case enumCmd.Url:
                this.groupUrl.Show();
                break;

            case enumCmd.ping:
                this.groupUrl.Show();
                break;
            }
        }