|
|
|
@ -256,23 +256,6 @@ namespace ICSharpCode.SharpDevelop.Project.Dialogs |
|
|
|
return true; |
|
|
|
return true; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public void SaveFile(IProject project, string filename, string content, bool showFile) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
FileProjectItem newItem = new FileProjectItem(project, ItemType.Compile); |
|
|
|
|
|
|
|
newItem.Include = filename; |
|
|
|
|
|
|
|
ProjectService.AddProjectItem(project, newItem); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
StreamWriter sr = File.CreateText(filename); |
|
|
|
|
|
|
|
sr.Write(StringParser.Parse(content, new string[,] { {"PROJECT", ((TextBox)ControlDictionary["nameTextBox"]).Text}, {"FILE", Path.GetFileName(filename)}})); |
|
|
|
|
|
|
|
sr.Close(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (showFile) { |
|
|
|
|
|
|
|
string longfilename = Path.Combine(ProjectSolution, StringParser.Parse(filename, new string[,] { {"PROJECT", ((TextBox)ControlDictionary["nameTextBox"]).Text}})); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
FileService.OpenFile(longfilename); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public string NewProjectLocation; |
|
|
|
public string NewProjectLocation; |
|
|
|
public string NewCombineLocation; |
|
|
|
public string NewCombineLocation; |
|
|
|
|
|
|
|
|
|
|
|
|