コード例 #1
0
        internal void RemovePane(DockPane pane)
        {
            if (!Panes.Contains(pane))
            {
                return;
            }

            Panes.Remove(pane);
        }
コード例 #2
0
        /// <summary>
        /// Initializes a new instance of the <see cref="Xamarin.Forms.Platform.Tizen.Native.MasterDetailPage"/> class.
        /// </summary>
        /// <param name="parent">Parent evas object.</param>
        public MasterDetailPage(EvasObject parent) : base(parent)
        {
            LayoutUpdated += (s, e) =>
            {
                UpdateChildCanvasGeometry();
            };

            // create the controls which will hold the master and detail pages
            _masterCanvas = new Canvas(this);
            _masterCanvas.SetAlignment(-1.0, -1.0);         // fill
            _masterCanvas.SetWeight(1.0, 1.0);              // expand
            _masterCanvas.LayoutUpdated += (sender, e) =>
            {
                UpdatePageGeometry(_master);
            };

            _detailCanvas = new Canvas(this);
            _detailCanvas.SetAlignment(-1.0, -1.0);         // fill
            _detailCanvas.SetWeight(1.0, 1.0);              // expand
            _detailCanvas.LayoutUpdated += (sender, e) =>
            {
                UpdatePageGeometry(_detail);
            };

            _splitPane = new Panes(this)
            {
                AlignmentX   = -1,
                AlignmentY   = -1,
                WeightX      = 1,
                WeightY      = 1,
                IsFixed      = true,
                IsHorizontal = false,
                Proportion   = _splitRatio,
            };

            _drawer = new Panel(Forms.NativeParent);
            _drawer.SetScrollable(_isGestureEnabled);
            _drawer.SetScrollableArea(1.0);
            _drawer.Direction = PanelDirection.Left;
            _drawer.Toggled  += (object sender, EventArgs e) =>
            {
                UpdateFocusPolicy();
                IsPresentedChanged?.Invoke(this, new IsPresentedChangedEventArgs(_drawer.IsOpen));
            };

            ConfigureLayout();

            // in case of the screen rotation we may need to update the choice between split
            // and popover behaviors and reconfigure the layout
            Device.Info.PropertyChanged += (s, e) =>
            {
                if (e.PropertyName == nameof(Device.Info.CurrentOrientation))
                {
                    UpdateMasterBehavior();
                }
            };
        }
コード例 #3
0
        internal void AddPane(DockPane pane)
        {
            if (Panes.Contains(pane))
            {
                return;
            }

            Panes.Add(pane);
        }
コード例 #4
0
        public void AddPane(UserControl UIElement)
        {
            if (UIElement.DataContext is Models.ViewModelPane vm)
            {
                if (Panes.Where(a => a.Header?.ToString().Replace("*", "") == vm.Header.Replace("*", "") && a.IsVisible).Count() > 0)
                {
                    ShowPane(Panes.Single(a => a.Header?.ToString().Replace("*", "") == vm.Header.Replace("*", "") && a.IsVisible));
                }
                else
                {
                    var pane = new RadPane
                    {
                        Content = UIElement,
                    };
                    vm.CloseAction = new Action(() =>
                    {
                        pane.IsHidden = true;
                    });
                    pane.DataContext       = vm;
                    pane.IsVisibleChanged += (sender, e) =>
                    {
                    };

                    Binding binding = new Binding();
                    binding.Path = new PropertyPath("Header");        // свойство элемента-источника
                    pane.SetBinding(RadPane.HeaderProperty, binding); // установка привязки для элемента-приемника
                    Panes.Add(pane);
                }
            }
            else if (UIElement.DataContext is Models.ViewModelPaneReactiveObject vm2)
            {
                if (Panes.Where(a => a.Header?.ToString().Replace("*", "") == vm2.Header.Replace("*", "") && a.IsVisible).Count() > 0)
                {
                    ShowPane(Panes.Single(a => a.Header?.ToString().Replace("*", "") == vm2.Header.Replace("*", "") && a.IsVisible));
                }
                else
                {
                    var pane = new RadPane
                    {
                        Content = UIElement,
                    };
                    vm2.CloseAction = new Action(() =>
                    {
                        pane.IsHidden = true;
                    });
                    pane.DataContext       = vm2;
                    pane.IsVisibleChanged += (sender, e) =>
                    {
                    };

                    Binding binding = new Binding();
                    binding.Path = new PropertyPath("Header");        // свойство элемента-источника
                    pane.SetBinding(RadPane.HeaderProperty, binding); // установка привязки для элемента-приемника
                    Panes.Add(pane);
                }
            }
        }
