private void btnCreateROM_Click(object sender, RoutedEventArgs e) { int seed = -1; // Check if textbox contains a valid seed string if (!String.IsNullOrEmpty(tbxSeed.Text)) { try { int base10 = SeedConvert.ConvertBase26To10(tbxSeed.Text); seed = base10; // Use the provided seed so that a specific ROM may be generated. RandomMM2.Seed = seed; } catch (Exception ex) { System.Diagnostics.Debug.WriteLine("Exception in parsing Seed. Using random seed. Message:/n" + ex.ToString()); seed = -1; } } // Perform randomization based on settings, then generate the ROM. RandomMM2.RandomizerCreate(true); UpdateSeedString(e); }
private void btnCreateRandom_Click(object sender, RoutedEventArgs e) { RandomMM2.Seed = -1; RandomMM2.RandomizerCreate(true); UpdateSeedString(e); }