Esempio n. 1
0
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        static void Main()
        {
            MainForm mainForm = new MainForm();
            mainForm.Show();

            MainGame game = new MainGame(mainForm);
            game.Run();
        }
Esempio n. 2
0
        public MainGame(MainForm form)
        {
            mainForm = form;

            graphics = new GraphicsDeviceManager(this)
            {
                PreferredBackBufferWidth = mainForm.ViewportSize2D.Width,
                PreferredBackBufferHeight = mainForm.ViewportSize2D.Height
            };

            System.Windows.Forms.Control.FromHandle(Window.Handle).VisibleChanged += MainGame_VisibleChanged;
            Content.RootDirectory = "Content";
            IsMouseVisible = true;

            CreateEventHandlers();
        }
Esempio n. 3
0
 public DrillCfgForm(MainForm mainF)
 {
     mainForm = mainF;
     InitializeComponent();
 }
Esempio n. 4
0
        public DrillAddForm(MainForm mForm)
        {
            mainForm = mForm;

            InitializeComponent();
        }
Esempio n. 5
0
 /// <summary>
 /// Initialisiert eine neue Instanz der MultiClipboard Klasse.
 /// </summary>
 public XmlHandler(MainForm mForm, string fName)
 {
     mainForm = mForm;
     fileName = fName;
 }
        public KalibracjaForm(MainForm mForm)
        {
            mainForm = mForm;

            InitializeComponent();
        }