Ejemplo n.º 1
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)
        {
            var fbfBuilder = new FomodBuilderForm();

            if (fbfBuilder.ShowDialog(this) == DialogResult.OK)
            {
                if (!String.IsNullOrEmpty(fbfBuilder.FomodPath))
                {
                    AddFomod(fbfBuilder.FomodPath, true);
                }
            }
        }
Ejemplo n.º 2
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)
        {
            var pkfPFPForm = new PremadeFomodPackForm(PremadeFomodPackForm.OpenPFPMode.Edit);

            if (pkfPFPForm.ShowDialog(this) == DialogResult.Cancel)
            {
                return;
            }

            var pfpPack    = new PremadeFomodPack(pkfPFPForm.PFPPath);
            var fbfBuilder = new FomodBuilderForm(pfpPack, pkfPFPForm.SourcesPath);

            if (fbfBuilder.ShowDialog(this) == DialogResult.OK)
            {
                if (!String.IsNullOrEmpty(fbfBuilder.FomodPath))
                {
                    AddFomod(fbfBuilder.FomodPath, true);
                }
            }
        }