コード例 #1
0
 private void FDetachButton_Click(object sender, EventArgs e)
 {
     if (FDebugProcessDataView.Active && !FDebugProcessDataView.IsEmpty())
     {
         _dataphoria.Debugger.DetachProcess(FDebugProcessDataView["ID"].AsInt32);
     }
 }
コード例 #2
0
 private void FSelectButton_Click(object sender, EventArgs e)
 {
     if (FDebugProcessDataView.Active && !FDebugProcessDataView.IsEmpty())
     {
         _dataphoria.Debugger.SelectedProcessID = FDebugProcessDataView["Process_ID"].AsInt32;
     }
 }
コード例 #3
0
        private void UpdateDataView()
        {
            if (Dataphoria.Debugger.IsStarted)
            {
                // Save old postion
                IRow old = null;
                if (FDebugProcessDataView.Active && !FDebugProcessDataView.IsEmpty())
                {
                    old = FDebugProcessDataView.ActiveRow;
                }

                // Update the selected process
                _selectedProcessIDParam.Value = _dataphoria.Debugger.SelectedProcessID;

                // Open the DataView
                FDebugProcessDataView.Open();

                // Attempt to seek to old position
                if (old != null)
                {
                    FDebugProcessDataView.Refresh(old);
                }
            }
            else
            {
                FDebugProcessDataView.Close();
            }
        }
コード例 #4
0
 private void RefreshDataView()
 {
     if (FDebugProcessDataView.Active)
     {
         FDebugProcessDataView.Refresh();
     }
 }
コード例 #5
0
        private void UpdateButtonsEnabled()
        {
            FRefreshButton.Enabled          = FDebugProcessDataView.Active;
            FRefreshContextMenuItem.Enabled = FRefreshButton.Enabled;
            var hasRow = FDebugProcessDataView.Active && !FDebugProcessDataView.IsEmpty();

            FDetachButton.Enabled          = hasRow;
            FDetachContextMenuItem.Enabled = hasRow;
            FSelectButton.Enabled          = hasRow;
            FSelectContextMenuItem.Enabled = hasRow;
        }
コード例 #6
0
 private void FDataphoria_Disconnected(object sender, EventArgs e)
 {
     FDebugProcessDataView.Close();
     FDebugProcessDataView.Session = null;
     DeinitializeParamGroup();
 }