45 lines
1.0 KiB
C#
45 lines
1.0 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel;
|
|
using System.Data;
|
|
using System.Drawing;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Windows.Forms;
|
|
|
|
namespace ResultsBrowser.Forms
|
|
{
|
|
public partial class DatabaseSettings : Form
|
|
{
|
|
public DatabaseSettings()
|
|
{
|
|
InitializeComponent();
|
|
}
|
|
|
|
private void DatabaseSettings_Load(object sender, EventArgs e)
|
|
{
|
|
textBox10.Text = Program.LocalSettings.ConnectionString1;
|
|
textBox11.Text = Program.LocalSettings.ConnectionString2;
|
|
textBox12.Text = Program.LocalSettings.ConnectionString3;
|
|
}
|
|
|
|
private void okButton_Click(object sender, EventArgs e)
|
|
{
|
|
Program.LocalSettings.ConnectionString1 = textBox10.Text;
|
|
Program.LocalSettings.ConnectionString2 = textBox11.Text;
|
|
Program.LocalSettings.ConnectionString3 = textBox12.Text;
|
|
|
|
Program.LocalSettings.Save();
|
|
|
|
DialogResult = DialogResult.OK;
|
|
Close();
|
|
}
|
|
|
|
private void cancelButton_Click(object sender, EventArgs e)
|
|
{
|
|
DialogResult = DialogResult.Cancel;
|
|
Close();
|
|
}
|
|
}
|
|
}
|