public ExportMshcForm() { InitializeComponent(); //show last settings MshcFileTextBox.Text = Gui.GetString(Gui.VID_MshcFile, ""); VendorName.Text = Gui.GetString(VendorName.Name, "PackageThis"); }
public ExportChmForm() { InitializeComponent(); //show last settings ChmFileTextBox.Text = Gui.GetString("ChmFileTextBox", ""); TitleTextBox.Text = Gui.GetString("ChmTitleTextBox", ""); }
public InstallMshcForm() { InitializeComponent(); //show last settings -- The .msha file lives in the same folder as the .mshc file String mshcFileName = Gui.GetString(Gui.VID_MshcFile, ""); //The file entered in the export dialog if (mshcFileName.Length != 0) { MshaFileTextBox.Text = Path.GetDirectoryName(mshcFileName) + @"\HelpContentSetup.msha"; } else { MshaFileTextBox.Text = Gui.GetString(MshaFileTextBox.Name, ""); } }
private void GenerateHxsForm_Load(object sender, EventArgs e) { // Add three years of copyright strings to the copyright control since no one knows how // to type the copyright symbol. for (int i = -1; i < 2; i++) { CopyrightComboBox.Items.Add("©" + (DateTime.Now.Year + i).ToString() + ". All rights reserved."); } // Select the current year by default. CopyrightComboBox.SelectedItem = CopyrightComboBox.Items[1]; //show last settings FileTextBox.Text = Gui.GetString("HxSFileTextBox", ""); TitleTextBox.Text = Gui.GetString("HxSTitleTextBox", ""); CopyrightComboBox.Text = Gui.GetString("HxSCopyright", CopyrightComboBox.Text); }