private void btnSet_Click(object sender, RoutedEventArgs e) { PageController.Switch(typeof(CMainPage), StateMessage.CProcess_CMainPage_setProcess, processlist[lstProcesses.SelectedIndex]); }