public TransitionLine GetLine(TransitionKind kind) { TransitionLine ln = null; Lines.TryGetValue(kind, out ln); return(ln); }
public TransitionRange(TransitionLine line, ElementTransform trans) { ParentLine = line; OwnerTrans = trans; CurFocusRangeOptPart = BodyOperationPart.Nothing; UseFrameRectProjectingEffect = true; }
public TransitionGraphics(DevExpress.XtraEditors.XtraScrollableControl pnlContainer, Panel pnlParent, int rulerHeight, int lineHeight) { ParentPanel = pnlParent; ParentPanelContainter = pnlContainer; ParentPanelContainter.SizeChanged += new EventHandler(ParentPanelContainer_SizeChanged); PanelViewport.X = 0; PanelViewport.Y = 0; IsTimeRulerSelected = false; ParentPanelContainer_SizeChanged(null, null); TimeRuler = new TransitionTimeRuler(this, rulerHeight); int yPos = rulerHeight; foreach (TransitionKind tk in Enum.GetValues(typeof(TransitionKind))) { if (tk == TransitionKind.Unknown) { continue; } Lines[tk] = new TransitionLine(tk, this, yPos, lineHeight); yPos += lineHeight; } OperationHistory.Instance.NewOperationCommited += new OperationHistory.Delegate_OnOperationChanged(OperationHistory_OnCommitedNewOperation); }