public void Start(string path) { _draw = new Draw(MyCanvas); this.SizeChanged += MyCanvas_SizeChanged; _mds = new MakulaDataSet(path); //_rect = MyRectangle; /********************************* * var steps = 17; * var radius = 100; * Vector center = new Vector(radius, radius); * * Console.WriteLine("Punkt_Nr X Y"); * Console.WriteLine("-------- ------- -------"); * for (int entry_id = 0; entry_id < steps; entry_id++) * { var start = GetStartingPoint(entry_id, steps, center, radius); * Console.WriteLine(String.Format("{0,8:D} {1,8:N2} {2,8:N2}", entry_id, Math.Round(start.X, 2), Math.Round(start.Y, 2))); * } ***************************************/ _mds.ReadSequences(); _mds.ReadData(); if (_windowSize.Width != 0.0 && _windowSize.Height != 0.0) { RefreshScreen(); } //TestOffsets(); /* * _moveTimer = new DispatcherTimer(); * _moveTimer.Interval = new TimeSpan(0, 0, 0, 0, 20); * _moveTimer.Tick += new EventHandler(_timer_Tick); * _moveTimer.Start(); */ //GenerateTestData(); }
// *************************************************************** // BtnDaten // *************************************************************** private void BtnDaten_Click(object sender, RoutedEventArgs e) { _mds.DeleteRecord(_mds.data.actualSequence); _mds.ReadSequences(); GoBackInTime(); }