Пример #1
0
 internal Project(ISession session, XmlElement xmlElement) : base(session, xmlElement)
 {
     _contentClasses = new ContentClasses.ContentClasses(this);
     _pages          = new Pages.Pages(this);
     LoadXml();
     Init();
 }
Пример #2
0
        public frmEntity() : base()
        {
            StartPosition = FormStartPosition.Center;
            this.Text     = "New Entity";

            this.Size = new Vector2(545, 374);

            if (Helper.NotDesktop)
            {
                ShowMenu = true;
                Pages    = new TileControl();
            }
            else
            {
                Pages = new RibbonControl();
            }
            var page = new RibbonPage("Entity");

            page.AddRibbonGroups(new RibbonGroup("Actions", new RibbonButton[] {
                new RibbonButton("Save")
                {
                    Icon = Images.x32x32Save
                },
                new RibbonButton("Close")
                {
                    Icon = Images.x32x32Close, ItemClick = (sender) => {
                        this.Close();
                    }
                }
            }));
            Pages.AddRibbonPages(page);

            AppendChild((Control)Pages);
        }
Пример #3
0
        public DataTable FillPages(IPages ipages)
        {
            string    sqlCommand = "";
            DbCommand dbCommand;
            DataTable dt = new DataTable();
            Database  db = DatabaseFactory.CreateDatabase("SUPPORTTICKETS");

            sqlCommand = "proPagesSelect";
            dbCommand  = db.GetStoredProcCommand(sqlCommand);
            db.AddInParameter(dbCommand, "@FK_PageModule", DbType.Int64, ipages.FK_PageModule);
            //db.AddInParameter(dbCommand, "@FK_Users", DbType.Int64, ipages.FK_User);
            //db.AddInParameter(dbCommand, "@FK_Client", DbType.Int64, ipages.FK_Client);
            try
            {
                DataSet ds = new DataSet();
                ds = db.ExecuteDataSet(dbCommand);
                if (ds.Tables.Count > 0)
                {
                    dt = ds.Tables[0];
                }
                return(dt);
            }
            catch (Exception e)
            {
                throw;
            }
        }
Пример #4
0
        private void InitializePages()
        {
            pages = new Pages();

            foreach (var page in pageData)
            {
                IPage newPage = new Page(page.Key);
                pages.AddPage(newPage);
                AddPageElements(page.Key);
                AddPageTitle(page.Key);
                AddPageUrl(page.Key);
            }

            WebPageConsumer.Pages = pages;
        }
        public static IPages Setup()
        {
            //Build new Container
            DIContainer container = new DIContainer();

            //Register our interfaces
            container.Register <IEmployeeDashboard, EmployeeDashboardV3>();
            container.Register <IPunchComponent, PunchComponent>();
            container.Register <IPages, Pages>();

            //resolve these interfaces
            IPages pages = container.Resolve <IPages>();

            return(pages);
        }
Пример #6
0
 public PagesController(IPages pages)
 {
     this.pages = pages;
 }
Пример #7
0
 public ShowLastNewsComponents(IPages pages)
 {
     this.pages = pages;
 }
Пример #8
0
 internal Project(ISession session, Guid guid) : base(session, guid)
 {
     _contentClasses = new ContentClasses.ContentClasses(this);
     _pages          = new Pages.Pages(this);
     Init();
 }
Пример #9
0
 public ShowSliderComponents(IPages pages)
 {
     this.pages = pages;
 }
Пример #10
0
 public PageManager(IPages pagesRepository)
 {
     Repo = pagesRepository;
 }
Пример #11
0
 public PagesController(IPages pagess, IPageGroup pageGroup)
 {
     this.pagess    = pagess;
     this.pageGroup = pageGroup;
 }
Пример #12
0
        public frmHub() : base()
        {
            this.Text = "Hub - ExpressCraft Demo";

            if (Helper.NotDesktop)
            {
                ShowMenu = true;
                Pages    = new TileControl();
            }
            else
            {
                Pages = new RibbonControl();
            }

            var page = new RibbonPage("Grid View");

            View = new GridView(false);
            View.SetBoundsFull();
            View.ShowFindPanel();
            View.UseEditForm = false;

            page.AddRibbonGroups(
                new RibbonGroup("Actions",
                                new RibbonButton("Add Row")
            {
                Icon      = Images.x32x32New,
                ItemClick = (sender) => {
                    if (View.DataSource == null)
                    {
                        new MessageBoxForm("Please add a column", MessageBoxLayout.Information).ShowDialog();
                    }
                    else
                    {
                        AddRow();
                    }
                }
            },
                                new RibbonButton("Add 1000 Row's")
            {
                BeginGroup = true,
                Icon       = Images.x32x32New,
                ItemClick  = (sender) => {
                    if (View.DataSource == null)
                    {
                        new MessageBoxForm("Please add a column", MessageBoxLayout.Information).ShowDialog();
                    }
                    else
                    {
                        View.DataSource.BeginDataUpdate();
                        for (int i = 0; i < 1000; i++)
                        {
                            AddRow();
                        }
                        View.DataSource.EndDataUpdate();
                    }
                }
            },
                                new RibbonButton("Add String Column")
            {
                Icon       = Images.x32x32Text,
                BeginGroup = true,
                ItemClick  = (sender) => {
                    AddColumn(DataType.String);
                }
            },
                                new RibbonButton("Add Date Column")
            {
                BeginGroup = true,
                Icon       = Images.x32x32Date,
                ItemClick  = (sender) => {
                    AddColumn(DataType.DateTime);
                }
            },
                                new RibbonButton("Add Integer Column")
            {
                BeginGroup = true,
                Icon       = Images.x32x32Data,
                ItemClick  = (sender) => {
                    AddColumn(DataType.Integer);
                }
            },
                                new RibbonButton("Add Long Column")
            {
                BeginGroup = true,
                Icon       = Images.x32x32Data,
                ItemClick  = (sender) => {
                    AddColumn(DataType.Long);
                }
            },
                                new RibbonButton("Add Decimal Column")
            {
                BeginGroup = true,
                Icon       = Images.x32x32Currency,
                ItemClick  = (sender) => {
                    AddColumn(DataType.Decimal);
                }
            },
                                new RibbonButton("Auto Column Width")
            {
                Icon       = Images.x32x32Columns,
                BeginGroup = true,
                ItemClick  = (sender) => {
                    if (View.ColumnAutoWidth)
                    {
                        View.ColumnAutoWidth = false;
                        sender.Caption       = "Auto Column Width";
                    }
                    else
                    {
                        View.ColumnAutoWidth = true;
                        sender.Caption       = "Manual Column Width";
                    }

                    View.RenderGrid();
                }
            }));

            Pages.AddRibbonPages(page);
        }