private void NUD_WeightScalar_ValueChanged(object sender, EventArgs e) { pkm.WeightScalar = (byte)NUD_WeightScalar.Value; if (!CHK_Auto.Checked || Loading) { return; } pkm.ResetWeight(); TB_WeightAbs.Text = pkm.WeightAbsolute.ToString("F8"); }
private void NUD_WeightScalar_ValueChanged(object sender, EventArgs e) { ss.WeightScalar = (byte)NUD_WeightScalar.Value; L_SizeW.Text = SizeClass[(int)PokeSizeExtensions.GetSizeRating(ss.WeightScalar)]; if (!CHK_Auto.Checked || Loading || pkm == null) { return; } pkm.ResetWeight(); TB_WeightAbs.Text = pkm.WeightAbsolute.ToString("F8"); }