Пример #1
0
 private void btnSP_Click(object sender, RoutedEventArgs e)
 {
     drawSP mysp= new drawSP();
     if (running_train != 0)
     {
         mysp.Init_DrawSP(SP, track_len, train[0].V_max);
         mysp.DrawSP();
         imgPic.Source = mysp.Finish_DrawSP();
     }
 }
Пример #2
0
        private void btnSP_Click(object sender, RoutedEventArgs e)
        {
            drawSP mysp = new drawSP();

            if (running_train != 0)
            {
                mysp.Init_DrawSP(SP, track_len, train[0].V_max);
                mysp.DrawSP();
                imgPic.Source = mysp.Finish_DrawSP();
            }
        }