private void UpdateConfigState(ConfigState state)
 {
     if (state == ConfigState.Stopped)
     {
         SafeThread.SetEnableControl(btnApply, true);
         SafeThread.SetReadOnlyDataGridView(dataGridTrn, false);
         SafeThread.SetAllowUserToAddRowsDataGridView(dataGridTrn, true);
         SafeThread.SetVisibleStripItem(navigatorTran, navigatorAddNewItem, true);
         SafeThread.SetVisibleStripItem(navigatorTran, navigatorDeleteItem, true);
     }
     else
     {
         SafeThread.SetEnableControl(btnApply, false);
         SafeThread.CancelEditDataGridView(dataGridTrn);
         SafeThread.SetReadOnlyDataGridView(dataGridTrn, true);
         SafeThread.SetAllowUserToAddRowsDataGridView(dataGridTrn, false);
         SafeThread.SetVisibleStripItem(navigatorTran, navigatorAddNewItem, false);
         SafeThread.SetVisibleStripItem(navigatorTran, navigatorDeleteItem, false);
     }
 }