public GfxImportSettings(FormParams gfxFormParams, bool useTileset, bool useFlips, bool usePalette, bool useTransparency, Color transparentColor) { this.GfxFormParams = gfxFormParams; this.UseTileset = useTileset; this.UseFlips = useFlips; this.UsePalette = usePalette; this.UseTransparency = useTransparency; this.TransparentColor = transparentColor; }
public static void FormClosing(object sender, FormClosingEventArgs e) { string frmType = sender.GetType().ToString(); M3Form f = (M3Form)sender; FormParams p = new FormParams(f.Location, f.Size, f.WindowState, f.GetIndex()); var d = M3Settings.MainSettings.FormParams; if (d.ContainsKey(frmType)) { d[frmType] = p; } else { d.Add(frmType, p); } }