예제 #1
0
 //public EHoldMyHand() {
 //    throw new System.Exception();
 //}
 protected override int VisualMain()
 {
     WriteLine(Ux.Agree("w").ToString());
     Ux.Error("Ok");
     WriteInitInfo();
     WriteLine("开始执行");
     Thread.Sleep(3000);
     WriteLine("进度25");
     Progress = 25;
     Thread.Sleep(3000);
     WriteLine("现在可以被停止了");
     Progress  = 50;
     stoppable = true;
     new AdbCommand($"-s 01d1234 reboot")
     .To(OutputPrinter)
     .Execute();
     Thread.Sleep(2500);
     return(0);
 }
예제 #2
0
 protected override int Main()
 {
     Ux.Error("此模块尚未完成,请等待");
     return(ERR);
 }