private void SaveButtonClick(object sender, RoutedEventArgs e) { int id = Convert.ToInt32(((Button)sender).Tag); PartyOptions.SetPartyOption(id); SelectSaveButton(id); }
private void Page_Loaded(object sender, RoutedEventArgs e) { LightSelectionFrame.Navigate(typeof(LightSelection)); ((LightSelection)LightSelectionFrame.Content).GiveVariables(this); if (PartyOptions.activePartyOption.Equals(default(PartyOption))) { PartyOptions.SetPartyOption(0); } int id = PartyOptions.CompareCurrentWithSaves(); if (id != -1) { SelectMenuItem("Simple"); NavigateToItem("Simple"); } else { SelectMenuItem("Advanced"); NavigateToItem("Advanced"); } }