2018-09-27 01:05:10 -07:00
|
|
|
|
using System;
|
2016-01-27 00:37:46 -08:00
|
|
|
|
using System.Windows.Forms;
|
2018-09-27 01:05:10 -07:00
|
|
|
|
using Quasar.Common.Models;
|
|
|
|
|
using Quasar.Common.Utilities;
|
2018-10-04 12:49:24 -07:00
|
|
|
|
using Quasar.Server.Registry;
|
2016-01-27 00:37:46 -08:00
|
|
|
|
|
2018-09-27 01:05:10 -07:00
|
|
|
|
namespace Quasar.Server.Forms
|
2016-01-27 00:37:46 -08:00
|
|
|
|
{
|
|
|
|
|
public partial class FrmRegValueEditString : Form
|
|
|
|
|
{
|
|
|
|
|
private readonly RegValueData _value;
|
|
|
|
|
|
2018-09-19 11:34:31 -07:00
|
|
|
|
public FrmRegValueEditString(RegValueData value)
|
2016-01-27 00:37:46 -08:00
|
|
|
|
{
|
|
|
|
|
_value = value;
|
|
|
|
|
|
|
|
|
|
InitializeComponent();
|
|
|
|
|
|
2016-04-22 13:12:48 -07:00
|
|
|
|
this.valueNameTxtBox.Text = RegValueHelper.GetName(value.Name);
|
2018-09-19 11:34:31 -07:00
|
|
|
|
this.valueDataTxtBox.Text = ByteConverter.ToString(value.Data);
|
2016-01-27 00:37:46 -08:00
|
|
|
|
}
|
|
|
|
|
|
2016-02-08 02:40:14 -08:00
|
|
|
|
private void okButton_Click(object sender, EventArgs e)
|
2016-01-27 00:37:46 -08:00
|
|
|
|
{
|
2018-09-19 11:34:31 -07:00
|
|
|
|
_value.Data = ByteConverter.GetBytes(valueDataTxtBox.Text);
|
|
|
|
|
this.Tag = _value;
|
|
|
|
|
this.DialogResult = DialogResult.OK;
|
|
|
|
|
this.Close();
|
2016-01-27 00:37:46 -08:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|