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); } } }
public override void Run() { WindowCommands.CloseAllGraphsAndTables(); WindowCommands.OpenNonOpenGraphsAndTables(true, true, new WindowCommands.GraphTableMultiComparer( new WindowCommands.GraphTableTypeComparer(), new WindowCommands.GraphTableCreationDateComparer() )); }
public override void Execute(object parameter) { WindowCommands.CloseAllGraphsAndTables(); WindowCommands.OpenNonOpenGraphsAndTables(true, true, new WindowCommands.GraphTableMultiComparer( new WindowCommands.GraphTableTypeComparer(), new WindowCommands.GraphTableNameComparer() )); }
public override void Run() { WindowCommands.CloseAllGraphsAndTables(); WindowCommands.OpenNonOpenGraphsAndTables(true, true, new WindowCommands.GraphTableNameComparer()); }
public override void Run() { WindowCommands.OpenNonOpenGraphsAndTables(true, true, new WindowCommands.GraphTableCreationDateComparer()); }
public override void Execute(object parameter) { WindowCommands.CloseAllGraphsAndTables(); WindowCommands.OpenNonOpenGraphsAndTables(true, true, new WindowCommands.GraphTableCreationDateComparer()); }