using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; namespace FCC_Uber_MDX_Configurator { public partial class SendKeyPropertiesForm : Form { public string MyStringOfDeath = ""; public SendKeyPropertiesForm(string input_titlestring) { InitializeComponent(); string[] _s = input_titlestring.Split(new char[] { ':' }); if (_s.Length > 0) { if (_s.Length >= 2) { TXT_TITLE.Text = _s[0]; TXT_CLASS.Text = _s[1]; } if (_s.Length == 4) { TXT_SUBTITLE.Text = _s[2]; TXT_SUBCLASS.Text = _s[3]; } } } private void BTN_AUTO_Click(object sender, EventArgs e) { SpyWindow _spy = new SpyWindow(); if (_spy.ShowDialog() == DialogResult.OK) { string[] sA = _spy.GetBackTitleInformation(); TXT_TITLE.Text = sA[0]; TXT_CLASS.Text = sA[1]; } this.DialogResult = DialogResult.None; } private void BTN_SAVE_Click(object sender, EventArgs e) { MyStringOfDeath = TXT_TITLE.Text + ":" + TXT_CLASS.Text; if (TXT_SUBCLASS.Text != "" || TXT_SUBTITLE.Text != "") { MyStringOfDeath += ":" + TXT_SUBTITLE.Text + ":" + TXT_SUBCLASS.Text; } this.DialogResult = DialogResult.OK; } private void BTN_CANCEL_Click(object sender, EventArgs e) { this.DialogResult = DialogResult.Cancel; } } }