Exemplo n.º 1
0
 public HomePage(MainWindow mainWindow)
 {
     InitializeComponent();
     this.mainWindow = mainWindow;
     playerDCViewSource = ((System.Windows.Data.CollectionViewSource)(this.FindResource("playerDCViewSource")));
     LoadProfil();
 }
 public AddFriendPage(MainWindow mainWindow, List<PlayerDC> potentialFriends)
 {
     InitializeComponent();
     playerDCViewSource = ((System.Windows.Data.CollectionViewSource)(this.FindResource("playerDCViewSource")));
     playerDCViewSource.Source = potentialFriends;
     this.mainWindow = mainWindow;
     this.potentialFriends = potentialFriends;
 }
 public CreatePartyPage(MainWindow mainWindow, List<BomberContracts_WCF.PlayerDC> friends)
 {
     InitializeComponent();
     playerDCViewSource = ((System.Windows.Data.CollectionViewSource)(this.FindResource("playerDCViewSource")));
     this.mainWindow = mainWindow;
     this.friendsList = friends;
     playerDCViewSource.Source = friends;
 }
 public FriendshipRequestPage(MainWindow mainWindow, BomberContracts_WCF.PlayerDC playerDC)
 {
     InitializeComponent();
     this.mainWindow = mainWindow;
     this.playerDC = playerDC;
     var playerDCViewSource = ((System.Windows.Data.CollectionViewSource)(this.FindResource("playerDCViewSource")));
     playerDCViewSource.Source = new List<PlayerDC>() { playerDC };
 }
 public ConversationPage(MainWindow mainWindow)
 {
     InitializeComponent();
     this.mainWindow = mainWindow;
     PartyListViewSource = ((System.Windows.Data.CollectionViewSource)(this.FindResource("conversationDCViewSource")));
     waveOut = new WaveOut();
     waveIn = new WaveIn();
     waveProvider = new BufferedWaveProvider(new WaveIn().WaveFormat);
     waveOut.Init(waveProvider);
     waveOut.Play();
     int inputDeviceNumber = WaveInEvent.DeviceCount - 1;
     waveIn.DeviceNumber = inputDeviceNumber;
     waveIn.BufferMilliseconds = 10;
     waveIn.DataAvailable += new EventHandler<WaveInEventArgs>(waveIn_DataAvailable);
 }
 public AddFriendPage(MainWindow mainWindow)
 {
     InitializeComponent();
     this.mainWindow = mainWindow;
 }
 public AcountCreationPage(MainWindow mainWindow)
 {
     InitializeComponent();
     this.mainWindow = mainWindow;
 }
 public ConnectionWindow(MainWindow mainWindow)
 {
     InitializeComponent();
     this.mainWindow = mainWindow;
     mainWindow.IsEnabled = false;
 }