private void CreateRect_Click(object sender, RoutedEventArgs e) { NewObject rect = new NewObject(new DrawRect()); rect.draw(list_txb); count++; Console_Txb.Text = "Count of object: " + count.ToString(); }
private void CreateCircle_Click(object sender, RoutedEventArgs e) { NewObject circle = new NewObject(new DrawCircle()); circle.draw(list_txb); count++; Console_Txb.Text = "Count of object: " + count.ToString(); }