コード例 #1
0
ファイル: MainWindow.xaml.cs プロジェクト: Armienn/Virus
		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
ファイル: MainWindow.xaml.cs プロジェクト: Armienn/Virus
		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);
		}