public void ShowPreview() { var foldChangeGrid = OwnedForms.OfType <FoldChangeGrid>().FirstOrDefault(); if (null != foldChangeGrid) { foldChangeGrid.Activate(); return; } foldChangeGrid = new FoldChangeGrid(); foldChangeGrid.SetBindingSource(new FoldChangeBindingSource(GroupComparisonModel)); foldChangeGrid.Show(this); }
public static FoldChangeGrid ShowFoldChangeGrid(DockPanel dockPanel, Rectangle rcFloating, IDocumentContainer documentContainer, string groupComparisonName) { var grid = FindForm<FoldChangeGrid>(documentContainer, groupComparisonName); if (grid != null) { grid.Activate(); return grid; } grid = new FoldChangeGrid(); grid.SetBindingSource(FindOrCreateBindingSource(documentContainer, groupComparisonName)); grid.Show(dockPanel, rcFloating); return grid; }
public static FoldChangeGrid ShowFoldChangeGrid(DockPanel dockPanel, Rectangle rcFloating, IDocumentContainer documentContainer, string groupComparisonName) { var grid = FindForm <FoldChangeGrid>(documentContainer, groupComparisonName); if (grid != null) { grid.Activate(); return(grid); } grid = new FoldChangeGrid(); grid.SetBindingSource(FindOrCreateBindingSource(documentContainer, groupComparisonName)); grid.Show(dockPanel, rcFloating); return(grid); }
public void ShowPreview() { var foldChangeGrid = OwnedForms.OfType<FoldChangeGrid>().FirstOrDefault(); if (null != foldChangeGrid) { foldChangeGrid.Activate(); return; } foldChangeGrid = new FoldChangeGrid(); foldChangeGrid.SetBindingSource(new FoldChangeBindingSource(GroupComparisonModel)); foldChangeGrid.Show(this); }