Cancel() public method

public Cancel ( ) : void
return void
Exemplo n.º 1
0
 protected void OnCancel(object sender, EventArgs e)
 {
     if (installing)
     {
         if (Services.AskQuestion(Catalog.GetString("Are you sure you want to cancel the installation?")))
         {
             installMonitor.Cancel();
         }
     }
     else
     {
         Respond(ResponseType.Cancel);
     }
 }
Exemplo n.º 2
0
 protected virtual void OnButtonCancelClicked(object sender, System.EventArgs e)
 {
     if (installing)
     {
         if (Services.AskQuestion(Catalog.GetString("Are you sure you want to cancel the installation?")))
         {
             installMonitor.Cancel();
         }
     }
     else
     {
         Respond(Gtk.ResponseType.Cancel);
     }
 }