コード例 #1
0
 private void BtnReleaseClick(object sender, EventArgs e)
 {
     Settings.Default.sLastReleaseDir = m_tbxOutputDir.Text;
     var releaser = new ModReleaseUI(m_tbxOutputDir.Text, m_tbxIconPath.Text, m_chkbxInstallInstructions.Checked,
                                     m_chkbxCreateLauncher.Checked, m_radRetribution.Checked);
     bool success = releaser.ReleaseMod(SetStatusCallback);
     m_labStatus.Text = @"Ready";
     if (!success)
     {
         return;
     }
     DialogResult openOutputDir = UIHelper.ShowYNQuestion("Finished!", "Mod packed! Open the output directory now?");
     if (openOutputDir == DialogResult.Yes)
         Process.Start(m_tbxOutputDir.Text);
     Close();
     Dispose();
 }
コード例 #2
0
        private void BtnReleaseClick(object sender, EventArgs e)
        {
            Settings.Default.sLastReleaseDir = m_tbxOutputDir.Text;
            var releaser = new ModReleaseUI(m_tbxOutputDir.Text, m_tbxIconPath.Text, m_chkbxInstallInstructions.Checked,
                                            m_chkbxCreateLauncher.Checked, m_radRetribution.Checked);
            bool success = releaser.ReleaseMod(SetStatusCallback);

            m_labStatus.Text = @"Ready";
            if (!success)
            {
                return;
            }
            DialogResult openOutputDir = UIHelper.ShowYNQuestion("Finished!", "Mod packed! Open the output directory now?");

            if (openOutputDir == DialogResult.Yes)
            {
                Process.Start(m_tbxOutputDir.Text);
            }
            Close();
            Dispose();
        }