private void btnChooseView_Click(object sender, EventArgs e) { AGS.Types.View chosen = ViewChooser.ShowViewChooser(this, (int)udView.Value); if (chosen != null) { udView.Value = chosen.ID; } }
public static AGS.Types.View ShowViewChooser(IWin32Window owner, int currentView) { AGS.Types.View chosenView = null; ViewChooser chooser = new ViewChooser(currentView); if (chooser.ShowDialog(owner) == DialogResult.OK) { chosenView = chooser.SelectedView; } chooser.Dispose(); return chosenView; }
public static AGS.Types.View ShowViewChooser(IWin32Window owner, int currentView) { AGS.Types.View chosenView = null; ViewChooser chooser = new ViewChooser(currentView); if (chooser.ShowDialog(owner) == DialogResult.OK) { chosenView = chooser.SelectedView; } chooser.Dispose(); return(chosenView); }