private void BranchView_MouseDown(object sender, MouseEventArgs e) { BranchesContextMenu.Close(); UpdateButtons(); if (e.Button == MouseButtons.Left) { if (BranchView.CurrentCell != null && BranchView.CurrentCell.IsDataCell && BranchView.CurrentCell.Column.Name == BranchNumberColumnName) { BranchView.DragCurrentCell(); } } }
private void BranchView_MouseDown(object sender, MouseEventArgs e) { UpdateBranchButton.Enabled = RemoveBranchButton.Enabled = LoadBranchButton.Enabled = EditBranchTextButton.Enabled = SelectedBranch != null; BranchesContextMenu.Close(); if (e.Button == MouseButtons.Left) { if (BranchView.CurrentCell != null && BranchView.CurrentCell.IsDataCell && BranchView.CurrentCell.Column.Name == BranchNumberColumnName) { BranchView.DragCurrentCell(); } } }