private void DiscardButton_Click(object sender, RoutedEventArgs e) { _timer.Stop(); _frameCount = 0; Stage = Stage.Stopped; Cursor = Cursors.AppStarting; LowerGrid.IsEnabled = false; _discardFramesDel = Discard; _discardFramesDel.BeginInvoke(DiscardCallback, null); }
private void DiscardButton_Click(object sender, RoutedEventArgs e) { _capture.Stop(); FrameRate.Stop(); FrameCount = 0; Stage = Stage.Discarding; OutterGrid.IsEnabled = false; Cursor = Cursors.AppStarting; _discardFramesDel = Discard; _discardFramesDel.BeginInvoke(DiscardCallback, null); }
private void DiscardButton_Click(object sender, RoutedEventArgs e) { if (UserSettings.All.NotifyRecordingDiscard && !Dialog.Ask(LocalizationHelper.Get("S.Recorder.Discard.Title"), LocalizationHelper.Get("S.Recorder.Discard.Instruction"), LocalizationHelper.Get("S.Recorder.Discard.Message"), false)) { return; } _capture.Stop(); FrameRate.Stop(); FrameCount = 0; Stage = Stage.Stopped; MainGrid.IsEnabled = false; Cursor = Cursors.AppStarting; _discardFramesDel = Discard; _discardFramesDel.BeginInvoke(DiscardCallback, null); }
private void DiscardButton_Click(object sender, RoutedEventArgs e) { _capture.Stop(); FrameRate.Stop(); FrameCount = 0; Stage = Stage.Stopped; OutterGrid.IsEnabled = false; Cursor = Cursors.AppStarting; _discardFramesDel = Discard; _discardFramesDel.BeginInvoke(DiscardCallback, null); }
private void DiscardProject_Executed(object sender, ExecutedRoutedEventArgs e) { Pause(); #region Prepare UI ActionGrid.BeginStoryboard(FindResource("HidePanelStoryboard") as Storyboard); FrameListView.SelectionChanged -= FrameListView_SelectionChanged; FrameListView.SelectedIndex = -1; FrameListView.Items.Clear(); ZoomBoxControl.Clear(); #endregion if (ListFrames == null || ListFrames.Count == 0) return; _discardFramesDel = Discard; _discardFramesDel.BeginInvoke(DiscardCallback, null); }