/// <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(); }
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(); }
public DrillCfgForm(MainForm mainF) { mainForm = mainF; InitializeComponent(); }
public DrillAddForm(MainForm mForm) { mainForm = mForm; InitializeComponent(); }
/// <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(); }