// // // public void OnAssign(object sender, Event evt) { Train trn = (Train)GetSelectedData(); if (trn != null) { Globals.assign_dialog(trn); } }