Esempio n. 1
0
 /// <summary>
 /// Creates a new <see cref="HostedConnection"/> instance
 /// </summary>
 /// <param name="diceConnection"></param>
 public HostedConnection(string hostName, int port, IGameConnection diceConnection)
 {
     this.Id = Guid.NewGuid();
     this.HostName = hostName;
     this.Port = port;
     this.Connection = diceConnection;
 }
Esempio n. 2
0
        public MainWindow(IKernel kernel, IGameConnection connection, IInterTabClient interTab, IInterLayoutClient interLayout, IProjectManager projectManager)
        {
            _kernel = kernel;
            _connection = connection;
            _interTabClient = interTab;
            _interLayoutClient = interLayout;
            _projectManager = projectManager;

            InitializeComponent();

            Loaded += WindowLoaded;
        }
Esempio n. 3
0
        public NodeTree(IGameConnection connection)
        {
            Connection = connection;
            if (connection.Topology.Root != null)
                _rootTopology = new ProceduralNodeViewModel(Connection.Topology.Root);

            InitializeComponent();

            _observer = Observable.FromEventPattern<TextChangedEventArgs>(NodeFilterTextInput, "TextChanged")
                      .Throttle(TimeSpan.FromMilliseconds(250))
                      .Subscribe(a => Dispatcher.Invoke(() => FilterChanged(a.Sender, a.EventArgs)));

            connection.Topology.PropertyChanged += ConnectionPropertyChanged;

            RefreshTopology();
        }
Esempio n. 4
0
 public TcpGameClient(IGameConnection connection, ILogger logger)
 {
     this.connection = connection;
     this.logger     = logger;
 }
 private void StartPopup_Load(object sender, EventArgs e)
 {
     _validateTextBoxData = Program.DIContainer.Resolve <IValidateTextBoxData>();
     _gameConnection      = Program.DIContainer.Resolve <IGameConnection>();
 }
Esempio n. 6
0
 public NewTabControl(IKernel kernel, IGameConnection connection)
 {
     _kernel = kernel;
     _connection = connection;
     InitializeComponent();
 }