48 lines
1.1 KiB
C#
48 lines
1.1 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 MemoryViewer
|
|
{
|
|
public partial class SettingsForm : Form
|
|
{
|
|
private bool changed = false;
|
|
|
|
public SettingsForm()
|
|
{
|
|
InitializeComponent();
|
|
}
|
|
|
|
private void btnConnect_Click(object sender, EventArgs e)
|
|
{
|
|
if (changed)
|
|
{
|
|
Settings.Default.IP = textBoxIp.Text;
|
|
Settings.Default.IP_Debug = textBoxIpDebug.Text;
|
|
Settings.Default.Save();
|
|
changed = false;
|
|
}
|
|
}
|
|
|
|
private void SettingsForm_Load(object sender, EventArgs e)
|
|
{
|
|
textBoxIp.Text = Settings.Default.IP;
|
|
textBoxIpDebug.Text = Settings.Default.IP_Debug;
|
|
}
|
|
|
|
private void textBoxIp_TextChanged(object sender, EventArgs e)
|
|
{
|
|
changed = true;
|
|
}
|
|
|
|
private void textBoxIpDebug_TextChanged(object sender, EventArgs e)
|
|
{
|
|
changed = true;
|
|
}
|
|
}
|
|
}
|