/// <summary> /// Class constructor. /// </summary> /// <param name="isActive">Initial value for the isActive field.</param> public Desktop(bool isActive) : base() { // Initialize fields. this.isActive = isActive; this.clbControl = new CheckedListBox(); // Set up object. this.clbControl.ForceCursor = true; this.clbControl.ItemCheck += new ItemCheckEventHandler(this.this_ItemCheck); // Enable drag&drop functionality this.clbControl.AllowDrop = true; this.clbControl.GiveFeedback += this.clbControl_GiveFeedback; this.clbControl.MouseDown += this.clbControl_MouseDown; this.clbControl.DragOver += this.clbControl_DragOver; this.clbControl.Drop += this.clbControl_DragDrop; // Register newly created object. DesktopUtil.RegisterDesktop(this); }
/// <summary> /// Class constructor. /// </summary> /// <param name="source">The source CheckedListBox object.</param> /// <param name="draggedWindow">The Window object which is being dragged.</param> /// <param name="isChecked">Flag which tells whether the check box of the window is checked.</param> public DragDropInformation(CheckedListBox source, Window draggedWindow, bool isChecked) { this.source = source; this.draggedWindow = draggedWindow; this.isChecked = isChecked; }