private void LoadConfig()
 {
     UpdateTitle();
     ServerLogViewModel.ReadConfig(_controller);
     if (ServerLogViewModel.SelectedServer != null)
     {
         ServerDataGrid.ScrollIntoView(ServerLogViewModel.SelectedServer, ServerColumn);
     }
 }
 private void ServerLogWindow_OnStateChanged(object sender, EventArgs e)
 {
     if (ServerDataGrid.SelectedCells.Count > 0 && ServerDataGrid.SelectedCells[0].Column != null)
     {
         if (ServerDataGrid.SelectedCells[0].Item is Server serverObject)
         {
             ServerDataGrid.ScrollIntoView(serverObject, ServerColumn);
             return;
         }
     }
     if (ServerLogViewModel.SelectedServer != null)
     {
         ServerDataGrid.ScrollIntoView(ServerLogViewModel.SelectedServer, ServerColumn);
     }
 }