예제 #1
0
 public ClientViewModel()
 {
     var channelFactory = new DuplexChannelFactory<IChattingService>(new ClientService(), "ChattingServiceEndPoint");
     _server = channelFactory.CreateChannel();
     _this = this;
     CreateCommands();
     NavigationCommands();
 }
예제 #2
0
 public MainWindow()
 {
     InitializeComponent();
     DataContext = new ClientViewModel();
     _this = this;
 }