コード例 #1
0
        void BeginEditTask(MachineTask ts)
        {
            propertyBrowser.Children.Clear();

            PathUIDef UIDef = m_UIFactory.FindUI(ts.Path.GetType());

            if (UIDef != null)
            {
                m_ModelView.BeginEditTask(ts, UIDef.CreateShapeModel(ts.Path));
                CreateTaskUI(UIDef.CreateUI(), UIDef.Title, UIMode.UM_Edit);
            }
        }
コード例 #2
0
        void BeginAddTask(WorkPath ps)
        {
            propertyBrowser.Children.Clear();

            PathUIDef UIDef = m_UIFactory.FindUI(ps.GetType());

            if (UIDef != null)
            {
                m_ModelView.BeginAddTask(UIDef.CreateShapeModel(ps));
                CreateTaskUI(UIDef.CreateUI(), UIDef.Title, UIMode.UM_Add);
            }
        }