public void ChangeAttribute(string attribute) { FormForChange ChangeTitle = new FormForChange(); FormView View = new FormView(); ChangeTitle.Owner = View; ChangeTitle.ShowDialog(); if (attribute == "title") { title = ChangeTitle.result; } else { if (attribute == "author") { author = ChangeTitle.result; } else { publisher = ChangeTitle.result; } } }
public FormForChange() { InitializeComponent(); FormView Main = this.Owner as FormView; }