private void btnWaffeAufw_Click(object sender, RoutedEventArgs e) { if (lstWaffe.SelectedItem != null) { Window win = new winLegendenpunkteAbrechnung(this); Waffe tmpWaff = (Waffe)lstWaffe.SelectedItem; if ((bool)win.ShowDialog()) { tmpWaff.Aufwertung++; UpdateGUI(); } } }
private void btnTalentAufw_Click(object sender, RoutedEventArgs e) { if (lstTalent.SelectedItem != null) { Window win = new winLegendenpunkteAbrechnung(this); Talent tmpTalent = (Talent)lstTalent.SelectedItem; if ((bool)win.ShowDialog()) { tmpTalent.Rang++; UpdateGUI(); } } }
private void btnOK_Click(object sender, RoutedEventArgs e) { switch (cboAttri.Text.Substring(0,3)) { case "GES": parent.aktChar.GESSteig++; break; case "STR": parent.aktChar.STRSteig++; break; case "ZAH": parent.aktChar.ZAHSteig++; break; case "WAH": parent.aktChar.WAHSteig++; break; case "WIL": parent.aktChar.WILSteig++; break; case "CHA": parent.aktChar.CHASteig++; break; default: break; } Window win = new winLegendenpunkteAbrechnung(parent); if ((bool)win.ShowDialog()) { this.Close(); } }