Esempio n. 1
0
 public ViewModelBase(IButterflyWPFClient wpfClient, INetworkClient netClient, WPFPingPacketHandler pingPacket)
 {
     this.wpfClient     = wpfClient;
     this.pingPacket    = pingPacket;
     this.networkClient = netClient;
     this.pingPacket.OnPacketRecived += PingPacket_OnPacketRecived;
 }
Esempio n. 2
0
        public MainWindowViewModel(IButterflyWPFClient wpfClient, INetworkClient netClient, WPFPingPacketHandler pingPacket)
            : base(wpfClient, netClient, pingPacket)
        {
            this.wpfClient.Start();


            this.ClickCommand = new DelegateCommand(this.Send);
        }