/// <summary>Sends the request off and defines a callback to run when the result is ready.</summary> /// <param name="textReady">The callback to run when the text has been retrieved. /// Note that the callback must check if the result is <see cref="PowerUI.TextPackage.Ok"/>.</param> public void Get(OnTextReady textReady){ TextReady+=textReady; if(string.IsNullOrEmpty(Url)){ GotText(""); return; } // Do we have a file protocol handler available? FileProtocol fileProtocol=File.Handler; if(fileProtocol!=null){ fileProtocol.OnGetText(this,File); } }
/// <summary>Sends the request off and defines a callback to run when the result is ready.</summary> /// <param name="textReady">The callback to run when the text has been retrieved. /// Note that the callback must check if the result is <see cref="PowerUI.TextPackage.Ok"/>.</param> public void Get(OnTextReady textReady) { TextReady += textReady; if (string.IsNullOrEmpty(Url)) { GotText(""); return; } // Do we have a file protocol handler available? FileProtocol fileProtocol = File.Handler; if (fileProtocol != null) { fileProtocol.OnGetText(this, File); } }