private void B_Save_Click(object sender, EventArgs e) { saveEntry(); saveData(); RandSettings.SetFormSettings(this, tabPage2.Controls); Close(); }
private void Form_Closing(object sender, FormClosingEventArgs e) { if (entry > -1) { SaveEntry(); } RandSettings.SetFormSettings(this, TP_Randomizer.Controls); }
private void B_Save_Click(object sender, EventArgs e) { setGift(); setEncounter(); setTrade(); saveData(); RandSettings.SetFormSettings(this, Tab_Randomizer.Controls); Close(); }
protected override void OnFormClosing(FormClosingEventArgs e) { SaveEntry(); if (TrainerNames.Modified) { Main.Config.SetText(TextName.TrainerNames, TrainerNames.Lines); } base.OnFormClosing(e); RandSettings.SetFormSettings(this, Tab_Rand.Controls); }
private void Form_Closing(object sender, FormClosingEventArgs e) { SetList(); RandSettings.SetFormSettings(this, groupBox1.Controls); }
private void formClosing(object sender, FormClosingEventArgs e) { setList(); RandSettings.SetFormSettings(this, GB_Randomizer.Controls); }
private void CloseForm(object sender, FormClosingEventArgs e) { SetEntry(); RandSettings.SetFormSettings(this, groupBox1.Controls); }
private void SMWE_FormClosing(object sender, FormClosingEventArgs e) { RandSettings.SetFormSettings(this, GB_Tweak.Controls); }
private void B_Save_Click(object sender, EventArgs e) { if (WinFormsUtil.Prompt(MessageBoxButtons.YesNo, "Randomize all? Cannot undo.", "Double check Randomization settings before continuing.") != DialogResult.Yes) { return; } RSTE.rPKM = CHK_RandomPKM.Checked; RSTE.rSmart = CHK_BST.Checked; RSTE.rLevel = CHK_Level.Checked; RSTE.rLevelMultiplier = NUD_Level.Value; RSTE.rNoFixedDamage = CHK_NoFixedDamage.Checked; RSTE.rMove = CB_Moves.SelectedIndex == 1; RSTE.rNoMove = CB_Moves.SelectedIndex == 2; RSTE.rMetronome = CB_Moves.SelectedIndex == 3; if (RSTE.rMove) { RSTE.rDMG = CHK_Damage.Checked; if (RSTE.rDMG) { RSTE.rDMGCount = (int)NUD_Damage.Value; } RSTE.rSTAB = CHK_STAB.Checked; if (RSTE.rSTAB) { RSTE.rSTABCount = (int)NUD_STAB.Value; } } RSTE.rItem = CHK_RandomItems.Checked; RSTE.rAbility = CHK_RandomAbilities.Checked; RSTE.rDiffIV = CHK_MaxDiffPKM.Checked; RSTE.rClass = CHK_RandomClass.Checked; if (RSTE.rClass) { RSTE.rIgnoreClass = CHK_IgnoreSpecialClass.Checked ? Main.Config.ORAS ? Legal.SpecialClasses_ORAS : Legal.SpecialClasses_XY : new int[] {}; RSTE.rOnlySingles = CHK_OnlySingles.Checked; } RSTE.rGift = CHK_RandomGift.Checked; RSTE.rGiftPercent = NUD_GiftPercent.Value; RSTE.rDiffAI = CHK_MaxDiffAI.Checked; RSTE.rTypeTheme = CHK_TypeTheme.Checked; RSTE.rTypeGymTrainers = CHK_GymTrainers.Checked; RSTE.rGymE4Only = CHK_GymE4Only.Checked; RSTE.rMinPKM = NUD_RMin.Value; RSTE.rMaxPKM = NUD_RMax.Value; RSTE.r6PKM = CHK_6PKM.Checked; RSTE.rRandomMegas = CHK_RandomMegaForm.Checked; RSTE.rForceFullyEvolved = CHK_ForceFullyEvolved.Checked; RSTE.rForceFullyEvolvedLevel = NUD_ForceFullyEvolved.Value; RSTE.rForceHighPower = CHK_ForceHighPower.Checked; RSTE.rForceHighPowerLevel = NUD_ForceHighPower.Value; if (CHK_StoryMEvos.Checked) { RSTE.rEnsureMEvo = Main.Config.ORAS ? new [] { 178, 235, 557, 583, 687, 698, 699, 700, 701, 713, 906, 907, 908, 909, 910, 911, 912, 913, 942, 944, 946 } : new [] { 188, 263, 276, 277, 519, 520, 521, 526, 599, 600, 601 }; } else { RSTE.rEnsureMEvo = new int[] { }; } RSTE.rThemedClasses = new bool[trClass.Length]; RSTE.rSpeciesRand = new SpeciesRandomizer(Main.Config) { G1 = CHK_G1.Checked, G2 = CHK_G2.Checked, G3 = CHK_G3.Checked, G4 = CHK_G4.Checked, G5 = CHK_G5.Checked, G6 = CHK_G6.Checked, L = CHK_L.Checked, E = CHK_E.Checked, Shedinja = true, rBST = CHK_BST.Checked, rEXP = false, }; RSTE.rSpeciesRand.Initialize(); RSTE.rDoRand = true; RandSettings.SetFormSettings(this, Controls); Close(); }
private void B_Save_Click(object sender, EventArgs e) { saveData(); RandSettings.SetFormSettings(this, groupBox1.Controls); Close(); }
private void formClosing(object sender, FormClosingEventArgs e) { setList(); File.WriteAllBytes(codebin, data); RandSettings.SetFormSettings(this, groupBox1.Controls); }
private void formClosing(object sender, FormClosingEventArgs e) { setList(); entries.Select(z => z.Write()).ToArray().CopyTo(files, 0); RandSettings.SetFormSettings(this, groupBox1.Controls); }