Exemplo n.º 1
0
 public void LoadFromFileForChanging(string fileName)
 {
     string[] fileLines = File.ReadAllLines(fileName);
     SetRTBCode(fileLines);
     StartCodeChanging?.Invoke(null, null);
     RTBCode.IsReadOnly = false;
     RTBCode.Cursor     = Cursors.IBeam;
 }
Exemplo n.º 2
0
 private void RTBCode_MouseDoubleClick(object sender, MouseButtonEventArgs e)
 {
     if (RTBCode.IsReadOnly)
     {
         SetRTBCode(Lines);
         StartCodeChanging?.Invoke(sender, e);
         RTBCode.IsReadOnly = false;
         RTBCode.Cursor     = Cursors.IBeam;
     }
     else
     {
         EndCodeChanging?.Invoke(sender, e);
     }
 }