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); }
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); }