private void checkType(UpgradeScroll.UpgradeType t) { switch (t) { case UpgradeScroll.UpgradeType.REGULAR: rbNormal.Checked = true; break; case UpgradeScroll.UpgradeType.ELEMENT: rbElemental.Checked = true; break; case UpgradeScroll.UpgradeType.STAT: rbStat.Checked = true; break; case UpgradeScroll.UpgradeType.ACCESSORYCOMPOUND: rbAccessoryCompound.Checked = true; break; case UpgradeScroll.UpgradeType.ACCESSORYENCHANT: rbAccessoryEnchant.Checked = true; break; } }
private void rbType_CheckedChanged(object sender, EventArgs e) { type = (UpgradeScroll.UpgradeType)Enum.Parse(typeof(UpgradeScroll.UpgradeType), ((string)((RadioButton)sender).Tag)); }
private void rbType_CheckedChanged(object sender, EventArgs e) { type = (UpgradeScroll.UpgradeType)Enum.Parse(typeof(UpgradeScroll.UpgradeType), ((string)((RadioButton)sender).Tag)); }