Example #1
0
        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);
        }
Example #2
0
        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;
        }
Example #3
0
        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);
 }