initial commit
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
using System;
|
||||
using System.Windows.Forms;
|
||||
using Quasar.Common.Models;
|
||||
using Quasar.Common.Utilities;
|
||||
|
||||
namespace Quasar.Server.Forms
|
||||
{
|
||||
public partial class FrmRegValueEditMultiString : Form
|
||||
{
|
||||
private readonly RegValueData _value;
|
||||
|
||||
public FrmRegValueEditMultiString(RegValueData value)
|
||||
{
|
||||
_value = value;
|
||||
|
||||
InitializeComponent();
|
||||
|
||||
this.valueNameTxtBox.Text = value.Name;
|
||||
this.valueDataTxtBox.Text = string.Join("\r\n", ByteConverter.ToStringArray(value.Data));
|
||||
}
|
||||
|
||||
private void okButton_Click(object sender, EventArgs e)
|
||||
{
|
||||
_value.Data = ByteConverter.GetBytes(valueDataTxtBox.Text.Split(new[] {"\r\n"}, StringSplitOptions.RemoveEmptyEntries));
|
||||
this.Tag = _value;
|
||||
this.DialogResult = DialogResult.OK;
|
||||
this.Close();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user