private RadPageViewItemPage GetRadPage(CatalogDef catalog) { RadPageViewItemPage page = new RadPageViewItemPage(); page.Text = catalog.Text; Control ui = GetUserControl(catalog); if (ui != null) { ui.Dock = DockStyle.Fill; page.Controls.Add(ui); } if (catalog is ExtractingCatalogDef) { CatalogTreeView ct = new CatalogTreeView(ui as RadTreeView, catalog, _wDef, chkHasToDb.Checked, dateTimePicker1.Value); _catalogs.Add(catalog.ClassString, ct); } //else if (catalog is SubProductCatalogDef) //{ // UCOperationBar oprBar = new UCOperationBar(); // oprBar.btnOpenFiles.Tag = catalog.ClassString; // oprBar.Dock = DockStyle.Top; // oprBar.btnOpenFiles.Click += new EventHandler(oprBar_Click); // oprBar.tsCBGroup.Tag = catalog.ClassString; // page.Controls.Add(oprBar); // _catalogs.Add(catalog.ClassString, new CatalogListView(this, catalog, page, ui as RadListView)); // InitOprBarGroupItem(oprBar.tsCBGroup); // oprBar.tsCBGroup.SelectedIndexChanged += new EventHandler(tsCBGroup_SelectedIndexChanged); //} return(page); }
/// <summary> /// /// </summary> /// <param name="catalog">目录定义</param> /// <returns></returns> private RadPageViewItemPage GetRadPage(CatalogDef catalog) { RadPageViewItemPage page = new RadPageViewItemPage(); page.Text = catalog.Text; Control ui = GetUserControl(catalog); if (ui != null) { ui.Dock = DockStyle.Fill; page.Controls.Add(ui); } if (catalog is ExtractingCatalogDef) { _catalogs.Add(catalog.ClassString, new CatalogTreeView(this, catalog, page, ui as RadTreeView, this.Font)); } else if (catalog is SubProductCatalogDef) { UCOperationBar oprBar = new UCOperationBar(); oprBar.btnOpenFiles.Tag = catalog.ClassString; oprBar.Dock = DockStyle.Top; oprBar.tsBtStrategy.Click += new EventHandler(tsBtStrategy_Click); oprBar.btnOpenFiles.Click += new EventHandler(oprBar_Click); oprBar.tsCBGroup.Tag = catalog.ClassString; page.Controls.Add(oprBar); _catalogs.Add(catalog.ClassString, new CatalogListView(this, catalog, page, ui as RadListView)); InitOprBarGroupItem(oprBar.tsCBGroup); oprBar.tsCBGroup.SelectedIndexChanged += new EventHandler(tsCBGroup_SelectedIndexChanged); } return(page); }
public CatalogListView(IWorkspace wks, CatalogDef catalogDef, RadPageViewItemPage uiPage, RadListView listView) : base(wks, catalogDef, uiPage) { _listView = listView; LoadCatalogItems(); _listView.MouseUp += new System.Windows.Forms.MouseEventHandler(_listView_MouseUp); InitDelegate(); }
public Catalog(IWorkspace wks, CatalogDef catalogDef, RadPageViewItemPage uiPage) { _wks = wks; _definition = catalogDef; _uiPage = uiPage; _menuStrip.RenderMode = ToolStripRenderMode.System; InitOperations(); }
public CatalogTreeView(RadTreeView treeView, CatalogDef catalog, WorkspaceDef wDef, bool showHasToDb, DateTime date) { this._treeView = treeView; _treeView.AutoCheckChildNodes = true; this.wDef = wDef; this._definition = catalog; _showHasToDb = showHasToDb; _date = date; LoadTodayExtractResult(_date); }
private Control GetUserControl(CatalogDef catalog) { RadTreeView tv = new RadTreeView(); tv.Tag = catalog; tv.ShowLines = true; tv.HideSelection = false; tv.Font = this.Font; return(tv); }
public CatalogTreeView(IWorkspace wks, CatalogDef catalogDef, RadPageViewItemPage uiPage, RadTreeView treeView, Font font) : base(wks, catalogDef, uiPage) { _font = font; _treeView = treeView; //LoadTodayExtractResult(MifEnvironment.OrbitDateTime); LoadTodayExtractResult(DateTime.Now); _treeView.MouseUp += new System.Windows.Forms.MouseEventHandler(_treeView_MouseUp); _treeView.NodeExpandedChanged += new RadTreeView.TreeViewEventHandler(_treeView_NodeExpandedChanged); }
private Control GetUserControl(CatalogDef catalog) { if (catalog is ExtractingCatalogDef) { return(GetExtractingCatalogUI(catalog as ExtractingCatalogDef)); } else if (catalog is SubProductCatalogDef) { return(GetSubProductCatalogUI(catalog as SubProductCatalogDef)); } return(null); }