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.ConnectionString_WR10;
|
|
textBox11.Text = Program.LocalSettings.ConnectionString_WR11;
|
|
textBox12.Text = Program.LocalSettings.ConnectionString_WR12;
|
|
}
|
|
|
|
private void okButton_Click(object sender, EventArgs e)
|
|
{
|
|
Program.LocalSettings.ConnectionString_WR10 = textBox10.Text;
|
|
Program.LocalSettings.ConnectionString_WR11 = textBox11.Text;
|
|
Program.LocalSettings.ConnectionString_WR12 = textBox12.Text;
|
|
|
|
Program.LocalSettings.Save();
|
|
|
|
DialogResult = DialogResult.OK;
|
|
Close();
|
|
}
|
|
|
|
private void cancelButton_Click(object sender, EventArgs e)
|
|
{
|
|
DialogResult = DialogResult.Cancel;
|
|
Close();
|
|
}
|
|
}
|
|
}
|