Exemple #1
0
        /// <summary>
        /// Handles the <see cref="Control.Click"/> event of the edit pfp button.
        /// </summary>
        /// <remarks>
        /// Edits a PFP.
        /// </remarks>
        /// <param name="sender">The object that raised the event.</param>
        /// <param name="e">An <see cref="EventArgs"/> describing the event arguments.</param>
        private void editPFPToolStripMenuItem_Click(object sender, EventArgs e)
        {
            PremadeFomodPackForm pkfPFPForm = new PremadeFomodPackForm(PremadeFomodPackForm.OpenPFPMode.Edit);
            if (pkfPFPForm.ShowDialog(this) == DialogResult.Cancel)
                return;

            PremadeFomodPack pfpPack = new PremadeFomodPack(pkfPFPForm.PFPPath);
            FomodBuilderForm fbfBuilder = new FomodBuilderForm(pfpPack, pkfPFPForm.SourcesPath);
            if (fbfBuilder.ShowDialog(this) == DialogResult.OK)
            {
                if (!String.IsNullOrEmpty(fbfBuilder.FomodPath))
                    AddFomod(fbfBuilder.FomodPath, true);
            }
        }
Exemple #2
0
 /// <summary>
 /// Handles the <see cref="Control.Click"/> event of the create fomod button.
 /// </summary>
 /// <remarks>
 /// Creates a fomod using the fomod builder.
 /// </remarks>
 /// <param name="sender">The object that raised the event.</param>
 /// <param name="e">An <see cref="EventArgs"/> describing the event arguments.</param>
 private void createFOMODToolStripMenuItem_Click(object sender, EventArgs e)
 {
     FomodBuilderForm fbfBuilder = new FomodBuilderForm();
     if (fbfBuilder.ShowDialog(this) == DialogResult.OK)
     {
         if (!String.IsNullOrEmpty(fbfBuilder.FomodPath))
             AddFomod(fbfBuilder.FomodPath, true);
     }
 }