public override void _runLoad(string nUrl) { UrlParser urlParser_ = new UrlParser(nUrl); string assemblyPath_ = urlParser_._returnResult(); AssemblyName assemblyName_ = AssemblyName.GetAssemblyName(assemblyPath_); AppDomain appDomain_ = AppDomain.CurrentDomain; Assembly[] assemblies_ = appDomain_.GetAssemblies(); foreach (Assembly i in assemblies_) { if (string.Compare(i.FullName, assemblyName_.FullName) == 0) { mAssembly = i; } } if (null == mAssembly) { this._instanceAssembly(assemblyPath_); string namespace_ = assemblyName_.Name; string pluginClass_ = namespace_ + ".Plugin"; IPlugin plugin_ = mAssembly.CreateInstance(pluginClass_) as IPlugin; if (null != plugin_) { plugin_._startupPlugin(); } } base._runLoad(nUrl); }
public override void _runLoad(string nUrl) { UrlParser urlParser_ = new UrlParser(nUrl); string iconPath_ = urlParser_._returnResult(); mImage = new Icon(iconPath_); base._runLoad(nUrl); }
public override void _runLoad(string nUrl) { UrlParser urlParser_ = new UrlParser(nUrl); string pngPath_ = urlParser_._returnResult(); mImage = Image.FromFile(pngPath_); base._runLoad(nUrl); }
public void _createUrl(string nUrl) { this._initControl(); UrlParser urlParser_ = new UrlParser(nUrl); string path_ = urlParser_._returnResult(); mTextEditorControl.SaveFile(path_); mUrl = nUrl; }
public override void _runSave() { UrlParser urlParser_ = new UrlParser(mUrl); string path_ = urlParser_._returnResult(); mTextEditorControl.SaveFile(path_); base._runSave(); }
public void _openUrl(string nUrl) { mUrl = nUrl; if (null == mTextEditorControl || mTextEditorControl.IsDisposed) { return; } UrlParser urlParser_ = new UrlParser(nUrl); string path_ = urlParser_._returnResult(); mTextEditorControl.LoadFile(path_); }