public void loadfile(string name) { EditorWindow ew = new EditorWindow(name, solution); string data = solution.loadfile(name, ew); ew.EditorClosing += new EditorWindow.EditorClosingHandler(ew_Closing); ew.settext(data); ew.MdiParent = this; ew.DockPanel = this.dockPanel; ew.Show(); editors.Add(name, ew); }
public void loadfile(string name) { EditorWindow ew = new EditorWindow(name,solution); string data = solution.loadfile(name,ew); ew.EditorClosing += new EditorWindow.EditorClosingHandler(ew_Closing); ew.settext(data); ew.MdiParent = this; ew.DockPanel = this.dockPanel; ew.Show(); editors.Add(name, ew); }
public string loadfile(string name, EditorWindow ew = null) { StreamReader sr = new StreamReader(details.filefolder + System.IO.Path.DirectorySeparatorChar + name); string data = sr.ReadToEnd(); sr.Close(); if (ew != null) { ew.settext(data); ewlink.Add(name, ew); } return(data); }
public string loadfile(string name,EditorWindow ew=null) { StreamReader sr = new StreamReader(details.filefolder + System.IO.Path.DirectorySeparatorChar + name); string data = sr.ReadToEnd(); sr.Close(); if (ew != null) { ew.settext(data); ewlink.Add(name, ew); } return data; }