void InitFE8NMagicExtends(List <Control> controls) { MagicExtClassBase.ValueChanged += X_SIM_ValueChanged; MagicExtClassGrow.ValueChanged += X_SIM_ValueChanged; InputFormRef.makeLinkEventHandler("", controls, D80, MagicExtClassBase, 80, "MAGICEX", new string[] { "B0" }); InputFormRef.makeLinkEventHandler("", controls, D80, MagicExtClassGrow, 80, "MAGICEX", new string[] { "B1" }); InputFormRef.makeLinkEventHandler("", controls, D80, MagicExtClassPromotionGain, 80, "MAGICEX", new string[] { "B2" }); MagicExtClassBase.Show(); MagicExtClassBaseLabel.Show(); MagicExtClassGrow.Show(); MagicExtClassGrowLabel.Show(); MagicExtClassPromotionGain.Show(); MagicExtClassPromotionGainLabel.Show(); X_SIM_MAGICEX_Label.Show(); X_SIM_MAGICEX_Value.Show(); U.SwapControlPosition(J_18, MagicExtClassBaseLabel); U.SwapControlPosition(B18, MagicExtClassBase); B18.Location = new Point(J_18.Location.X, B18.Location.Y); U.ShiftControlPosition(J_25, J_26); U.ShiftControlPosition(B25, B26); U.SwapControlPosition(X_SIM_SUM_RATE_Label, X_SIM_MAGICEX_Label); U.SwapControlPosition(X_SIM_SUM_RATE, X_SIM_MAGICEX_Value); }
void InitFE7UMagicExtends(List <Control> controls) { MagicExtClassBase.ValueChanged += X_SIM_ValueChanged; MagicExtClassGrow.ValueChanged += X_SIM_ValueChanged; MagicExtClassLimit.ValueChanged += X_SIM_ValueChanged; AddressList.SelectedIndexChanged += SelectedIndexChangedFE7UMagicExtends; this.InputFormRef.PreWriteHandler += WriteButtonFE7UMagicExtends; MagicExtClassBase.Show(); MagicExtClassBaseLabel.Show(); MagicExtClassGrow.Show(); MagicExtClassGrowLabel.Show(); MagicExtClassPromotionGain.Show(); MagicExtClassPromotionGainLabel.Show(); MagicExtClassLimit.Show(); MagicExtClassLimitLabel.Show(); X_SIM_MAGICEX_Label.Show(); X_SIM_MAGICEX_Value.Show(); U.SwapControlPosition(J_18, MagicExtClassBaseLabel); U.SwapControlPosition(B18, MagicExtClassBase); B18.Location = new Point(J_18.Location.X, B18.Location.Y); U.SwapControlPosition(J_26, MagicExtClassLimitLabel); U.SwapControlPosition(B26, MagicExtClassLimit); B26.Location = new Point(J_26.Location.X, B26.Location.Y); U.SwapControlPosition(X_SIM_SUM_RATE_Label, X_SIM_MAGICEX_Label); U.SwapControlPosition(X_SIM_SUM_RATE, X_SIM_MAGICEX_Value); U.SelectedIndexSafety(MagicExtClassBase, -128, 127, (int)MagicExtClassBase.Value); }