public void RefreshDialog(bool refreshTasView = true) { if (_exiting) { return; } if (refreshTasView) { RefreshTasView(); } if (MarkerControl != null) { MarkerControl.UpdateValues(); } if (BookMarkControl != null) { BookMarkControl.UpdateValues(); } if (_undoForm != null && !_undoForm.IsDisposed) { _undoForm.UpdateValues(); } }
// Slow but guarantees the entire dialog refreshes private void FullRefresh() { SetTasViewRowCount(); TasView.Refresh(); // An extra refresh potentially but we need to guarantee MarkerControl.UpdateValues(); BookMarkControl.UpdateValues(); if (_undoForm != null && !_undoForm.IsDisposed) { _undoForm.UpdateValues(); } }
public void RefreshDialog() { RefreshTasView(); if (MarkerControl != null) { MarkerControl.UpdateValues(); } if (undoForm != null && !undoForm.IsDisposed) { undoForm.UpdateValues(); } }
public void CallEditMarkerPopUp(TasMovieMarker marker) { var markerFrame = marker.Frame; InputPrompt i = new InputPrompt { Text = "Marker for frame " + markerFrame, TextInputType = InputPrompt.InputType.Text, Message = "Enter a message", InitialValue = CurrentTasMovie.Markers.IsMarker(markerFrame) ? CurrentTasMovie.Markers.PreviousOrCurrent(markerFrame).Message : "" }; var result = i.ShowHawkDialog(); if (result == DialogResult.OK) { marker.Message = i.PromptText; MarkerControl.UpdateValues(); } }
public void CallAddMarkerPopUp(int?frame = null) { var markerFrame = frame ?? TasView.LastSelectedIndex ?? Emulator.Frame; InputPrompt i = new InputPrompt { Text = "Marker for frame " + markerFrame, TextInputType = InputPrompt.InputType.Text, Message = "Enter a message", InitialValue = CurrentTasMovie.Markers.IsMarker(markerFrame) ? CurrentTasMovie.Markers.PreviousOrCurrent(markerFrame).Message : "" }; var result = i.ShowHawkDialog(); if (result == DialogResult.OK) { CurrentTasMovie.Markers.Add(new TasMovieMarker(markerFrame, i.PromptText)); MarkerControl.UpdateValues(); } }
public void RefreshDialog(bool refreshTasView = true, bool refreshBranches = true) { if (_exiting) { return; } if (refreshTasView) { SetTasViewRowCount(); } MarkerControl?.UpdateValues(); if (refreshBranches) { BookMarkControl?.UpdateValues(); } if (_undoForm != null && !_undoForm.IsDisposed) { _undoForm.UpdateValues(); } }