コード例 #5
0
ファイル: Skin.cs プロジェクト: gvhung/thegioicuaban.com
        private bool ProcessMasterModules()
        {
            bool bSuccess = true;

            if (TabPermissionController.CanViewPage())
            {
                if (!CheckExpired())
                {
                    if ((PortalSettings.ActiveTab.StartDate < DateTime.Now && PortalSettings.ActiveTab.EndDate > DateTime.Now) || Globals.IsLayoutMode())
                    {
                        if (PortalSettings.ActiveTab.Modules.Count > 0)
                        {
                            foreach (ModuleInfo objModule in PortalSettings.ActiveTab.Modules)
                            {
                                if (ModulePermissionController.CanViewModule(objModule) && objModule.IsDeleted == false)
                                {
                                    if ((objModule.StartDate < DateTime.Now && objModule.EndDate > DateTime.Now) || Common.Globals.IsLayoutMode() || Common.Globals.IsEditMode())
                                    {
                                        Pane pane   = null;
                                        bool bFound = Panes.TryGetValue(objModule.PaneName.ToLowerInvariant(), out pane);
                                        if (!bFound)
                                        {
                                            bFound = Panes.TryGetValue(Common.Globals.glbDefaultPane.ToLowerInvariant(), out pane);
                                        }
                                        if (bFound)
                                        {
                                            bSuccess = InjectModule(pane, objModule);
                                        }
                                        else
                                        {
                                            ModuleLoadException lex;
                                            lex = new ModuleLoadException(PANE_LOAD_ERROR);
                                            Controls.Add(new ErrorContainer(PortalSettings, MODULELOAD_ERROR, lex).Container);
                                            Exceptions.LogException(lex);
                                        }
                                    }
                                }
                            }
                        }
                    }
                    else
                    {
                        AddPageMessage(this, "", TABACCESS_ERROR, UI.Skins.Controls.ModuleMessage.ModuleMessageType.YellowWarning);
                    }
                }
                else
                {
                    AddPageMessage(this, "", string.Format(CONTRACTEXPIRED_ERROR, PortalSettings.PortalName, Common.Globals.GetMediumDate(PortalSettings.ExpiryDate.ToString()), PortalSettings.Email), UI.Skins.Controls.ModuleMessage.ModuleMessageType.RedError);
                }
            }
            else
            {
                Response.Redirect(Common.Globals.AccessDeniedURL(TABACCESS_ERROR), true);
            }
            return(bSuccess);
        }
コード例 #6
0
        private void DrawInBuffer()
        {
            if (Width <= 0 || Height <= 0)
            {
                return;
            }

            try
            {
                if (buffer == null)
                {
                    buffer = new Bitmap(Width, Height);
                }
                else
                {
                    if (buffer.Width != Width || buffer.Height != Height)
                    {
                        buffer.Dispose();
                        buffer = new Bitmap(Width, Height);
                    }
                }
            }
            catch (Exception ex)
            {
                Logger.Error("DrawInBuffer - ошибка выделения памяти", ex);
                throw new Exception("Ошибка выделения памяти (рисование)");
            }

            try
            {
                using (var g = Graphics.FromImage(buffer))
                {
                    g.Clear(BackColor);
                    //var container = g.BeginContainer();
                    //g.SetClip(ClientRect);
                    //g.TranslateTransform(ClientRect.Left, ClientRect.Top);
                    //Rectangle rectangle = Conversion.ParentToChild(new Rectangle(0, 0, Width - 1, Height - 1), ClientRect);
                    var rectangle = new Rectangle(0, 0, Width, Height);
                    try
                    {
                        Panes.Draw(g, rectangle);
                    }
                    catch (Exception ex)
                    {
                        logNoFlood.LogMessageFormatCheckFlood(LogEntryType.Error,
                                                              LogMsgDrawError, 1000 * 60 * 5,
                                                              "ChartControl.DrawInBuffer error: {0}", ex);
                    }
                    //g.EndContainer(container);
                }
            }
            catch (Exception ex)
            {
                Logger.ErrorFormat("ChartControl.DrawInBuffer error: width={0}, height={1}, {2}", Width, Height, ex);
            }
        }
