private void btnNext_Click(object sender, RoutedEventArgs e) // if all the inputs are bueno, this should run. { if (all_ok) // Checks that there aren't any errors on the page. { // Casts the input over to the "Mod" object. ModuleConfigWindow.mod = new Mod(txtModName.Text, txtAuthor.Text, txtVersion.Text, txtURL.Text, cboCategory.SelectedItem.ToString(), new ObservableCollection <Mod.Group>()); // Close this window and open the Module Config Window ModuleConfigWindow newWin = new ModuleConfigWindow(); newWin.Owner = this; newWin.Show(); newWin.Owner = null; this.Close(); } else // If there are any errors at all with the input, this will fire. { // Something goes here to tell the user to make sure all the inputs are bueno. } }
private void btnNext_Click(object sender, RoutedEventArgs e) // if all the inputs are bueno, this should run. { if (all_ok) // Checks that there aren't any errors on the page. { // Casts the input over to the "Mod" object. ModuleConfigWindow.mod = new Mod(txtModName.Text, txtAuthor.Text, txtVersion.Text, txtURL.Text, cboCategory.SelectedItem.ToString(), new ObservableCollection<Mod.Group>()); // Close this window and open the Module Config Window ModuleConfigWindow newWin = new ModuleConfigWindow(); newWin.Owner = this; newWin.Show(); newWin.Owner = null; this.Close(); } else // If there are any errors at all with the input, this will fire. { // Something goes here to tell the user to make sure all the inputs are bueno. } }