/// <summary> /// Clean up any resources being used. /// </summary> /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param> protected override void Dispose(bool disposing) { if (disposing && (components != null)) { components.Dispose(); } if (disposing) { GridRelatedControl taskPane = this.GetCustomProperty(MyChildForm.GridRelatedPanelName, false) as GridRelatedControl; if (taskPane != null) { taskPane.Dispose(); } if (this.m_masterGrid != null) { this.m_masterGrid.Dispose(); this.m_masterGrid = null; } if (this.ArchiveDetailForm != null) { this.ArchiveDetailForm.Dispose(); } base.RevertMergeMenu(this.menuStrip1); base.RevertMergeToolStrip(this.pageNavigator1); base.RevertMergeToolStrip(this.toolStrip1); } base.Dispose(disposing); }
/// <summary> /// /// </summary> /// <param name="sender"></param> /// <param name="e"></param> protected override void Form_Load(object sender, System.EventArgs e) { if (base.DesignMode) { return; } if (this.ArchiveDetailForm == null) { this.tsbView.Visible = false; this.tsmView.Visible = false; } else { LoadLayout(); } bool check = m_profile.GetValue("ArchiveSeeForm." + this.Name, "tsbFilterChecked", false); if (check) { tsbFilter_Click(tsbFilter, System.EventArgs.Empty); } this.tsbFilter.Checked = this.MasterGrid.GetFilterRowVisible(); // 创建TaskPane GridRelatedControl gridRelatedControl = null; this.SetGridRelatedPanel(() => { if (gridRelatedControl == null) { gridRelatedControl = new GridRelatedControl(this.MasterGrid.GridName, this.DisplayManager, this); } return(gridRelatedControl); }); this.OnDisplayManagerChanged(); LoadAttachmentInfo(); base.Form_Load(sender, e); }
/// <summary> /// /// </summary> public ArchiveSeeForm(MyGrid masterGrid) { InitializeComponent(); base.MergeMenu(this.menuStrip1); base.MergeToolStrip(this.toolStrip1); base.MergeToolStrip(this.pageNavigator1); m_masterGrid = masterGrid; if (m_masterGrid != null) { m_masterGrid.Dock = DockStyle.Fill; m_masterGrid.FixedHeaderRows.Add(new Xceed.Grid.ColumnManagerRow()); this.splitContainer1.Panel1.Controls.Add(m_masterGrid); } this.tsbView.Image = Feng.Windows.ImageResource.Get("Feng", "Icons.iconDetail.png").Reference; this.tsbRefresh.Image = Feng.Windows.ImageResource.Get("Feng", "Icons.iconRefresh.png").Reference; this.tsbSearch.Image = Feng.Windows.ImageResource.Get("Feng", "Icons.iconSearch.png").Reference; this.tsbFilter.Image = Feng.Windows.ImageResource.Get("Feng", "Icons.iconFilter.png").Reference; this.tsbGroup.Image = Feng.Windows.ImageResource.Get("Feng", "Icons.iconGroup.png").Reference; this.tsbFind.Image = Feng.Windows.ImageResource.Get("Feng", "Icons.iconFind.png").Reference; this.tsbRelatedInfo.Image = Feng.Windows.ImageResource.Get("Feng", "Icons.iconExternalLink.png").Reference; this.tsbAttachment.Image = Feng.Windows.ImageResource.Get("Feng", "Icons.iconAttach.png").Reference; this.tsbExportExcel.Image = Feng.Windows.ImageResource.Get("Feng", "Icons.iconExportExcel.png").Reference; this.tsbPrintPreview.Image = Feng.Windows.ImageResource.Get("Feng", "Icons.iconPrint.png").Reference; this.tsbGenerateReport.Image = Feng.Windows.ImageResource.Get("Feng", "Icons.iconNewReport.png").Reference; this.tsbSetup.Image = Feng.Windows.ImageResource.Get("Feng", "Icons.iconSetup.png").Reference; this.tsmView.Image = Feng.Windows.ImageResource.Get("Feng", "Icons.iconDetail.png").Reference; this.tsmRefresh.Image = Feng.Windows.ImageResource.Get("Feng", "Icons.iconRefresh.png").Reference; this.tsmSearch.Image = Feng.Windows.ImageResource.Get("Feng", "Icons.iconSearch.png").Reference; this.tsmFilter.Image = Feng.Windows.ImageResource.Get("Feng", "Icons.iconFilter.png").Reference; this.tsmGroup.Image = Feng.Windows.ImageResource.Get("Feng", "Icons.iconGroup.png").Reference; this.tsmFind.Image = Feng.Windows.ImageResource.Get("Feng", "Icons.iconFind.png").Reference; this.tsmRelatedInfo.Image = Feng.Windows.ImageResource.Get("Feng", "Icons.iconExternalLink.png").Reference; this.tsmExportExcel.Image = Feng.Windows.ImageResource.Get("Feng", "Icons.iconExportExcel.png").Reference; this.tsmPrintPreview.Image = Feng.Windows.ImageResource.Get("Feng", "Icons.iconPrint.png").Reference; this.tsmGenerateReport.Image = Feng.Windows.ImageResource.Get("Feng", "Icons.iconNewReport.png").Reference; this.tsmSetup.Image = Feng.Windows.ImageResource.Get("Feng", "Icons.iconSetup.png").Reference; this.bindingNavigatorMoveLastItem.Image = Feng.Windows.ImageResource.Get("Feng", "Icons.iconLast.png").Reference; this.bindingNavigatorMoveNextItem.Image = Feng.Windows.ImageResource.Get("Feng", "Icons.iconNext.png").Reference; this.bindingNavigatorMovePreviousItem.Image = Feng.Windows.ImageResource.Get("Feng", "Icons.iconPrevious.png").Reference; this.bindingNavigatorMoveFirstItem.Image = Feng.Windows.ImageResource.Get("Feng", "Icons.iconFirst.png").Reference; if (Feng.Utils.ReflectionHelper.GetObjectValue(typeof(TabbedMdiForm), ServiceProvider.GetService <IApplication>(), "m_twReletedInfos") != null) { this.tsbRelatedInfo.Visible = this.tsmRelatedInfo.Visible = false; } else { this.tsbRelatedInfo.Click += new EventHandler((sender, e) => { GridRelatedControl taskPane = this.GetGridRelatedPanel() as GridRelatedControl; if (taskPane != null) { PositionPersistForm searchForm = new PositionPersistForm(); searchForm.Name = taskPane.Name; searchForm.Text = tsbRelatedInfo.Text; searchForm.Controls.Add(taskPane); taskPane.Dock = DockStyle.Fill; searchForm.ShowDialog(); searchForm.Controls.Remove(taskPane); searchForm.Dispose(); } }); } }
/// <summary> /// /// </summary> /// <param name="sender"></param> /// <param name="e"></param> protected override void Form_Load(object sender, System.EventArgs e) { if (base.DesignMode) { return; } if (this.ArchiveDetailForm == null) { this.tsbView.Visible = false; this.tsmView.Visible = false; } else { LoadLayout(); } bool check = m_profile.GetValue("ArchiveSeeForm." + this.Name, "tsbFilterChecked", false); if (check) { tsbFilter_Click(tsbFilter, System.EventArgs.Empty); } this.tsbFilter.Checked = this.MasterGrid.GetFilterRowVisible(); // ����TaskPane GridRelatedControl gridRelatedControl = null; this.SetGridRelatedPanel(() => { if (gridRelatedControl == null) { gridRelatedControl = new GridRelatedControl(this.MasterGrid.GridName, this.DisplayManager, this); } return gridRelatedControl; }); this.OnDisplayManagerChanged(); LoadAttachmentInfo(); base.Form_Load(sender, e); }