private void Save_Button_Click(object sender, EventArgs e) { Serializer.cfg.useExternalEditor = useExternalEditor.Checked; Serializer.cfg.enableSplash = EnableSplash.Checked; Serializer.cfg.disableUpdates = DisableUpdates_CB.Checked; Serializer.cfg.autoFormatJSON = AutoFormatJSON_CB.Checked; Serializer.cfg.UseDeveloperMode = UseDeveloperMode.Checked; CurrentProjectVariables.UseNKHook = UseNKH_CB.Checked; Serializer.SaveSettings(); ProjectHandler.SaveProject(); ConsoleHandler.append_CanRepeat("Settings saved!!!"); DeveloperMode.ControlDeveloperMode(); this.Close(); }
// //Initialize window // public Main() { InitializeComponent(); Serializer.LoadSettings(); toolbox = this; DeveloperMode.ControlDeveloperMode(); Startup(); Controls.OfType <MdiClient>().FirstOrDefault().BackColor = Color.FromArgb(15, 15, 15); this.BackgroundImageLayout = ImageLayout.Center; this.Resize += mainResize; this.KeyPreview = true; this.versionTag.BackColor = Color.FromArgb(15, 15, 15); this.versionTag.Text = version; this.DoubleBuffered = true; }