Beispiel #1
0
 protected void OpenFile()
 {
     try
     {
         TBox.Clear();
         TBox.Text = File.ReadAllText(filename);
     }
     catch (IOException ex)
     {
         MessageBox.Show(ex.Message, "Simple Editor", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
     }
 }
Beispiel #2
0
 private void Butt1_Click(object sender, RoutedEventArgs e)
 {
     TBox.Clear();
 }