예제 #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;
            }));
        }
예제 #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);
     }));
 }
예제 #3
0
파일: Player.cs 프로젝트: pascalfr/MPfm
 /// <summary>
 /// Go to a marker position.
 /// </summary>
 /// <param name="marker">Marker position</param>
 public void GoToMarker(Marker marker)
 {
     SetPosition(marker.PositionBytes);
 }
예제 #4
0
 public void RefreshMarkerPosition(Marker marker)
 {
 }
예제 #5
0
 public void InsertMarker(Marker marker)
 {
     _gateway.InsertMarker(marker);
 }
예제 #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();
        }
예제 #7
0
		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;
            });
        }
예제 #8
0
 public MarkerPositionUpdatedMessage(object sender, Marker marker) 
     : base(sender)
 {
     Marker = marker;
 }
예제 #9
0
 public void SetMarkerPosition(Marker marker)
 {
     WaveFormView.SetMarkerPosition(marker);
     ProcessAutoScroll((long)(marker.PositionPercentage * _waveFormLength));
 }
예제 #10
0
파일: MainWindow.cs 프로젝트: pascalfr/MPfm
 public void RefreshMarkerPosition(Marker marker, int newIndex)
 {
 }
예제 #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);
        }
예제 #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);
     });
 }
예제 #13
0
 public void UpdateMarker(Marker marker)
 {
     _gateway.UpdateMarker(marker);
 }
예제 #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);
        }
예제 #15
0
 public void RefreshMarker(Marker marker, AudioFile audioFile)
 {
 }
예제 #16
0
 public void SetMarkerPosition(Marker marker)
 {
     _control.SetMarkerPosition(marker);
 }
예제 #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);
				}
			});
		}
예제 #18
0
		public void SetMarkerPosition(Marker marker)
		{
			WaveFormView.SetMarkerPosition(marker);
			//ProcessAutoScroll(marker.PositionBytes);
		}
예제 #19
0
		public void RefreshMarkerPosition(Marker marker)
		{
			//Tracing.Log("PlayerViewController - RefreshMarkerPosition - position: {0}", marker.Position);
			InvokeOnMainThread(() => scrollViewWaveForm.SetMarkerPosition(marker));
		}