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); } }
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); } }