public objectClass(string name, enumCmd enumCmd, string code) { this.Name = name; this.enumCmd = enumCmd; this.Code = code; }
/// <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; } }