private void LoadFlowgraph(string FileName) { ClearUI(false, true, true); CathodeFlowgraph entry = CurrentInstance.commandsPAK.Flowgraphs[CurrentInstance.commandsPAK.GetFileIndex(FileName)]; CurrentInstance.selectedFlowgraph = entry; Cursor.Current = Cursors.WaitCursor; flowgraph_content.BeginUpdate(); List <CathodeEntity> entities = entry.GetEntities(); for (int i = 0; i < entities.Count; i++) { string desc = EditorUtils.GenerateNodeName(entities[i], CurrentInstance.selectedFlowgraph); flowgraph_content.Items.Add(desc); flowgraph_content_RAW.Add(desc); } flowgraph_content.EndUpdate(); #if DEBUG //TODO: PULL THIS INTO STABLE editFlowgraphResources.Visible = true; #endif groupBox1.Text = entry.name; Cursor.Current = Cursors.Default; }
public CathodeEditorGUI_AddPin(CathodeEntity entity, CathodeFlowgraph flowgraph) { _entity = entity; InitializeComponent(); _entityList = flowgraph.GetEntities(); _entityList = _entityList.OrderBy(o => EditorUtils.GenerateNodeName(o, flowgraph).Substring(13)).ToList <CathodeEntity>(); pin_in_node.BeginUpdate(); for (int i = 0; i < _entityList.Count; i++) { string this_node_string = EditorUtils.GenerateNodeName(_entityList[i], flowgraph); pin_in_node.Items.Add(this_node_string); } pin_in_node.EndUpdate(); pin_out_node.Text = EditorUtils.GenerateNodeName(_entity, flowgraph); pin_out_node.Enabled = false; RefreshPinInParams(); RefreshPinOutParams(); }