public StartUpWindow(StorgeProvider storge, string storageDirectory, string connectionString) { this.Storge = storge; this.StorageDirectory = storageDirectory; this.ConnectionString = connectionString; InitializeComponent(); if (Storge == StorgeProvider.XMLProvider) { this.XMLRadio.Checked = true; XMLChecked(); } else { this.SQLRadio.Checked = true; SQLChecked(); } this.LocationTxt.Text = StorageDirectory; this.textBoxConnStr.Text = ConnectionString; }
private void XMLChecked() { this.Location.Enabled = true; this.LocationTxt.Enabled = true; this.Browse.Enabled = true; this.LabelConnStr.Enabled = false; this.textBoxConnStr.Enabled = false; this.AddConnection.Enabled = false; Storge = StorgeProvider.XMLProvider; }