private void SetIdAndVal(string id, string val) { string Decoded = WebServer.DecodeUrlChars(val); id = id.ToLower().Trim(); int val_int = 10; val_int = AppHelper.StringToint(val, 10); switch (id) { case "com": { if (val == "msgbx") { this.ComType = RemoteCommandType.MessageBox; } else if (val == "procstr" || val == "proc") { this.ComType = RemoteCommandType.process; } else if (val == "closproc" || val == "closeprocess") { this.ComType = RemoteCommandType.CloseProcess; } else if (val == "closallproc" || val == "closeallprocess") { this.ComType = RemoteCommandType.CloseAllProcess; } else if (val == "mvcrs" || val == "movecursor") { this.ComType = RemoteCommandType.MoveMouse; } else if (val == "msclk" || val == "mouseclick") { this.ComType = RemoteCommandType.MouseClick; } else if (val == "mute" || val == "mutesys") { this.ComType = RemoteCommandType.MuteSystemSound; } else if (val == "msrclk" || val == "mouseright") { this.ComType = RemoteCommandType.MouseRightClick; } else if (val == "prntscr" || val == "printscreen") { this.ComType = RemoteCommandType.PrintScreenShot; } else if (val == "ls" || val == "list") { this.ComType = RemoteCommandType.LS; } else if (val == "hdcl" || val == "hidecl") { this.ComType = RemoteCommandType.HideClient; } else if (val == "shcl" || val == "showcl") { this.ComType = RemoteCommandType.ShowClient; } break; } case "mbtitle": this.MessageBoxCap = Decoded; break; case "frm": this.formvisible = AppHelper.BoolTruefalsefromString(Decoded); break; case "dirpath": case "directorypath": case "drpth": this.DirPath = Decoded; break; case "crsx": { this.X = val_int;; break; } case "close": { this.closeMessage = AppHelper.BoolTruefalsefromString(Decoded); break; } case "crsy": { this.Y = val_int;; break; } case "procnm": this.ProcessName = val; break; case "proctype": this.ViewImageProcess = (val == "pic"); break; case "procpar": this.NoProcessPar = false; this.ProcessPar = Decoded; break; case "shftdir": this.CursorGoingBack = (val.Contains("back")); break; } }