示例#1
0
        public static void OpenNonOpenGraphsAndTables(bool bGraphs, bool bTables, IComparer comparer)
        {
            ArrayList arr = new ArrayList();

            if (bGraphs)
            {
                WindowCommands.GetNonOpenGraphDocuments(arr);
            }
            if (bTables)
            {
                WindowCommands.GetNonOpenTables(arr);
            }
            arr.Sort(comparer);

            foreach (object tab in arr)
            {
                if (tab is Data.DataTable)
                {
                    Current.ProjectService.OpenOrCreateWorksheetForTable((Data.DataTable)tab);
                }
                else if (tab is Graph.Gdi.GraphDocument)
                {
                    Current.ProjectService.OpenOrCreateGraphForGraphDocument((Graph.Gdi.GraphDocument)tab);
                }
            }
        }
示例#2
0
 public override void Run()
 {
     WindowCommands.CloseAllGraphsAndTables();
     WindowCommands.OpenNonOpenGraphsAndTables(true, true,
                                               new WindowCommands.GraphTableMultiComparer(
                                                   new WindowCommands.GraphTableTypeComparer(),
                                                   new WindowCommands.GraphTableCreationDateComparer()
                                                   ));
 }
示例#3
0
 public override void Execute(object parameter)
 {
     WindowCommands.CloseAllGraphsAndTables();
     WindowCommands.OpenNonOpenGraphsAndTables(true, true,
                                               new WindowCommands.GraphTableMultiComparer(
                                                   new WindowCommands.GraphTableTypeComparer(),
                                                   new WindowCommands.GraphTableNameComparer()
                                                   ));
 }
示例#4
0
 public override void Run()
 {
     WindowCommands.CloseAllGraphsAndTables();
     WindowCommands.OpenNonOpenGraphsAndTables(true, true,
                                               new WindowCommands.GraphTableNameComparer());
 }
示例#5
0
 public override void Run()
 {
     WindowCommands.OpenNonOpenGraphsAndTables(true, true,
                                               new WindowCommands.GraphTableCreationDateComparer());
 }
示例#6
0
 public override void Execute(object parameter)
 {
     WindowCommands.CloseAllGraphsAndTables();
     WindowCommands.OpenNonOpenGraphsAndTables(true, true,
                                               new WindowCommands.GraphTableCreationDateComparer());
 }