Ejemplo n.º 1
0
        public void SetFirstStep(HistoryFilter filter)
        {
            HistoryStep step = FindStep(0);

            if (step == null)
            {
                step        = new HistoryStep();
                step.number = 0;
                step.Filter.Add(filter);
                step.category    = "Setup";
                step.description = "Original";

                AddStep(step);
            }
            else
            {
                for (int index = step.Filter.Count - 1; index >= 0; index--)
                {
                    if (string.Compare(filter.name, step.Filter[index].name, true) == 0)
                    {
                        step.Filter.RemoveAt(index);
                        break;
                    }
                }

                step.Filter.Add(filter);
            }
        }
Ejemplo n.º 2
0
        public void AddStep(HistoryFilter filter)
        {
            HistoryStep step = new HistoryStep();

            step.Filter.Add(filter);
            step.number      = stepField.Count;
            step.category    = "Filter";
            step.description = filter.name;

            UpdateStep(step);
        }