/// <summary> /// Click the 'Split designations' button and set the desgination grid's rows. This will /// split the designation on the currently selected grid row. The amount between the designations /// will be split evenly. /// </summary> /// <param name="designations">Table where each row represents a designation to add. /// Each row is a mapping of the column captions to the single row's desired values.</param> /// <param name="evenly">Flag indicating whether or not to split the designations evenly.</param> public static void SplitDesignations(Table designations, bool evenly) { OpenTab("Revenue"); ClickButton("Split designations", "BatchRevenueSplitDesignations"); DesignationsDialog.SplitDesignations(designations, evenly); OK(); }
/// <summary> /// Split pledge evenly among the provided designations. /// </summary> /// <param name="designations">Table where each row represents a designation to add. /// A row is a mapping of the 'Split designations' grid's column captions to the row's values.</param> public static void SplitDesignationsEvenly(Table designations) { var dialogId = GetDialogId(DialogIds); WaitClick(getXLinkByAction(dialogId, "SPLITSACTION")); DesignationsDialog.SplitDesignationsEvenly(designations); OK(); }