Пример #1
0
		private void Window_Loaded(object sender, RoutedEventArgs e) {
			// Create the interop host control.
			host = new System.Windows.Forms.Integration.WindowsFormsHost();
			viruscontrol = new VirusInterfaceMod();
			host.Child = viruscontrol;
			this.VirusGrid.Children.Add(host);
		}
Пример #2
0
 private void Window_Loaded(object sender, RoutedEventArgs e)
 {
     // Create the interop host control.
     host         = new System.Windows.Forms.Integration.WindowsFormsHost();
     viruscontrol = new VirusInterfaceMod();
     host.Child   = viruscontrol;
     this.VirusGrid.Children.Add(host);
 }
Пример #3
0
 private void EndGame()
 {
     viruscontrol = new VirusInterfaceMod();
     host.Child   = viruscontrol;
     if (lobby.Master)
     {
     }
     else
     {
         lobby.UpdatePlayer(false);
         ReadyButton.IsEnabled = true;
         ReadyLabel.Content    = "Ready";
         ReadyButton.Content   = "Not ready";
     }
     //this.VirusGrid.Children.Clear();
     //this.VirusGrid.Children.Add(host);
 }
Пример #4
0
		private void EndGame() {
			viruscontrol = new VirusInterfaceMod();
			host.Child = viruscontrol;
			if (lobby.Master) {
				
			}
			else {
				lobby.UpdatePlayer(false);
				ReadyButton.IsEnabled = true;
				ReadyLabel.Content = "Ready";
				ReadyButton.Content = "Not ready";
			}
			//this.VirusGrid.Children.Clear();
			//this.VirusGrid.Children.Add(host);
		}