Exemplo n.º 1
0
        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();
            }
        }
Exemplo n.º 2
0
        // 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();
            }
        }
Exemplo n.º 3
0
        public void RefreshDialog()
        {
            RefreshTasView();

            if (MarkerControl != null)
            {
                MarkerControl.UpdateValues();
            }

            if (undoForm != null && !undoForm.IsDisposed)
            {
                undoForm.UpdateValues();
            }
        }
Exemplo n.º 4
0
        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();
            }
        }
Exemplo n.º 5
0
        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();
            }
        }
Exemplo n.º 6
0
        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();
            }
        }