예제 #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);
        }
예제 #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;
        }
예제 #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);
        }
예제 #4
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);
 }