private void SaveOption(string path) { IEditPaths configPath = this.Owner as IEditPaths; if (configPath != null) { configPath.SetOptionPath("NewCardsFolder", path); } }
void AccepButtonClick(object sender, EventArgs e) { IEditPaths configuration = this.Owner as IEditPaths; if (configuration != null) { configuration.SetPaths(textBox1.Text, textBox2.Text, textBox3.Text, textBox4.Text); } Close(); }