private void BranchView_MouseDown(object sender, MouseEventArgs e)
 {
     if (e.Button == MouseButtons.Left)
     {
         if (BranchView.CurrentCell != null && BranchView.CurrentCell.IsDataCell &&
             BranchView.CurrentCell.Column.Name == BranchNumberColumnName)
         {
             BranchView.DragCurrentCell();
         }
     }
 }
Exemple #2
0
        private void BranchView_MouseDown(object sender, MouseEventArgs e)
        {
            UpdateBranchButton.Enabled         =
                LoadBranchButton.Enabled       =
                    JumpToBranchButton.Enabled =
                        SelectedBranch != null;

            BranchesContextMenu.Close();

            if (e.Button == MouseButtons.Left)
            {
                if (BranchView.CurrentCell != null && BranchView.CurrentCell.IsDataCell &&
                    BranchView.CurrentCell.Column.Name == BranchNumberColumnName)
                {
                    BranchView.DragCurrentCell();
                }
            }
        }