internal void RemoveControl()
 {
     if (!this.Control.ShowControlInSeparateWindow)
     {
         if (!this.mGrid.Children.Contains(this.Control as UIElement))
         {
             return;
         }
         this.mGrid.Children.Remove(this.Control as UIElement);
         this.Control.Close();
     }
     else
     {
         if (this.Control != null)
         {
             BlueStacksUIUtils.RemoveChildFromParent((UIElement)this.Control);
             this.Control.Close();
         }
         if (this.cw == null)
         {
             return;
         }
         this.cw.Close();
     }
 }