Exemplo n.º 1
0
 private void GenerateHxsForm_FormClosing(object sender, FormClosingEventArgs e)
 {
     if (this.DialogResult == DialogResult.OK)
     {
         Gui.SetString("HxSFileTextBox", FileTextBox.Text);
         Gui.SetString("HxSTitleTextBox", TitleTextBox.Text);
         Gui.SetString("HxSCopyright", CopyrightComboBox.Text);
     }
 }
Exemplo n.º 2
0
 private void ExportChmForm_FormClosing(object sender, FormClosingEventArgs e)
 {
     if (this.DialogResult == DialogResult.OK)
     {
         //Save settings
         Gui.SetString("ChmFileTextBox", ChmFileTextBox.Text);
         Gui.SetString("ChmTitleTextBox", TitleTextBox.Text);
     }
 }
Exemplo n.º 3
0
        private void InstallMshcForm_FormClosing(object sender, FormClosingEventArgs e)
        {
            if (this.DialogResult == DialogResult.OK)
            {
                //Trim Whitespace
                MshaFileTextBox.Text = MshaFileTextBox.Text.Trim();
                ProdName.Text        = ProdName.Text.Trim();
                VersionName.Text     = VersionName.Text.Trim();
                LocaleName.Text      = LocaleName.Text.Trim();

                //Save settings
                Gui.SetString(MshaFileTextBox.Name, MshaFileTextBox.Text);
            }
        }
Exemplo n.º 4
0
        private void ExportMshcForm_FormClosing(object sender, FormClosingEventArgs e)
        {
            if (this.DialogResult == DialogResult.OK)
            {
                MshcFileTextBox.Text = MshcFileTextBox.Text.Trim();
                VendorName.Text      = VendorName.Text.Trim();
                ProdName.Text        = ProdName.Text.Trim();
                BookName.Text        = BookName.Text.Trim();
                if (Directory.Exists(MshcFileTextBox.Text))
                {
                    e.Cancel = true;
                    MessageBox.Show("Can't create file \"" + Path.GetFileName(MshcFileTextBox.Text) + "\".\n\nA folder already exists with this name!",
                                    "Warning", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
                }


                //Save settings
                Gui.SetString(Gui.VID_MshcFile, MshcFileTextBox.Text);
                Gui.SetString(VendorName.Name, VendorName.Text);
                Gui.SetString(ProdName.Name, ProdName.Text);
                Gui.SetString(BookName.Name, BookName.Text);
            }
        }