void CPageDisk::OnKillfocusEConnectionRate() 
{
	Manager *manager;
	Worker	*worker;
	// Restores the previous value if the edit box was left blank.
	if ( !m_EConnectionRate.LineLength() )
	{
		ShowConnectionRate();
		return;
	}

	// Seeing what kind of item is selected.
	switch ( theApp.pView->m_pWorkerView->GetSelectedType() )
	{
	case WORKER:
		worker = theApp.pView->m_pWorkerView->GetSelectedWorker();
		worker->SetTransPerConn( GetDlgItemInt( EConnectionRate ) );
		break;
	case MANAGER:
		manager = theApp.pView->m_pWorkerView->GetSelectedManager();
		manager->SetTransPerConn( GetDlgItemInt( EConnectionRate ), 
			GenericDiskType );
		break;
	case ALL_MANAGERS:
		theApp.manager_list.SetTransPerConn( GetDlgItemInt( EConnectionRate ),
			GenericDiskType );
		break;
	}

	EnableWindow();
}