Пример #1
0
        public override int Main(Dictionary <string, object> args)
        {
            var warnMsg = CoreLib.Current.Languages.Get("EObsoleteAndTryImageHelper");

            Ux.Warn(warnMsg);
            return(ERR);
        }
Пример #2
0
        protected override int Main()
        {
            var warnMsg = CoreLib.Current.Languages.Get("EFlashRecoveryObsoleteMsg");

            Ux.Warn(warnMsg);
            return(ERR);
        }
Пример #3
0
 protected override int VisualMain()
 {
     if (TargetDevice is NetDevice)
     {
         Ux.Message(Res("EGCMAlreadyEnableNetDebugging"));
         return(OK);
     }
     else if (TargetDevice is UsbDevice usbDevice)
     {
         WriteInitInfo();
         WriteRunning();
         usbDevice.OpenNetDebugging(5555, true);
         return(OK);
     }
     Ux.Warn(Res("EGCMNotSupported"));
     return(ERR);
 }