private void button_Click(object sender, RoutedEventArgs e) { BLClassAdmin test = new BLClassAdmin(); Painter pain = new Painter("aaa", "bbb", "ccc", "ddd"); FamousPeople q = test.AddFP(pain, "c", 3, "sdf", 4, "fsddsf", true, "sdfs", false); textBox.Text = q.PictureName; }
public FamousPeople ChangeFP(FamousPeople port, Painter Pa, string Pi, int Ya, string Ph, int Va, string Fe, bool Co, string Pe, bool cou) { port.PainterName = Pa; port.PictureName = Pi; port.YearCreated = Ya; port.Photo = Ph; port.Feature = Fe; port.Value = Va; port.Copy = Co; port.People = Pe; port.Famous = cou; return(port); }