CodePudding user response:
Three events encapsulated into separate functions, int return value to indicate whether error
Int Func1 ();
Int Func2 ();
Int Func3 - a non-class function ();
//then OnBtn1Clicked (); OnBtn2Clicked (); OnBtn3Clicked (); Respectively, in turn, calls the above three functions for the
//if you want to synthesis a is similar to:
Void OnBtnTotalClick ()
{
Int iRet=Func1 ();
If (iRet==1)
IRet=Func2 ();//Func1 returns successfully executed Func2, Func3 - a non-class function similar processing
}