示例#1
0
        public FormControl(Cmd cmd)
        {
            mCmd = cmd;
            InitializeComponent();
            mSyn = SynchronizationContext.Current;
            mCmd.excuteCmdRemount();
            mCmd.excuteCmdPush(Enums.Path.PATH_SRC + @"screen", Enums.AndroidPath.SYSTEM_BIN + "screen", Enums.LinuxPermission.RWX_RWX_RWX);

            mClient = new UsbClient(cmd);
            iDiv    = 2;
        }
示例#2
0
        public ScreenCtrl(Cmd cmd, PictureBox picture)
        {
            mCmd    = cmd;
            mScreen = picture;
            mSyn    = SynchronizationContext.Current;
            mCmd.excuteCmdRemount();
            mCmd.excuteCmdPush(Enums.Path.PATH_SRC + @"screen", Enums.AndroidPath.SYSTEM_BIN + "screen", Enums.LinuxPermission.RWX_RWX_RWX);

            mClient   = new UsbClient(cmd);
            iDiv      = 2;
            mWidth    = 720;
            mHeight   = 1280;
            mXPercent = (float)mWidth / (float)picture.Width;
            mYPercent = (float)mHeight / (float)picture.Height;
            setMouseFunc();
        }
示例#3
0
 private void buttonExRemount_Click(object sender, EventArgs e)
 {
     mCmd.excuteCmdRemount();
 }