コード例 #7
0
ファイル: DockPanel.cs プロジェクト: ekarincodizm/Pojjaman
        /// <include file='CodeDoc\DockPanel.xml' path='//CodeDoc/Class[@name="DockPanel"]/Method[@name="SetPaneIndex(DockPane, int)"]/*'/>
        public void SetPaneIndex(DockPane pane, int index)
        {
            int oldIndex = Panes.IndexOf(pane);

            if (oldIndex == -1)
            {
                throw(new ArgumentException(ResourceHelper.GetString("DockPanel.SetPaneIndex.InvalidPane")));
            }

            if (index < 0 || index > Panes.Count - 1)
            {
                if (index != -1)
                {
                    throw(new ArgumentOutOfRangeException(ResourceHelper.GetString("DockPanel.SetPaneIndex.InvalidIndex")));
                }
            }

            if (oldIndex == index)
            {
                return;
            }
            if (oldIndex == Panes.Count - 1 && index == -1)
            {
                return;
            }

            Panes.Remove(pane);
            if (index == -1)
            {
                Panes.Add(pane);
            }
            else if (oldIndex < index)
            {
                Panes.AddAt(pane, index - 1);
            }
            else
            {
                Panes.AddAt(pane, index);
            }

            if (pane.DockState == DockState.Float)
            {
                pane.FloatWindow.PerformLayout();
            }
            else if (DockHelper.IsDockWindowState(pane.DockState))
            {
                DockWindows[pane.DockState].PerformLayout();
            }
            else if (DockHelper.IsDockStateAutoHide(pane.DockState))
            {
                Refresh();
            }
        }
コード例 #8
0
        private Pane GetPane(ModuleInfo module)
        {
            Pane pane;
            bool found = Panes.TryGetValue(module.PaneName.ToLowerInvariant(), out pane);

            if (!found)
            {
                Panes.TryGetValue(Globals.glbDefaultPane.ToLowerInvariant(), out pane);
            }

            return(pane);
        }
コード例 #9
0
        private void Draw(Graphics g, Rectangle clipRectangle)
        {
            buffer = null;

            g.Clear(BackColor);
            //GraphicsContainer container = g.BeginContainer();
            //g.SetClip(ClientRect);
            //g.TranslateTransform(ClientRect.Left, ClientRect.Top);
            //Rectangle rectangle = Conversion.ParentToChild(clipRectangle, ClientRect);
            Panes.Draw(g, clipRectangle);
            //g.EndContainer(container);
        }
コード例 #10
0
        public IListViewConfig <TEntity> AddRow <TDerivedEntity>(Type?customSectionType, Action <IDisplayPaneConfig <TDerivedEntity> > configure)
            where TDerivedEntity : TEntity
        {
            var config = customSectionType == null
                ? new PaneConfig <TDerivedEntity>(typeof(TDerivedEntity))
                : new PaneConfig <TDerivedEntity>(typeof(TDerivedEntity), customSectionType);

            configure?.Invoke(config);

            Panes.Add(config);

            return(this);
        }
コード例 #11
0
        private NodeViewConfig <TEntity> AddSection <TDerivedEntity>(Type?customSectionType, Action <IDisplayPaneConfig <TDerivedEntity> >?configure)
            where TDerivedEntity : TEntity
        {
            var config = customSectionType == null
                ? new PaneConfig <TDerivedEntity, IFieldConfig <TDerivedEntity> >(typeof(TDerivedEntity))
                : new PaneConfig <TDerivedEntity, IFieldConfig <TDerivedEntity> >(typeof(TDerivedEntity), customSectionType);

            configure?.Invoke(config);

            Panes.Add(config);

            return(this);
        }
