2 using System.Collections.Generic;
6 using System.Windows.Controls;
28 _textbox.VerticalScrollBarVisibility = ScrollBarVisibility.Auto;
29 _textbox.HorizontalScrollBarVisibility = ScrollBarVisibility.Auto;
30 _textbox.AcceptsReturn =
true;
31 _textbox.AcceptsTab =
true;
45 private Boolean
loadFile(
string filename, ref String text)
49 FileInfo fi =
new FileInfo(filename);
55 using (StreamReader sr =
new StreamReader(filename))
57 text = sr.ReadToEnd();
64 text =
"Could not find file: " + filename;
70 text =
"Could not load file: " + filename;
77 FileInfo fi =
new FileInfo(filename);
85 using (StreamWriter sw =
new StreamWriter(filename,
false))
87 sw.Write(_textbox.Text);
101 String[] filepath = filename.Split(
'\\');
void _textbox_TextChanged(object sender, TextChangedEventArgs e)
void setFilename(string filename)
void getModifiedTime(string filename)
Boolean loadFile(string filename, ref String text)
void SaveText(string filename)