示例#1
0
        public void OnSplit(object sender, Event evt)
        {
            int l = 0;

            if (assign_tr.length != 0)
            {
                l = Globals.ask_number(wxPorting.T("Split train"), wxPorting.T("Position where to split the train (meters from the head)"));
                if (l < 0)
                {
                    return;
                }
            }
            Globals.split_train(assign_tr, l);
            Globals.shunt_train(assign_tr);
            EndModal(ShowModalResult.OK);
        }