コード例 #12
0
        private void ThisAddIn_Shutdown(object sender, System.EventArgs e)
        {
            Application.WorkbookActivate    -= Application_WorkbookActivate;
            Application.WorkbookBeforeClose -= Application_WorkbookBeforeClose;
            Application.WindowDeactivate    -= Application_WindowDeactivate;

            foreach (var x in Panes.Values)
            {
                CleanUpPaneAndControl(x);
            }

            Panes.Clear();
        }
コード例 #13
0
        public INodeEditorConfig <TEntity> AddSection <TDerivedEntity>(Type?customSectionType, Action <IEditorPaneConfig <TDerivedEntity> >?configure)
            where TDerivedEntity : TEntity
        {
            var config = customSectionType == null
                ? new PaneConfig <TDerivedEntity>(typeof(TDerivedEntity))
                : new PaneConfig <TDerivedEntity>(typeof(TDerivedEntity), customSectionType);

            configure?.Invoke(config);

            Panes.Add(config);

            return(this);
        }
コード例 #14
0
ファイル: World.cs プロジェクト: busyDuckman/WDLib
        public void loadTMXFile(string path, bool bind)
        {
            XmlDocument xml = new XmlDocument();

            xml.LoadXml(File.ReadAllText(path));
            XmlNode mapNode = xml["map"];

            //get basic info
            int mapWidth   = int.Parse(mapNode.Attributes["width"].InnerText);
            int mapHeight  = int.Parse(mapNode.Attributes["height"].InnerText);
            int tileWidth  = int.Parse(mapNode.Attributes["tilewidth"].InnerText);
            int tileHeight = int.Parse(mapNode.Attributes["tileheight"].InnerText);

            //load world (assumes same sized tiles throughout layers)
            foreach (XmlNode subNode in mapNode)
            {
                if (subNode.Name.EqualsIgnoreCase("tileset"))
                {
                    string imageAtlasFile = subNode["image"].Attributes["source"].InnerText;
                    string imageAtlasPath = Path.Combine(Path.GetDirectoryName(path), imageAtlasFile);
                    int    startIndex     = int.Parse(subNode.Attributes["firstgid"].InnerText);
                    TileSets.Add(TileSet <Tile> .fromImageAtlas(imageAtlasPath, startIndex, tileWidth, tileHeight));
                    rebuildTileLut(); //(future proofing) do now incase layers ever need to inspect the tiles
                }
                else if (subNode.Name.EqualsIgnoreCase("layer"))
                {
                    string layerFormat = subNode["data"].Attributes["encoding"].InnerText;
                    if (layerFormat.EqualsIgnoreCase("csv"))
                    {
                        //get all numbers from the csv [LIKE A BOSS]
                        //int[] indicies = subNode["data"].InnerText.Split(',').Select(n => int.Parse(n.Trim())).ToArray();
                        int[] indicies = subNode["data"].InnerText.ParseAllIntegers();
                        Panes.Add(new TiledPane(mapWidth, mapHeight, indicies, this));
                    }
                    else
                    {
                        WDAppLog.logError(ErrorLevel.Error, "Unsuported layer format", path);
                    }
                }
                else if (subNode.Name.EqualsIgnoreCase("objectgroup"))
                {
                }
                else if (subNode.Name.EqualsIgnoreCase("imagelayer"))
                {
                    string imageFile = subNode["image"].Attributes["source"].InnerText.Trim();
                    string imagePath = Path.Combine(Path.GetDirectoryName(path), imageFile);
                    Bitmap b         = new Bitmap(imagePath);
                    Panes.Add(new ImagePane(b));
                }
            }
        }
