private void DrawArea(Bound bound) { if (bound.MaxX == 0) { bound.SetMinMaxXY(); } PropertyGrid1.SelectedObject = bound; ListBox1.ItemsSource = null; ListBox1.ItemsSource = Area.GetPoints(); ListBox2.ItemsSource = null; ListBox2.ItemsSource = Area.GetAbsolutePoints(); BoundCanvas1.Show(bound); //pcCenter.X=bound. pcSize.X = bound.GetSizeX(); pcSize.Y = bound.GetSizeY(); pcCenter.X = bound.GetCenterX(); pcCenter.Y = bound.GetCenterY(); }