Esempio n. 1
0
        public MainWindow()
        {
            InitializeComponent();

            // Initialize Ninject kernel and bindings
            NInjectHelper.Initialize(this);

            // Initialize Syncfusion Diagram
            Syncfusion.Windows.Forms.Diagram.Global.Initialize();

            // Get the game host and run the game
            var gameHost = NInjectHelper.Get <IGameHost>();

            gameHost.Run(NInjectHelper.Get <Game>());
        }
Esempio n. 2
0
 public static void Inject(object obj)
 {
     NInjectHelper.Inject(obj, null);
 }