public ViewModelBase(IButterflyWPFClient wpfClient, INetworkClient netClient, WPFPingPacketHandler pingPacket) { this.wpfClient = wpfClient; this.pingPacket = pingPacket; this.networkClient = netClient; this.pingPacket.OnPacketRecived += PingPacket_OnPacketRecived; }
public MainWindowViewModel(IButterflyWPFClient wpfClient, INetworkClient netClient, WPFPingPacketHandler pingPacket) : base(wpfClient, netClient, pingPacket) { this.wpfClient.Start(); this.ClickCommand = new DelegateCommand(this.Send); }