Пример #1
0
        private void InitSteps()
        {
            List <IStep> steps = new List <IStep>();

            foreach (TabItem tabItem in Items)
            {
                steps.Add(new Step()
                {
                    Header = tabItem.Header, Content = tabItem.Content
                });
            }

            m_controller.InitSteps(steps);
        }
Пример #2
0
        private void InitSteps(IList values)
        {
            IList <IStep> steps = new List <IStep>();

            if (values != null)
            {
                foreach (object item in values)
                {
                    if (item is IStep step)
                    {
                        steps.Add(step);
                    }
                }
            }

            m_controller.InitSteps(steps);
        }