Exemplo n.º 1
0
 public FloatingForm(FloatingContainer container)
 {
     _parent = container;
     FormBorderStyle = FormBorderStyle.SizableToolWindow;
     StartPosition = FormStartPosition.Manual;
     ShowInTaskbar = false;
 }
Exemplo n.º 2
0
 private void ReadFloatingContainerProperties(XmlNode node, FloatingContainer container)
 {
     var rectangle_ = ConvertStringToRectangle(node.Attributes["Bounds"].Value);
     Guid guid = Guid.NewGuid();
     if (node.Attributes["Guid"] != null)
     {
         guid = new Guid(node.Attributes["Guid"].Value);
     }
     if (container == null)
     {
         container = new FloatingContainer(this, guid);
     }
     foreach (XmlNode xmlNode in node.ChildNodes)
     {
         if (xmlNode.NodeType == XmlNodeType.Element && xmlNode.Name == "SplitLayoutSystem")
         {
             SplitLayoutSystem splitLayoutSystem = this.ReadSplitLayoutSystem(xmlNode, container);
             if (splitLayoutSystem == null)
             {
                 container.Dispose();
                 return;
             }
             container.LayoutSystem = splitLayoutSystem;
         }
     }
     container.method_19(rectangle_, true, false);
 }
Exemplo n.º 3
0
        public void OpenFloating(WindowOpenMethod openMethod)
        {
            EnsureDockSystemContainerNotNull();
            method_8();
            if (DockSituation == DockSituation.Floating)
                return;

            Rectangle rectangle_ = method_11();
            Remove();
            ControlLayoutSystem controlLayoutSystem = LayoutUtilities.smethod_4(Manager, DockSituation.Floating, MetaData.FloatingState);
            if (controlLayoutSystem != null)
            {
                controlLayoutSystem.Controls.Insert(Math.Min(MetaData.FloatingState.Int32_1, controlLayoutSystem.Controls.Count), this);
                if (openMethod != WindowOpenMethod.OnScreen)
                {
                    method_12(openMethod == WindowOpenMethod.OnScreenActivate);
                }
                return;
            }
            FloatingContainer @class = Manager.FindFloatingDockContainer(MetaData.LastFloatingWindowGuid);
            if (@class != null)
            {
                Struct0 @struct = LayoutUtilities.smethod_15(@class, MetaData.FloatingState.Int32_0);
                controlLayoutSystem = @struct.SplitLayout.DockContainer.CreateNewLayoutSystem(this, MetaData.FloatingState.Size);
                if (MetaData.FloatingState.Guid == Guid.Empty)
                {
                    MetaData.FloatingState.Guid = Guid.NewGuid();
                }
                controlLayoutSystem.Guid = MetaData.FloatingState.Guid;
                @struct.SplitLayout.LayoutSystems.Insert(@struct.Index, controlLayoutSystem);
                return;
            }
            if (MetaData.LastFloatingWindowGuid == Guid.Empty)
            {
                MetaData.SaveFloatingWindowGuid(Guid.NewGuid());
            }
            @class = new FloatingContainer(Manager, MetaData.LastFloatingWindowGuid);
            controlLayoutSystem = @class.CreateNewLayoutSystem(this, MetaData.FloatingState.Size);
            if (MetaData.FloatingState.Guid == Guid.Empty)
            {
                MetaData.FloatingState.Guid = Guid.NewGuid();
            }
            controlLayoutSystem.Guid = MetaData.FloatingState.Guid;
            @class.LayoutSystem.LayoutSystems.Add(controlLayoutSystem);
            @class.method_19(rectangle_, true, openMethod == WindowOpenMethod.OnScreenActivate);
        }