//clear workset private void BtnClear_Click(object sender, RoutedEventArgs e) { TbName.Clear(); TbSize.Clear(); TbType.Clear(); TbSubtype.Clear(); TbAlignment.Clear(); TbAC.Clear(); TbHP.Clear(); TbSpeed.Clear(); TbSTR.Clear(); TbDEX.Clear(); TbCON.Clear(); TbINT.Clear(); TbWIS.Clear(); TbCHA.Clear(); TbSaving.Clear(); TbSkills.Clear(); temp_actions.Clear(); temp_reactions.Clear(); temp_specialabilities.Clear(); temp_legendaryactions.Clear(); LbSaving.Items.Clear(); LbSkills.Items.Clear(); CbSaving.SelectedIndex = 0; CbSkills.SelectedIndex = 0; TbDamImm.Clear(); TbDamRes.Clear(); TbDamVul.Clear(); TbConImm.Clear(); TbChall.Clear(); }
public TypViewModel ConvertTypToView(TbType tbtype) { return new TypViewModel() { TypID = tbtype.TbTypeID, TypName = tbtype.Name }; }