예제 #1
0
        /// <summary>
        /// Adds a new condition to the selected tabPage.
        /// </summary>
        public void AddCondition()
        {
            if (SelectedTabControlIndex == 0)
            {
                StartConditions.Add(new Condition());
            }
            else if (SelectedTabControlIndex == 1)
            {
                CancelConditions.Add(new Condition());
            }
            else
            {
                SubmitConditions.Add(new Condition());
            }

            NotifyOfPropertyChange(() => CanRemoveCondition);
            NotifyOfPropertyChange(() => CanGenerate);
        }