/// <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;
            }
        }
Beispiel #2
0
        /// <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;
            }
        }