private void ReadForm(RequestActionEventArgs args) { List <KeyValuePair <string, string> > lines = Utility.SplitLines(args.Data, CurrentContext, localSession); string clear = Utility.GetAndRemoveParameter(lines, "clear"); bool clearBool = false; if (!String.IsNullOrEmpty(clear) && bool.TryParse(clear, out clearBool) && clearBool == true) { DynamicsCustomerRecord customerRecord = (DynamicsCustomerRecord)localSession.Customer.DesktopCustomer; customerRecord.ClearReplaceableParameter(this.ApplicationName); } ReadForm(); }
private void ClearData(RequestActionEventArgs args) { DynamicsCustomerRecord customerRecord = (DynamicsCustomerRecord)localSession.Customer.DesktopCustomer; customerRecord.ClearReplaceableParameter(this.ApplicationName); }