public static Process CreateProcessScrcpy(ScrcpyArguments arguments, string serial = "") { string strArguments = arguments.ToString(); if (!string.IsNullOrEmpty(serial)) { // set serial strArguments += string.Format(Constants.SCRCPY_ARG_SERIAL, serial); } return(CreateProcessScrcpy(strArguments)); }
public object Clone() { ScrcpyArguments clone = new ScrcpyArguments(this._cropWidth, this._cropHeight, this._cropX, this._cropY); clone.NoControl = this.NoControl; clone.TurnScreenOff = this.TurnScreenOff; clone.MaxSize = this.MaxSize; clone.Bitrate = this.Bitrate; //clone.Serial = this.Serial; return(clone); }