Esempio n. 1
0
        public void RefreshMarkerPosition(Marker marker, int newIndex)
        {
            Dispatcher.BeginInvoke(DispatcherPriority.Render, new Action(() =>
            {
                //Console.WriteLine("index: {0} value: {1} newIndex: {2}", listViewMarkers.SelectedIndex, marker.Position, newIndex);
                _markers[_selectedMarkerIndex].Position = marker.Position;
                _markers[_selectedMarkerIndex].PositionBytes = marker.PositionBytes;
                _markers[_selectedMarkerIndex].PositionPercentage = marker.PositionPercentage;
                _markers[_selectedMarkerIndex].PositionSamples = marker.PositionSamples;

                var item = listViewMarkers.ItemContainerGenerator.ContainerFromIndex(_selectedMarkerIndex) as ListViewItem;
                var lblMarkerPosition = UIHelper.FindByName("lblMarkerPosition", item) as TextBlock;
                lblMarkerPosition.Text = marker.Position;
            }));
        }
Esempio n. 2
0
 public void RefreshMarker(Marker marker, AudioFile audioFile)
 {
     _currentMarker = marker;
     Dispatcher.BeginInvoke(DispatcherPriority.Background, new Action(() =>
     {
         txtMarkerName.Text = marker.Name;
         lblMarkerPosition.Content = marker.Position;
         trackMarkerPosition.ValueWithoutEvent = (int)(marker.PositionPercentage * 10);
         scrollViewWaveForm.SetActiveMarker(marker.MarkerId);
     }));
 }
Esempio n. 3
0
 /// <summary>
 /// Go to a marker position.
 /// </summary>
 /// <param name="marker">Marker position</param>
 public void GoToMarker(Marker marker)
 {
     SetPosition(marker.PositionBytes);
 }
Esempio n. 4
0
 public void RefreshMarkerPosition(Marker marker)
 {
 }
Esempio n. 5
0
 public void InsertMarker(Marker marker)
 {
     _gateway.InsertMarker(marker);
 }
Esempio n. 6
0
        public void SetMarkerPosition(Marker marker)
        {
            var localMarker = _markers.FirstOrDefault(x => x.MarkerId == marker.MarkerId);
            if (localMarker == null)
                return;

            localMarker.Position = marker.Position;
            localMarker.PositionBytes = marker.PositionBytes;
            localMarker.PositionPercentage = marker.PositionPercentage;
            localMarker.PositionSamples = marker.PositionSamples;

            // TODO: Only refresh the old/new marker positions
            OnInvalidateVisual();
        }
		public void RefreshMarker(Marker marker, AudioFile audioFile)
        {
            InvokeOnMainThread(() => {
                _marker = marker;
                txtName.Text = marker.Name;
                textViewComments.Text = marker.Comments;
                //lblPosition.Text = marker.Position;
                lblLength.Text = audioFile.Length;
            });
        }
 public MarkerPositionUpdatedMessage(object sender, Marker marker) 
     : base(sender)
 {
     Marker = marker;
 }
 public void SetMarkerPosition(Marker marker)
 {
     WaveFormView.SetMarkerPosition(marker);
     ProcessAutoScroll((long)(marker.PositionPercentage * _waveFormLength));
 }
Esempio n. 10
0
 public void RefreshMarkerPosition(Marker marker, int newIndex)
 {
 }
Esempio n. 11
0
        partial void actionBackMarkerDetails(NSObject sender)
        {
            viewMarkerDetails.Hidden = true;
            viewMarkers.Hidden = false;

            _currentMarker.Name = txtMarkerName.StringValue;
            OnUpdateMarkerDetails(_currentMarker);

            _currentMarker = null;
            waveFormScrollView.SetActiveMarker(Guid.Empty);
        }
Esempio n. 12
0
 public void RefreshMarker(Marker marker, AudioFile audioFile)
 {
     InvokeOnMainThread(delegate {
         _currentMarker = marker;
         txtMarkerName.StringValue = marker.Name;
         lblMarkerPositionValue.StringValue = marker.Position;
         trackBarMarkerPosition.ValueWithoutEvent = (int)(marker.PositionPercentage * 10);
         waveFormScrollView.SetActiveMarker(marker.MarkerId);
     });
 }
Esempio n. 13
0
 public void UpdateMarker(Marker marker)
 {
     _gateway.UpdateMarker(marker);
 }
Esempio n. 14
0
        private void BtnBackMarker_OnClick(object sender, RoutedEventArgs e)
        {
            gridMarkers.Visibility = Visibility.Visible;
            gridMarkerDetails.Visibility = Visibility.Hidden;

            _currentMarker.Name = txtMarkerName.Text;
            OnUpdateMarkerDetails(_currentMarker);

            _currentMarker = null;
            scrollViewWaveForm.SetActiveMarker(Guid.Empty);
        }
Esempio n. 15
0
 public void RefreshMarker(Marker marker, AudioFile audioFile)
 {
 }
Esempio n. 16
0
 public void SetMarkerPosition(Marker marker)
 {
     _control.SetMarkerPosition(marker);
 }
Esempio n. 17
0
		public void RefreshMarkerPosition(Marker marker, int newIndex)
		{
			InvokeOnMainThread(() => {
				int index = _markers.FindIndex(x => x.MarkerId == marker.MarkerId);
				//Tracing.Log("MarkersViewController - RefreshMarkerPosition - markerId: {0} position: {1} index: {2} newIndex: {3}", marker.MarkerId, marker.Position, index, newIndex);
				if(index >= 0)
					_markers[index] = marker;

				// Update position
				var cell = tableView.CellAt(NSIndexPath.FromRowSection(index, 0));
				if(cell != null)
					cell.DetailTextLabel.Text = marker.Position;

				// Check for row movement
				if(index != newIndex)
				{
					//tableView.MoveRow(NSIndexPath.FromRowSection(index, 0), NSIndexPath.FromRowSection(newIndex, 0));
					tableView.ScrollToRow(NSIndexPath.FromRowSection(newIndex, 0), UITableViewScrollPosition.Top, true);
				}
			});
		}
Esempio n. 18
0
		public void SetMarkerPosition(Marker marker)
		{
			WaveFormView.SetMarkerPosition(marker);
			//ProcessAutoScroll(marker.PositionBytes);
		}
Esempio n. 19
0
		public void RefreshMarkerPosition(Marker marker)
		{
			//Tracing.Log("PlayerViewController - RefreshMarkerPosition - position: {0}", marker.Position);
			InvokeOnMainThread(() => scrollViewWaveForm.SetMarkerPosition(marker));
		}