private void elementsGrid_CellEndEdit(object sender, DataGridViewCellEventArgs e) { bool oldListen = listen; listen = false; if (e.ColumnIndex == 1) { int chance = Convert.ToInt32(elementsGrid.Rows[e.RowIndex].Cells[e.ColumnIndex].Value); Actions.Actions.Instance.AddNew(new Actions.ChoiceElementChangeAction( m_Container.GetElements()[GetElementIndex(elementsGrid.Rows[e.RowIndex])], chance), m_Project); } listen = oldListen; }
public void VisitChoiceContainer(IElementContainer <IChoiceElement> choiceContainer) { foreach (IElement element in choiceContainer.GetElements()) { element.Visit(this); } }
public void VisitParallelContainer(IElementContainer <IParallelElement> parallelContainer) { foreach (IElement element in parallelContainer.GetElements()) { element.Visit(this); } }
public void VisitChoiceContainer(IElementContainer <IChoiceElement> choiceContainer) { foreach (IChoiceElement element in choiceContainer.GetElements()) { if (m_CurrentModeElement == null) { break; } element.Visit(this); } }
public void VisitParallelContainer(IElementContainer <IParallelElement> parallelContainer) { foreach (IParallelElement element in parallelContainer.GetElements()) { if (m_CurrentModeElement == null) { break; } element.Visit(this); } }
private void elementsGrid_CellDoubleClick(object sender, DataGridViewCellEventArgs e) { FireElementDoubleClick(m_Container.GetElements()[GetElementIndex(elementsGrid.Rows[e.RowIndex])]); }