private void addComplexTypeMenuItem_Click(object sender, System.EventArgs e) { DesignComplexType dct = new DesignComplexType(upnpService.GetComplexTypeList()); if(dct.ShowDialog() == DialogResult.OK) { if(dct.ComplexType != null) { upnpService.AddComplexType(dct.ComplexType); this.updateUserInterface(); } } }