using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
namespace TdoCodeGenerator{
public partial class frmOptions : Form
{
private void btnOk_Click(object sender, EventArgs e)
{
TdoCodeGenerator.Properties.Settings.Default.Save();
this.DialogResult = DialogResult.OK;
this.Close();
}
private void btnCancel_Click(object sender, EventArgs e)
{
this.DialogResult = DialogResult.Cancel;
TdoCodeGenerator.Properties.Settings.Default.Reload();
this.Close();
}
private void frmOptions_FormClosing(object sender, FormClosingEventArgs e)
{
this.DialogResult = DialogResult.Cancel;
}
private void frmOptions_Load(object sender, EventArgs e)
{
// TODO: This line of code loads data into the 'northwindDataSet.Categories' table. You can move, or remove it, as needed.
TdoCodeGenerator.Properties.Settings.Default.Reload();
}
private void btnRestoreDefaultSqlServerOptions_Click(object sender, EventArgs e)
{
TdoCodeGenerator.Properties.Settings.Default.Reset();
TdoCodeGenerator.Properties.Settings.Default.Save();
}
}
}
|