private void DesignCard() { if (this.SelectedTemplate != null) { CardDesigner designer = new CardDesigner(); designer.Owner = this; designer.CardTemplate = this.SelectedTemplate; designer.ShowDialog(); } }