Example #1
0
 private void CutSegment(object sender, KeyEventArgs e)
 {
     if (AnnoTierStatic.Label != null && AnnoTierStatic.Selected.IsDiscreteOrFree)
     {
         temp_segment = AnnoTierStatic.Label;
         AnnoTierStatic.RemoveSegmentPressed(sender, e);
     }
 }
Example #2
0
        private void RemoveSegment(object sender, KeyEventArgs e)
        {
            if (AnnoTier.Selected != null && AnnoTier.Selected.IsDiscreteOrFree)
            {
                if (AnnoTierStatic.Label != null)
                {
                    AnnoTierStatic.RemoveSegmentPressed(sender, e);
                }
            }

            else if (AnnoTier.Selected != null && AnnoTier.Selected.IsContinuous)
            {
                AnnoListItem[] selected = new AnnoListItem[control.annoListControl.annoDataGrid.SelectedItems.Count];
                control.annoListControl.annoDataGrid.SelectedItems.CopyTo(selected, 0);
                control.annoListControl.annoDataGrid.SelectedIndex = -1;
                foreach (AnnoListItem s in selected)
                {
                    s.Score = double.NaN;
                }
                AnnoTier.Selected.TimeRangeChanged(MainHandler.Time);
            }
        }