private void btnOpen_Click(object sender, EventArgs e) { using (OpenFileDialog open = new OpenFileDialog()) { open.Filter = "Manifest XML (*.xml)|*.xml|All Files (*.*)|*.*"; if (open.ShowDialog() != DialogResult.OK) return; manifest = new Manifest(File.ReadAllText(open.FileName)); } txtName.Text = manifest.Name; txtDescription.Text = manifest.Description; numVersion.Value = manifest.Build; txtVersion.Text = manifest.Version; cmbVersion.SelectedIndex = (int)manifest.UTVersion; }
private void formManifest_Load(object sender, EventArgs e) { manifest = new Manifest(); cmbVersion.SelectedIndex = 2; #warning todo: dynamic versions }