private void btnMapIn_Click(object sender, RoutedEventArgs e) { MapIO io = new MapIO(); if (io.MapIn(cvsMain.Height, ref map)) { cvsMain.Children.Clear(); foreach (Info i in map.Index) { cvsMain.Children.Add(i.Rect); } cvsMain.Children.Add(map.prevRect); } }
private void btnMapOut_Click(object sender, RoutedEventArgs e) { MapIO io = new MapIO(); io.MapOut(map); }