DarkLoader.PatchEditor.btnNewPatch_Click C# (CSharp) Method

btnNewPatch_Click() private method

private btnNewPatch_Click ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void
        private void btnNewPatch_Click(object sender, EventArgs e)
        {
            GoogleAnalyticsApi.TrackEvent("PatchEditor.cs", "btnNewPatch_Click", "");
            listPatches.Items.Add("New Patch");
            lastSelected = "New Patch";
            listPatches.SelectedIndex = listPatches.Items.Count - 1;
            txtPatchTitle.Text = "New Patch";
            txtPatchAuthor.Text = "";
            txtPatchDescription.Text = "";
            txtPatternBytesSearch.Text = "";
            txtPatternMatch.Text = "";
            txtPatternOffset.Text = "0";
            txtBytesToPatch.Text = "";
            chkPatchReplaceAll.Checked = false;
            chkRunOnStartup.Checked = false;
            chkPatchBeforeStartup.Checked = false;
            listPatternResults.Items.Clear();
            SavePatch();
        }