Esempio n. 1
0
        private Action InitControlFgExp(string group)
        {
            ResourceManager resources = new ResourceManager("RSMPS.FBudgetMain_dynamic", Assembly.GetExecutingAssembly());
            var             fg        = new C1.Win.C1FlexGrid.C1FlexGrid();

            ((System.ComponentModel.ISupportInitialize)(fg)).BeginInit();

            fg.ColumnInfo       = resources.GetString("fgExp.ColumnInfo");
            fg.Dock             = System.Windows.Forms.DockStyle.Fill;
            fg.DrawMode         = C1.Win.C1FlexGrid.DrawModeEnum.OwnerDraw;
            fg.Location         = new System.Drawing.Point(0, 31);
            fg.Margin           = new System.Windows.Forms.Padding(4, 4, 4, 4);
            fg.Name             = "fg" + group + "Exp";
            fg.Rows.Count       = 2;
            fg.Rows.DefaultSize = 17;
            fg.Size             = new System.Drawing.Size(1284, 247);
            fg.StyleInfo        = resources.GetString("fgExp.StyleInfo");
            fg.TabIndex         = 2;
            fg.BeforeEdit      += new C1.Win.C1FlexGrid.RowColEventHandler((o, e) => { fgExp_BeforeEdit(group, o, e); });
            fg.AfterEdit       += new C1.Win.C1FlexGrid.RowColEventHandler((o, e) => { fgExp_AfterEdit(group, o, e); });
            fg.OwnerDrawCell   += new C1.Win.C1FlexGrid.OwnerDrawCellEventHandler((o, e) => { fgExp_OwnerDrawCell(group, o, e); });

            fgExpList.Add(group, fg);
            //pnlExpForGroup(group).Controls.Add(fg);
            return(() => fg.EndInit());
        }
Esempio n. 2
0
        private Action InitControlFg(string group)
        {
            ResourceManager resources = new ResourceManager("RSMPS.FBudgetMain_dynamic", Assembly.GetExecutingAssembly());
            var             fg        = new C1.Win.C1FlexGrid.C1FlexGrid();

            ((System.ComponentModel.ISupportInitialize)(fg)).BeginInit();
            fg.ColumnInfo       = resources.GetString("fg.ColumnInfo");
            fg.ContextMenuStrip = this.contextMenuStrip1;
            fg.Dock             = System.Windows.Forms.DockStyle.Fill;
            fg.Location         = new System.Drawing.Point(0, 0);
            fg.Name             = "fg" + group;
            fg.Rows.Count       = 10;
            fg.Rows.DefaultSize = 17;
            fg.Size             = new System.Drawing.Size(961, 504);
            fg.StyleInfo        = resources.GetString("fg.StyleInfo");
            fg.TabIndex         = 3;
            fg.BeforeEdit      += new RowColEventHandler((s, e) => this.fg_BeforeEdit(group, s, e));
            fg.AfterEdit       += new RowColEventHandler((s, e) => this.fg_AfterEdit(group, s, e));
            fg.MouseDown       += new MouseEventHandler((s, e) => this.fg_MouseDown(group, s, e));
            fgList.Add(group, fg);
            //pnlBudForGroup(group).Controls.Add(fg);
            return(() => fg.EndInit());
        }