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; })); }
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); })); }
/// <summary> /// Go to a marker position. /// </summary> /// <param name="marker">Marker position</param> public void GoToMarker(Marker marker) { SetPosition(marker.PositionBytes); }
public void RefreshMarkerPosition(Marker marker) { }
public void InsertMarker(Marker marker) { _gateway.InsertMarker(marker); }
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)); }
public void RefreshMarkerPosition(Marker marker, int newIndex) { }
partial void actionBackMarkerDetails(NSObject sender) { viewMarkerDetails.Hidden = true; viewMarkers.Hidden = false; _currentMarker.Name = txtMarkerName.StringValue; OnUpdateMarkerDetails(_currentMarker); _currentMarker = null; waveFormScrollView.SetActiveMarker(Guid.Empty); }
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); }); }
public void UpdateMarker(Marker marker) { _gateway.UpdateMarker(marker); }
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); }
public void RefreshMarker(Marker marker, AudioFile audioFile) { }
public void SetMarkerPosition(Marker marker) { _control.SetMarkerPosition(marker); }
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); } }); }
public void SetMarkerPosition(Marker marker) { WaveFormView.SetMarkerPosition(marker); //ProcessAutoScroll(marker.PositionBytes); }
public void RefreshMarkerPosition(Marker marker) { //Tracing.Log("PlayerViewController - RefreshMarkerPosition - position: {0}", marker.Position); InvokeOnMainThread(() => scrollViewWaveForm.SetMarkerPosition(marker)); }