Exemple #1
0
 public OpenFileArgs(string fileName, string fileTypeKey, params object[] file)
     : this(fileName, fileTypeKey, Substrate.GetHostWindow(), file)
 {
 }
Exemple #2
0
 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));
 }
Exemple #5
0
 /// <summary>
 /// Clears the current plugin's log message from the output pane.
 /// </summary>
 protected internal void ClearLog()
 {
     logEntries.Clear();
     Substrate.ClearLogOutput(this);
 }
Exemple #6
0
 /// <summary>
 /// Removes this plugin's working status from the status bar.
 /// </summary>
 internal protected void ClearWorkingStatus()
 {
     WorkingStatus = null;
     Substrate.RaiseWorkingStatusChanged(this);
 }
Exemple #7
0
 /// <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);
 }