コード例 #15
0
        public DrawerBox(EvasObject parent) : base(parent)
        {
            _drawerBox = new EBox(this);
            _drawerBox.SetAlignment(-1.0, -1.0);
            _drawerBox.SetWeight(1.0, 1.0);
            _drawerBox.Show();

            _contentBox = new EBox(this);
            _contentBox.SetAlignment(-1.0, -1.0);
            _contentBox.SetWeight(1.0, 1.0);
            _contentBox.Show();

            _dimArea = new EBox(this)
            {
                BackgroundColor = ThemeConstants.Shell.ColorClass.DefaultDrawerDimBackgroundColor,
                Opacity         = ThemeConstants.Shell.Resources.DefaultDrawerDimOpacity
            };

            _gestureOnDimArea = new GestureLayer(_dimArea);
            _gestureOnDimArea.SetTapCallback(GestureType.Tap, GestureLayer.GestureState.Start, OnTapped);
            _gestureOnDimArea.Attach(_dimArea);

            _splitPane = new Panes(this)
            {
                AlignmentX   = -1,
                AlignmentY   = -1,
                WeightX      = 1,
                WeightY      = 1,
                IsFixed      = true,
                IsHorizontal = false,
            };

            _panel = new Panel(this);
            _panel.SetScrollable(_isGestureEnabled);
            _panel.SetScrollableArea(1.0);
            _panel.Direction = PanelDirection.Left;
            _panel.Toggled  += (object?sender, EventArgs e) =>
            {
                if (_panel.IsOpen)
                {
                    _dimArea.Show();
                }

                Toggled?.Invoke(this, EventArgs.Empty);
            };

            _mainWidget = _contentBox;

            ConfigureLayout();
            SetLayoutCallback(OnLayout);
        }
コード例 #16
0
        private async Task <Workspace> InitializeAsync()
        {
            Console = await ConsoleViewModel.CreateAsync(true);

            Configuration = await ConfigurationViewModel.CreateAsync(true);

            About = await AboutViewModel.CreateAsync(true);

            Panes.AddRange(new PaneViewModel[] { About, Console, Configuration });

            await Init();

            return(this);
        }
コード例 #17
0
        public void OnActivate(Excel.Workbook wb)
        {
            ProcessCleanQueue();

            var pane    = Panes.GetOrAdd(wb.Name, _ => CreatePane(wb));
            var handler = pane.Control.CurrentHandler ?? new WorkbookHandler(wb);

            // var handler = Handlers.GetOrAdd(wb, x => new WorkbookHandler(x));
            // タブの同期
            handler.SyncWorksheets();
            pane.Control.AssignWorkbookHandler(handler);

            RibbonMenu?.InvalidatePanesVisibility();
        }
コード例 #18
0
        public GRP1(FileReader reader, BxlytHeader header)
        {
            LayoutFile = header;

            Name = reader.ReadString(0x10, true);;
            int numNodes = reader.ReadUInt16();

            reader.Seek(2); //padding

            for (int i = 0; i < numNodes; i++)
            {
                Panes.Add(reader.ReadString(0x10, true));
            }
        }
コード例 #19
0
        public void AfterSaveNewToGoOrder()
        {
            try

            {
                if (Panes.Any(a => (a.IsVisible && (a.Content is UI.CtrlToGoOrders))))
                {
                    var pane = Panes.FirstOrDefault(a => (a.IsVisible && (a.Content is UI.CtrlToGoOrders)));
                    ((pane.Content as UI.CtrlToGoOrders).DataContext as ToGoOrdersViewModel).AfterAddOrder();
                    ShowPane(pane);
                }
            }
            catch
            { }
        }
コード例 #20
0
 public IEnumerable <ButtonSetup>?GetAllButtons()
 {
     if (Buttons != null)
     {
         foreach (var button in Buttons.GetAllButtons())
         {
             yield return(button);
         }
     }
     if (Panes != null)
     {
         foreach (var button in Panes.SelectMany(pane => pane.Buttons.GetAllButtons()))
         {
             yield return(button);
         }
     }
 }
