public CreateSubtaskEvent(string _subtaskName, int _softwareIndex, int _panelID, ISubtask_View _viewPart) { SubtaskName = _subtaskName; SoftwareIndex = _softwareIndex; PanelID = _panelID; ViewPart = _viewPart; }
public Subtask_Controller(ISubtask_View _view, Subtask_Model _model) { m_model = _model; m_view = _view; m_view.addNewVersionEvent += HandleAddNewVersion; m_view.changeVersionEvent += HandleChangeVersion; m_view.Init(m_model.Software, m_model.Versions, m_model.CurrentVersion); }
/*public void OpenAsset(string _softwareId) * { * Debug.Log("m_assetManager.AssetName = " + m_assetManager.AssetName); * Debug.Log("m_assetManager.AssetPipelineFolder = " + m_assetManager.AssetPath); * Debug.Log("task path = " + m_mappingTaskPath[m_taskName]); * Debug.Log("software extention = " + m_softwareList[_softwareId]); * Debug.Log("asset version = " + m_mappingVersionPath[m_currentVersion]); * string finalPath = m_assetManager.AssetPath+ m_mappingTaskPath[m_taskName]+"\\"+m_mappingVersionPath[m_currentVersion]+"\\"+ m_assetManager.AssetName + m_softwareList[_softwareId]; * Debug.Log("finalPath = " + finalPath); * Debug.Log("hard path = C:\\Users\\Natspir\\NatspirProd\\03_WORK_PIPE\\01_ASSET_3D\\Enviro\\DataTunnel\\3d\\scenes\\Mode\\mode\\work_v002\\untitled.blend"); * System.Diagnostics.Process cmd = new System.Diagnostics.Process(); * cmd.StartInfo.FileName = "cmd.exe"; * cmd.StartInfo.Arguments = "/C "+ finalPath; //TODO : use asset path + add the task path + add the version path + open it in the software. If there is no file for the software trig a message to open in other soft or import from the file as obj * cmd.StartInfo.WindowStyle = System.Diagnostics.ProcessWindowStyle.Hidden; * cmd.StartInfo.CreateNoWindow = true; * cmd.Start(); * }*/ public void CreateSubtask(string _subtaskName, int _softwareIndex, int _panelID, ISubtask_View viewPart) { Subtask_Model subTaskModel = new Subtask_Model(m_assetManager, m_taskName, _subtaskName, _softwareIndex); Subtask_Controller subTask = new Subtask_Controller(viewPart, subTaskModel); m_Subtasks[_panelID] = subTask; SelectSubtask(_panelID); }
private void InitSubtaskGUI(string _subtaskName, int _indexSoftware) { GameObject SubtaskPanel = m_panelBoard.GetPanel(m_lastPanel); SubtaskPanel.transform.Find("Player").Find("Text").GetComponent <Text>().text = _subtaskName; ISubtask_View subtaskGUI = GameObject.Find("SubtaskGUI").GetComponent <ISubtask_View>(); onCreateSubtask(this, new CreateSubtaskEvent(_subtaskName, _indexSoftware, m_lastPanel, subtaskGUI)); }
public void Remove() { m_model = null; m_view.Clean(); m_view = null; }