public void AddAgendaItemOldStyleWithPrice(
            OtherEventTypeAgendaAndCFManager.FieldType type,
            string name,
            double standardPrice)
        {
            this.ClickAddAgendaItemOld();
            this.OldAGAndCFMgr.SetQuestionDescription(name);

            if (UIUtil.DefaultProvider.IsElementPresent(OtherEventTypeAgendaAndCFManager.Locator.FeeTypeTableLocator, LocateBy.Id))
            {
                OldAGAndCFMgr.SetMembershipFeeType(OtherEventTypeAgendaAndCFManager.FeeType.OneTimeFee);
            }

            this.OldAGAndCFMgr.SetTypeWithDefaultsOld(type);

            if (type == OtherEventTypeAgendaAndCFManager.FieldType.CheckBox ||
                type == OtherEventTypeAgendaAndCFManager.FieldType.RadioButton ||
                type == OtherEventTypeAgendaAndCFManager.FieldType.Dropdown ||
                type == OtherEventTypeAgendaAndCFManager.FieldType.FileUpload ||
                type == OtherEventTypeAgendaAndCFManager.FieldType.AlwaysSelected)
            {
                OldAGAndCFMgr.SetRegularPrice(standardPrice);
            }

            UIUtil.DefaultProvider.WaitForAJAXRequest();

            OldAGAndCFMgr.SaveAndCloseAgendaOrCFItem();
            UIUtil.DefaultProvider.SwitchToMainContent();
            UIUtil.DefaultProvider.WaitForPageToLoad();
        }
 public void AddCustomFieldOldStyle(OtherEventTypeAgendaAndCFManager.FieldType type, string name)
 {
     this.ClickAddCustomFieldOld();
     this.OldAGAndCFMgr.SetQuestionDescription(name);
     this.OldAGAndCFMgr.SetTypeWithDefaultsOld(type);
     this.OldAGAndCFMgr.SaveAndCloseAgendaOrCFItem();
     UIUtil.DefaultProvider.SwitchToMainContent();
     UIUtil.DefaultProvider.WaitForPageToLoad();
 }
 public void AddRecurringFeeItem(OtherEventTypeAgendaAndCFManager.FieldType type, string name, double price)
 {
     BuilderMgr.ClickAddAgendaItemOld();
     BuilderMgr.OldAGAndCFMgr.SetQuestionDescription(name);
     BuilderMgr.OldAGAndCFMgr.SelectType(type);
     BuilderMgr.OldAGAndCFMgr.SetRegularPrice(price);
     UIUtil.DefaultProvider.WaitForAJAXRequest();
     BuilderMgr.OldAGAndCFMgr.SaveAndCloseAgendaOrCFItem();
     UIUtil.DefaultProvider.SwitchToMainContent();
     UIUtil.DefaultProvider.WaitForPageToLoad();
 }
 public void AddRecurringFeeItemWithDiscount(OtherEventTypeAgendaAndCFManager.FieldType type, string name, double price, string discount, bool required, bool oneTime)
 {
     BuilderMgr.ClickAddAgendaItemOld();
     BuilderMgr.OldAGAndCFMgr.SetQuestionDescription(name);
     BuilderMgr.OldAGAndCFMgr.SelectType(type);
     BuilderMgr.OldAGAndCFMgr.SetRegularPrice(price);
     UIUtil.DefaultProvider.WaitForAJAXRequest();
     BuilderMgr.OldAGAndCFMgr.AddMembershipDiscountCodes("Discount Code", discount, required);
     BuilderMgr.OldAGAndCFMgr.ApplyMembershipDiscountCodeOnce(oneTime);
     UIUtil.DefaultProvider.WaitForAJAXRequest();
     BuilderMgr.OldAGAndCFMgr.SaveAndCloseAgendaOrCFItem();
     UIUtil.DefaultProvider.SwitchToMainContent();
     UIUtil.DefaultProvider.WaitForPageToLoad();
 }