コード例 #21
0
        // Methods
        private void ConstructSample()
        {
            SuspendLayout();
            StockPane.PercentHeight = 75f;
            Pane pane = Panes.Add("VOL");

            pane.PercentHeight             = 25f;
            pane.YAxis.MinAuto             = false;
            pane.YAxis.Min                 = 0.0;
            pane.PaneFrame.TitleBoxVisible = false;
            ResumeLayout();
            var      series = new VolumeSeries("Volume");
            var      random = new Random();
            int      num    = random.Next(100, 150);
            DateTime date   = DateTime.Today.AddDays(1.0);

            for (int i = 0; i < 100; i++)
            {
                int maxValue = num + random.Next(5, 0x15);
                int minValue = num - random.Next(5, 0x15);
                int num4     = random.Next(minValue, maxValue);
                int num5     = random.Next(0x186a0, 0x989680);
                if (date.DayOfWeek == DayOfWeek.Friday)
                {
                    date = date.AddDays(3.0);
                }
                else if (date.DayOfWeek == DayOfWeek.Saturday)
                {
                    date = date.AddDays(2.0);
                }
                else
                {
                    date = date.AddDays(1.0);
                }
                StockSeries.Data.Add(num, maxValue, minValue, num4, date);
                series.Data.Add(num5);
                num += random.Next(-15, 0x15);
            }
            pane.Series.Add(series);
            var series2 = new LineSeries("MA 10");

            series2.Data.SetDataArray(Formula.ExponentialMovingAverage(StockSeries.Data, 10));
            StockPane.Series.Add(series2);
            FitChart();
        }
コード例 #22
0
        public async Task <PetitionResponse> Add(Panes panes)
        {
            _context.Panes.Add(panes);
            if (await _context.SaveChangesAsync() < 0)
            {
                return(new PetitionResponse
                {
                    success = false,
                    message = "Error al guardar"
                });
            }

            return(new PetitionResponse
            {
                success = true,
                message = "Guarde"
            });
        }
コード例 #23
0
        public async Task <PetitionResponse> Update(Panes panes)
        {
            _context.Entry <Panes>(panes).State = EntityState.Modified;

            if (await _context.SaveChangesAsync() < 0)
            {
                return(new PetitionResponse
                {
                    success = false,
                    message = "Error al a"
                });
            }

            return(new PetitionResponse
            {
                success = true,
                message = "Guarde"
            });
        }
コード例 #24
0
ファイル: Panesdao.cs プロジェクト: BlueBlockGrape/Panaderia3
        public List <Panes> GetAll()
        {
            List <Panes> Lista = new List <Panes>();

            Conexion.ConnectionString = "server=localhost; database=panaderia; uid=root; pwd=Root123;";
            try
            {
            }
            catch (Exception)
            {
                throw;
            }

            Conexion.Open();

            DataSet          ds  = new DataSet();
            MySqlDataAdapter da  = new MySqlDataAdapter();
            MySqlCommand     cmd = new MySqlCommand();


            //cnn.Open();
            cmd.CommandText             = "SELECT * FROM Panes";
            da.SelectCommand            = cmd;
            da.SelectCommand.Connection = Conexion;
            da.Fill(ds);
            DataSet datos = ds;

            DataTable dt = datos.Tables[0];
            Panes     p;

            foreach (DataRow r in dt.Rows)
            {
                p        = new Panes();
                p.Id_Pan = (int)r.ItemArray[0];
                p.Nombre = (string)r.ItemArray[1];
                p.Precio = (double)r.ItemArray[2];
                p.Tamaño = (string)r.ItemArray[3];
                Lista.Add(p);
            }
            Conexion.Close();

            return(Lista);
        }
コード例 #25
0
ファイル: Panesdao.cs プロジェクト: BlueBlockGrape/Panaderia3
        public bool Delete(Panes p)
        {
            Conexion.ConnectionString = "server=localhost; database=panaderia; uid=root; pwd=Root123;";
            try
            {
                Conexion.Open();
                string insertQuery = "DELETE FROM Panes WHERE Id_Pan=@Id_Pan ;";

                MySqlCommand SqlCom = new MySqlCommand(insertQuery, Conexion);
                SqlCom.Parameters.AddWithValue("@Id_Pan", p.Id_Pan);
                SqlCom.ExecuteNonQuery();
                Conexion.Close();
                return(true);
            }
            catch (Exception)
            {
                return(false);
            }
        }
