private void btn_AddLayer_Click(object sender, EventArgs e) { AddLayerDialog dlg = new AddLayerDialog(); dlg.StartPosition = FormStartPosition.CenterParent; dlg.ShowDialog(); }