示例#1
0
 void ButtonClicked(object s, EventArgs a)
 {
     using (TextEditorDialog dlg = new TextEditorDialog()) {
         dlg.TransientFor = this.Toplevel as Gtk.Window;
         dlg.Text         = entry.Text;
         if (dlg.Run() == (int)ResponseType.Ok)
         {
             entry.Text = dlg.Text;
             TextChanged(null, null);
         }
     }
 }
示例#2
0
 void ButtonClicked(object s, EventArgs a)
 {
     using (TextEditorDialog dlg = new TextEditorDialog ()) {
         dlg.TransientFor = this.Toplevel as Gtk.Window;
         dlg.Text = entry.Text;
         if (dlg.Run () == (int) ResponseType.Ok) {
             entry.Text = dlg.Text;
             TextChanged (null, null);
         }
     }
 }