Exemplo n.º 1
0
        private void UpdateDataView()
        {
            if (_dataphoria.Debugger.IsPaused && _dataphoria.Debugger.SelectedProcessID >= 0)
            {
                // Save old postion
                IRow old = null;
                if (FCallStackDataView.Active && !FCallStackDataView.IsEmpty())
                {
                    old = FCallStackDataView.ActiveRow;
                }

                // Update the selected process
                _processIDParam.Value     = _dataphoria.Debugger.SelectedProcessID;
                _selectedIndexParam.Value = _dataphoria.Debugger.SelectedCallStackIndex;
                FCallStackDataView.Open();

                // Attempt to seek to old position
                if (old != null)
                {
                    FCallStackDataView.Refresh(old);
                }
            }
            else
            {
                FCallStackDataView.Close();
            }
        }
Exemplo n.º 2
0
 private void FSelectButton_Click(object sender, EventArgs e)
 {
     if (FCallStackDataView.Active && !FCallStackDataView.IsEmpty())
     {
         Dataphoria.Debugger.SelectedCallStackIndex = FCallStackDataView["Index"].AsInt32;
     }
 }
Exemplo n.º 3
0
 private void FRefreshButton_Click(object sender, EventArgs e)
 {
     if (FCallStackDataView.Active)
     {
         FCallStackDataView.Refresh();
     }
 }
Exemplo n.º 4
0
 private void FDataphoria_Disconnected(object sender, EventArgs e)
 {
     FCallStackDataView.Close();
     FCallStackDataView.Session = null;
     DeinitializeParamGroup();
 }
Exemplo n.º 5
0
 private void UpdateButtonsEnabled()
 {
     FRefreshButton.Enabled = FCallStackDataView.Active;
     FSelectButton.Enabled  = FCallStackDataView.Active && !FCallStackDataView.IsEmpty();
 }