Example #1
0
 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;
     }
 }
Example #2
0
 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;
 }
Example #3
0
        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);
        }