Exemplo n.º 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;
     }
 }
Exemplo n.º 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;
 }
Exemplo n.º 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);
        }