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); } }
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); } }
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); } }
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); } }