/// <summary> /// Registers simple click handlers /// </summary> private void RegisterClickHandlers() { this.btnClearArguments.Click += (o, args) => this.tbArguments.Clear(); this.btnClose.Click += (o, args) => LaunchManager.Exit(); this.btnHelp.Click += (o, args) => LaunchManager.TryOpenTextFile(LaunchManager.TxtPathReadme); this.btnPatreon.Click += (o, args) => GoToURL("https://www.patreon.com/fireundubh"); this.btnPayPal.Click += (o, args) => GoToURL("https://www.nexusmods.com/Core/Libs/Common/Widgets/PayPalPopUp?user=513981"); this.btnLaunchNoMods.Click += (o, args) => { ResetData(); this.ClientType = SetClientType(); LaunchManager.LaunchProcess(this.ClientType); }; this.btnLaunchWithMods.Click += async(o, args) => { ResetData(); this.ClientType = SetClientType(); await this.btnLaunchWithMods_ClickAsync(o, args).ConfigureAwait(false); }; this.btnTestRun.Click += (o, args) => { ResetData(); this.btnTestRun_Click(o, args); }; this.lblPatchwork.LinkClicked += (o, args) => GoToURL(PatchworkInfo.PatchworkSite); }
private void btnLaunchNoMods_Click(object sender, EventArgs e) { LaunchManager.LaunchProcess(this.ClientType); }