コード例 #1
0
ファイル: MainWindow.xaml.cs プロジェクト: Maxocoder/proj2
        private void Fly_Click(object sender, RoutedEventArgs e)
        {
            double        num;
            List <double> X = new List <double>();
            List <double> Y = new List <double>();

            if (double.TryParse(TextSpeed.Text, out num))
            {
                using (StreamWriter sr = new StreamWriter("C:\\Users\\Максим\\source\\repos\\GameFly\\Properties\\Speed.txt"))
                {
                    sr.WriteLine(num);
                }
            }

            double num2;

            if (double.TryParse(TextAngl.Text, out num2))
            {
                using (StreamWriter sr = new StreamWriter("C:\\Users\\Максим\\source\\repos\\GameFly\\Properties\\Angle.txt"))
                {
                    sr.WriteLine(num2);
                }
            }
            FlyObj flyObj = new FlyObj();

            flyObj.Position();
        }
コード例 #2
0
ファイル: MainWindow.xaml.cs プロジェクト: Maxocoder/proj2
        public MainWindow()
        {
            FlyObj fly = new FlyObj();

            fly.Position();
        }