Exemple #1
0
        private void btnApply_Click(object sender, EventArgs e)
        {
            if (lstProfiles.SelectedIndex < 0 || lstProfiles.SelectedIndex >= Profiles.Count)
            {
                return;
            }

            DiffProfile p = Profiles[lstProfiles.SelectedIndex];

            p.Apply(ref ((frmMain)this.Owner).lstPatches, ref ((frmMain)this.Owner).file);
            this.Close();
        }
Exemple #2
0
        private void btnApplyLast_Click(object sender, EventArgs e)
        {
            DiffProfile profile = DiffProfile.Load("lastPatches.xml");

            if (profile == null)
            {
                MessageBox.Show("Error loading last patches!");
                return;
            }

            profile.Apply(ref lstPatches, ref file);
        }