/// <summary>The execute.</summary> public override void Execute() { // Determine what operations library folder we will open too. var libraryLocation = Path.Combine(SettingsManager.SharedDirectory, MachineDefManager.IsCurrentMachineGroupRouter() ? "router\\OPS" : "mill\\Ops"); // Prompr user to select an operations library(s) var operationsLib = this.fileBrowserService.BrowseForFile(this.Parent, ApplicationStrings.PromptForOperationsLibrary, Globals.FileFilterOperations, libraryLocation, true); if (!operationsLib.Any()) { return; } // Notify our subscribers var payload = new OperationsLibraryLoadMessage { Libraries = operationsLib }; this.eventAggregator.Publish(payload); }
/// <summary> /// The initialize. /// </summary> internal static void Initialize() { FileManager.New(false); MachineDefManager.CreateMillMachineGroup(); }