/// <summary> /// Defines the method to be called when the command is invoked. /// </summary> /// <param name="parameter">Data used by the command. If the command /// does not require data to be passed, this object can be set to /// null.</param> public override void Execute(object parameter) { IFilePickerService service = Container.Resolve <IFilePickerService>(); service.Mode = FilePickerMode.Open; service.Filter = "Assemblies (*.dll)|*.dll"; if (service.SelectPath()) { _tryLoadHandlersInAssembly(service.Path); } }
/// <summary> /// Defines the method to be called when the command is invoked. /// </summary> /// <param name="parameter">Data used by the command. If the command /// does not require data to be passed, this object can be set to /// null.</param> public override void Execute(object parameter) { IFilePickerService service = Container.Resolve <IFilePickerService>(); service.Mode = FilePickerMode.Open; service.Filter = "Xml Files (.xml)|*.xml"; if (service.SelectPath()) { _loadFile(service.Path); } }
/// <summary> /// Defines the method to be called when the command is invoked. /// </summary> /// <param name="parameter">Data used by the command.</param> public override void Execute(object parameter) { IFilePickerService service = Container.Resolve <IFilePickerService>(); service.Mode = FilePickerMode.Create; service.DefaultExtension = ".xml"; service.DefaultName = _info.PipelineName; service.Filter = "Xml Files (.xml)|*.xml"; if (service.SelectPath()) { _saveFile(service.Path); } }