/// <summary> /// /// </summary> private void NewDatabase() { NewDatabaseViewModel ndm = new NewDatabaseViewModel(); if (ndm.ShowDialog().Value) { this.mSelectDatabase = new DatabaseItem() { Name = ndm.Name, Desc = ndm.Desc }; this.IsOK = true; } }
/// <summary> /// /// </summary> private void NewDatabase() { NewDatabaseViewModel ndm = new NewDatabaseViewModel(); if (this.DatabaseItems != null && this.DatabaseItems.Count > 0) { ndm.ExistDatabase = this.DatabaseItems.Select(e => e.Name).ToList(); } if (ndm.ShowDialog().Value) { this.mSelectDatabase = new DatabaseItem() { Name = ndm.Name, Desc = ndm.Desc }; this.IsOK = true; } }