private void SetMarkersMenuItem_Click(object sender, EventArgs e) { if (TasView.SelectedRows.Count() > 50) { var result = MessageBox.Show("Are you sure you want to add more than 50 markers?", "Add markers", MessageBoxButtons.OKCancel, MessageBoxIcon.Question); if (result != DialogResult.OK) { return; } } foreach (var index in TasView.SelectedRows) { MarkerControl.AddMarker(false, index); } }
private void TasView_MouseDoubleClick(object sender, MouseEventArgs e) { if (e.Button == MouseButtons.Left) { var buttonName = TasView.CurrentCell.Column.Name; if (TasView.CurrentCell.RowIndex.HasValue && buttonName == FrameColumnName) { if (Settings.EmptyMarkers) { CurrentTasMovie.Markers.Add(TasView.CurrentCell.RowIndex.Value, string.Empty); RefreshDialog(); } else { ClearLeftMouseStates(); MarkerControl.AddMarker(false, TasView.CurrentCell.RowIndex.Value); } } } }
private void SetMarkerWithTextMenuItem_Click(object sender, EventArgs e) { MarkerControl.AddMarker(true, TasView.SelectedRows.FirstOrDefault()); }
private void AddMarkerContextMenuItem_Click(object sender, EventArgs e) { MarkerControl.AddMarker(); }