コード例 #1
0
ファイル: Program.cs プロジェクト: JaroslavVecera/GitGUI
        void InitializeState()
        {
            MovingBranch.GetInstance().Program = this;
            var n = Normal.GetInstance();

            n.Program = this;
            State     = n;
        }
コード例 #2
0
 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);
     }
 }