public void NewLayer() { Windows.NewLayer NewLayerDialog = new Windows.NewLayer(); NewLayerDialog.Show(); NewLayerDialog.btnAddLayerClicked += new EventHandler(cw_btnAddLayerClicked); }