public OpenFileArgs(string fileName, string fileTypeKey, params object[] file) : this(fileName, fileTypeKey, Substrate.GetHostWindow(), file) { }
public override void PostInitialise() { getDataFolderFunc = Substrate.GetSharedFunction <GetDataFolder>(Constants.SharedFuncGetDataFolder); saveImageFunc = Substrate.GetSharedFunction <SaveImage>(Constants.SharedFuncSaveImage); }
public override void PostInitialise() { writeModelFileFunc = Substrate.GetSharedFunction <WriteModelFile>(Constants.SharedFuncWriteModelFile); writeSoundFileFunc = Substrate.GetSharedFunction <WriteSoundFile>(Constants.SharedFuncWriteSoundFile); }
public override void Initialise() { Settings = LoadSettings <BatchExtractSettings>(); Settings.DataFolder = Settings.DataFolder.PatternReplace(Constants.PluginsFolderToken, Substrate.PluginsDirectory); getModelExtensionFunc = new Lazy <GetModelExtension>(() => Substrate.GetSharedFunction <GetModelExtension>(Constants.SharedFuncGetModelExtension)); }
/// <summary> /// Clears the current plugin's log message from the output pane. /// </summary> protected internal void ClearLog() { logEntries.Clear(); Substrate.ClearLogOutput(this); }
/// <summary> /// Removes this plugin's working status from the status bar. /// </summary> internal protected void ClearWorkingStatus() { WorkingStatus = null; Substrate.RaiseWorkingStatusChanged(this); }
/// <summary> /// Saves the current plugin's settings to the application's settings file. /// </summary> /// <typeparam name="T">The type used to store the settings.</typeparam> /// <param name="settings">The settings.</param> protected void SaveSettings <T>(T settings) where T : new() { Substrate.SavePluginSettings(Key, settings); }