/// <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; }
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; }
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(); }
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>(); }
public NewTabControl(IKernel kernel, IGameConnection connection) { _kernel = kernel; _connection = connection; InitializeComponent(); }