Files
PulsarK-main/Pulsar.Server/Forms/FrmRegValueEditString.cs
T

36 lines
986 B
C#
Raw Normal View History

2026-08-27 10:57:58 -06:00
using Pulsar.Common.Models;
using Pulsar.Common.Utilities;
using Pulsar.Server.Forms.DarkMode;
using Pulsar.Server.Registry;
using System;
using System.Windows.Forms;
namespace Pulsar.Server.Forms
{
public partial class FrmRegValueEditString : Form
{
private readonly RegValueData _value;
public FrmRegValueEditString(RegValueData value)
{
_value = value;
InitializeComponent();
DarkModeManager.ApplyDarkMode(this);
ScreenCaptureHider.ScreenCaptureHider.Apply(this.Handle);
this.valueNameTxtBox.Text = RegValueHelper.GetName(value.Name);
this.valueDataTxtBox.Text = ByteConverter.ToString(value.Data);
}
private void okButton_Click(object sender, EventArgs e)
{
_value.Data = ByteConverter.GetBytes(valueDataTxtBox.Text);
this.Tag = _value;
this.DialogResult = DialogResult.OK;
this.Close();
}
}
}