コード例 #26
0
        private void LoadPanes()
        {
            //iterate page controls
            foreach (Control ctlControl in Controls)
            {
                var objPaneControl = ctlControl as HtmlContainerControl;

                //Panes must be runat=server controls so they have to have an ID
                if (objPaneControl != null && !string.IsNullOrEmpty(objPaneControl.ID))
                {
                    //load the skin panes
                    switch (objPaneControl.TagName.ToLowerInvariant())
                    {
                    case "td":
                    case "div":
                    case "span":
                    case "p":
                    case "section":
                    case "header":
                    case "footer":
                    case "main":
                    case "article":
                    case "aside":
                        //content pane
                        if (objPaneControl.ID.ToLower() != "controlpanel")
                        {
                            //Add to the PortalSettings (for use in the Control Panel)
                            PortalSettings.ActiveTab.Panes.Add(objPaneControl.ID);

                            //Add to the Panes collection
                            Panes.Add(objPaneControl.ID.ToLowerInvariant(), new Pane(objPaneControl));
                        }
                        else
                        {
                            //Control Panel pane
                            _controlPanel = objPaneControl;
                        }
                        break;
                    }
                }
            }
        }
コード例 #27
0
        private void BuildPanes()
        {
            if (FindControlRecursive(this, "ContentPane") is HtmlContainerControl contentPane)
            {
                base.PortalSettings.ActiveTab.Panes.Add(contentPane.ID);
                Panes.Add(contentPane.ID.ToLowerInvariant(), new Pane(contentPane));
            }

            if (!m2v.HasValue || m2v.HasValue && m2v.Value && !string.IsNullOrEmpty(Request.QueryString["SkinSrc"]))
            {
                foreach (ModuleInfo m in PortalSettings.ActiveTab.Modules)
                {
                    if (FindControl("vj_" + m.ModuleID.ToString()) is HtmlContainerControl paneCtrl)
                    {
                        base.PortalSettings.ActiveTab.Panes.Add(paneCtrl.ID);
                        Panes.Add(paneCtrl.ID.ToLowerInvariant(), new Pane(paneCtrl));
                    }
                }
            }
        }
コード例 #28
0
        internal static string GetXmlValue(this Panes pane)
        {
            switch (pane)
            {
            case Panes.BottomLeft:
                return("bottomLeft");

            case Panes.BottomRight:
                return("bottomRight");

            case Panes.TopLeft:
                return("topLeft");

            case Panes.TopRight:
                return("topRight");

            default:
                throw new ArgumentOutOfRangeException(nameof(pane), "Invalid Pane: " + pane);
            }
        }
コード例 #29
0
        protected override void Dispose(bool disposing)
        {
            if (!m_disposed && disposing)
            {
                m_focusManager.Dispose();
                if (m_mdiClientController != null)
                {
                    m_mdiClientController.HandleAssigned   -= new EventHandler(MdiClientHandleAssigned);
                    m_mdiClientController.MdiChildActivate -= new EventHandler(ParentFormMdiChildActivate);
                    m_mdiClientController.Layout           -= new LayoutEventHandler(MdiClient_Layout);
                    m_mdiClientController.Dispose();
                }
                FloatWindows.Dispose();
                Panes.Dispose();
                DummyContent.Dispose();

                m_disposed = true;
            }

            base.Dispose(disposing);
        }
コード例 #30
0
ファイル: DockPanel.cs プロジェクト: ekarincodizm/Pojjaman
 /// <exclude/>
 protected override void Dispose(bool disposing)
 {
     if (!m_disposed)
     {
         try
         {
             if (disposing)
             {
                 FloatWindows.Dispose();
                 Panes.Dispose();
                 DummyContent.Dispose();
             }
             m_localWindowsHook.Uninstall();
             m_disposed = true;
         }
         finally
         {
             base.Dispose(disposing);
         }
     }
 }