コード例 #1
0
ファイル: Window.cs プロジェクト: Eastrall/monogame-ui
 /// <summary>
 /// Delete the control from the window control list and dispose it
 /// </summary>
 /// <param name="control">Control to delete</param>
 public void DeleteControl(Control control)
 {
     if (control is Window)
     {
         return;
     }
     if (this.lstControl.Contains(control) == true)
     {
         this.lstControl.Remove(control);
     }
     control.Dispose();
     control = null;
 }
コード例 #2
0
ファイル: Window.cs プロジェクト: Eastrall/monogame-ui
 /// <summary>
 /// Add the control to the window control list
 /// </summary>
 /// <param name="control">Control to add</param>
 public void AddControl(Control control)
 {
     if (control is Window)
     {
         return;
     }
     if (this.lstControl.Contains(control) == false)
     {
         this.lstControl.Add(control);
     }
 }