Ejemplo n.º 1
0
        private void radDock1_DockWindowClosed(object sender, Telerik.WinControls.UI.Docking.DockWindowEventArgs e)
        {
            switch (e.DockWindow.Name)
            {
            case "toolWindowProperties":
                toolWindowProperties.Visible = false;
                toolTabStrip4_SelectedIndexChanged(sender, e);
                break;

            case "documentWindowPacks":
                documentWindowPacks.Visible = false;
                break;

            case "toolWindowEvents":
                toolWindowEvents.Visible = false;
                toolTabStrip4_SelectedIndexChanged(sender, e);
                break;

            case "toolWindowRightPacks":
                toolWindowRightPacks.Visible = false;
                break;
            }

            if (!toolWindowProperties.Visible && !documentWindowPacks.Visible)
            {
                cbbCancel_Click(sender, e);
            }
        }
Ejemplo n.º 2
0
        private void dockingManager1_DockingStateChanged(object sender, Telerik.WinControls.UI.Docking.DockWindowEventArgs e)
        {
            string     message = "DockObject current state: ";
            DockWindow window  = e.DockWindow;

            if (window != null)
            {
                message = window.Text + " current state: ";
            }
            AddLog(message + e.DockWindow.DockState, true);
            AddLog("", true);
        }
 private void RadDock1_ActiveWindowChanged(object sender, Telerik.WinControls.UI.Docking.DockWindowEventArgs e)
 {
     if (this.radDock1.ActiveWindow == this.dw_materialBind)
     {
         materialType = MaterialType.MATERIAL_BINDING;
         BindingDataSource();
     }
     else if (this.radDock1.ActiveWindow == this.dw_stockManager)
     {
         materialType = MaterialType.MATERIAL_STOCK_MODIFY;
         BindingMaterialStock(this.tool_stock_queryCondition.Text);
     }
 }
Ejemplo n.º 4
0
 /// <summary>
 /// Called by the owning RadDock instance when the window has been successfully closed.
 /// Depending on the current CloseAction, the window will be either hidden, removed or both plus disposed when entering this method.
 /// </summary>
 /// <param name="e"></param>
 protected internal virtual void OnClosed(DockWindowEventArgs e)
 {
 }