コード例 #1
0
 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);
     }
 }
コード例 #2
0
        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);
                    }
                }
            }
        }
コード例 #3
0
 private void SetMarkerWithTextMenuItem_Click(object sender, EventArgs e)
 {
     MarkerControl.AddMarker(true, TasView.SelectedRows.FirstOrDefault());
 }
コード例 #4
0
ファイル: TAStudio.cs プロジェクト: SilverlineDev/bizhawk
 private void AddMarkerContextMenuItem_Click(object sender, EventArgs e)
 {
     MarkerControl.AddMarker();
 }