private static GridRowViewModel AddtriggerForMessage(EnumerableFieldViewModel triggersSubGrid, string message)
        {
            triggersSubGrid.AddRow();
            var newRow = triggersSubGrid.GridRecords.First();

            PopulateRowForMessage(newRow, message);
            return(newRow);
        }
コード例 #2
0
        private static void AddtriggerForMessage(EnumerableFieldViewModel triggersSubGrid, string message)
        {
            triggersSubGrid.AddRow();
            var entryForm = triggersSubGrid.GetRecordForm().ChildForms.First() as ObjectEntryViewModel;

            entryForm.LoadFormSections();
            PopulateRowForMessage(entryForm, message);
            Assert.IsTrue(entryForm.Validate());
            entryForm.SaveButtonViewModel.Invoke();
        }