private void MapLayers_Click() { try { TDSClient.Forms.frmMapWMSLayers frm = new Forms.frmMapWMSLayers(); // Forms.ResultMessages.frmResultMessages frm = new Forms.ResultMessages.frmResultMessages(); frm.Owner = Application.Current.MainWindow; frm.Show(); } catch (Exception ex) { } }