void InitializeState() { MovingBranch.GetInstance().Program = this; var n = Normal.GetInstance(); n.Program = this; State = n; }
public void MouseMove(CrossStateData data, MouseEventArgs e) { if (Aimed != null && Aimed is BranchLabelModel) { data.AttachedBranch = (BranchLabelModel)Aimed; MovingBranch mb = MovingBranch.GetInstance(); mb.SetBranchLabel(data.AttachedBranch); Graph.GetInstance().CaptureMaouse(); ChangeState(mb); } }