示例#1
0
        private async void Test()
        {
            rconModel = new RconModel(Dispatcher);

            rconModel.Connect();

            this.DataContext = rconModel;

            // Register all views so they can hook up to events
            ViewChatWindow.Register(rconModel);
            ViewCommandConsole.Register(rconModel);
            ViewDebugDataModel.Register(rconModel);
            ViewDebugLog.Register(rconModel);
            ViewPlayerList.Register(rconModel);
        }
        private async void Test()
        {

            rconModel = new RconModel(Dispatcher);
            
            rconModel.Connect();

            this.DataContext = rconModel;

            // Register all views so they can hook up to events
            ViewChatWindow.Register(rconModel);
            ViewCommandConsole.Register(rconModel);
            ViewDebugDataModel.Register(rconModel);
            ViewDebugLog.Register(rconModel);
            ViewPlayerList.Register(rconModel);
        }