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; }
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(); }
private void buttonExRemount_Click(object sender, EventArgs e) { mCmd.excuteCmdRemount(); }