public EditLocalDatabaseWindow(Database database)
        {
            this.InitializeComponent();

            this.Title = "New Local Database";

            this._database = database;
            this.NameTextBox.Text = database.Name;
            this.FolderTextBox.Text = SettingsManager.DatabasesPath + "\\";
        }
示例#2
0
        public EditDatabaseWindow(Database database, bool isNew)
        {
            this._database = database;
            this.InitializeComponent();

            this.Title = isNew
                ? "New Database"
                : "Edit Database";

            this.NameTextBox.Text = database.Name;
            this.EngineComboBox.SelectedIndex = (int)database.Type;
            this.CsTextBox.Text = database.ConnectionString;
        }