private IModel ModelTypeTo(string model) { IModel model2 = new IModel(); switch (model) { case "ItemLine": { LineModel line = new LineModel(); return(line); } case "ItemEllipse": { EllipsModel ellipsModel = new EllipsModel(); return(ellipsModel); } case "ItemCursor": { CursorModel cursor = new CursorModel(); return(cursor); } case "ItemRectangle": { RectangleModel rectangle = new RectangleModel(); return(rectangle); } case "ItemAdd": { AddModel add = new AddModel(); return(add); } case "ItemAddInButton": { AddInButtonModel addInButton = new AddInButtonModel(); return(addInButton); } case "RemoveListSprites": { AddSprites.Create create = new AddSprites.Create(); } break; } return(model2); }
private void RemoveListSprites_Click(object sender, RoutedEventArgs e) { AddSprites.Create create = new AddSprites.Create(); }