private void Origin_Create_Btton_Click(object sender, RoutedEventArgs e) { // allow the user to create a new WindowsFolder type Origin if (Database.CurrentUser.HasPermission(UserPermissions.OriginManager)) { Origin origin = new Origin(Database, OriginType.WindowsFolder); // origin.Name = "test"; if (PropertyEditor.EditModal(GetDesktopWindow(), origin)) { origin.Save(); } } else { MessageBox.Show("You do not have sufficient privileges to create Origins. Select an existing Origin or request a new one be created."); } }