public void Execute(Arguments arguments) { int id = arguments.Id.Value; if (WordManager.Switch(id)) { Scripter.Variables.SetVariableValue(arguments.Result.Value, new Language.BooleanStructure(true)); } }
public void Execute(Arguments arguments) { string path = arguments.Path.Value; WordWrapper wordWraper = WordManager.AddWord(); wordWraper.Open(path); Scripter.Variables.SetVariableValue(arguments.Result.Value, new Language.IntegerStructure(wordWraper.Id)); }
public void Close() { try { application.WindowDeactivate -= Application_WindowDeactivate; WordManager.Remove(this); application.Quit( Word.WdSaveOptions.wdDoNotSaveChanges, Word.WdOriginalFormat.wdOriginalDocumentFormat, false); } catch (Exception) { throw; } }
internal WordWrapper() { id = WordManager.GetNextId(); }