private void btnAdd_Click(object sender, EventArgs e) { ClientAdd f = new ClientAdd() { RefForm = (MainForm)this }; f.ShowDialog(); f.Dispose(); }