Наследование: IDisposable
Пример #1
0
 public MainWindow(GameContext gameContext)
 {
     _gameContext = gameContext;
     InitializeComponent();
     Size = MainWindowSize;
     FormBorderStyle= FormBorderStyle.FixedSingle;
     BackgroundColor=new Vector3(0,0,0);
 }
Пример #2
0
 static void Main(string[] args)
 {
     disableConsoleClosing();
     GameContext context=new GameContext();
     CommandListener listener=new CommandListener(context);
     MessagePump.Run(context.MainWindow,context.Render);
     listener.Dispose();
     context.Dispose();
 }
Пример #3
0
 public ControlForm(GameContext context)
 {
     _context = context;
     InitializeComponent();
 }
Пример #4
0
 public ControlForm(GameContext context)
 {
     _context = context;
     InitializeComponent();
 }