ErrorWindow.Show_button_abort C# (CSharp) Method

Show_button_abort() public method

public Show_button_abort ( ) : void
return void
    public void Show_button_abort()
    {
        button_abort.Show();
    }

Usage Example

Beispiel #1
0
    //if user doesn't touch the platform after pressing "finish", sometimes it gets waiting a Read_event
    //now the event finishes ok, and next will be ok
    //
    //not for multiChronopic:
    private void checkFinishTotally(object o, EventArgs args)
    {
        if(currentEventExecute.TotallyFinished)
            LogB.Information("totallyFinished");
        else {
            LogB.Information("NOT-totallyFinished ");
            errorWin = ErrorWindow.Show(Catalog.GetString("Please, touch the contact platform for full finishing.") + "\n" +
                    Catalog.GetString("Then press Accept") + "\n");
            errorWin.Button_accept.Clicked -= new EventHandler(checkFinishTotally);
            errorWin.Button_accept.Clicked += new EventHandler(checkFinishTotally);

            //abort test when there are problems with USB disconnected
            errorWin.Show_button_abort();
            errorWin.Button_abort.Clicked += new EventHandler(abortTest);
        }
    }