private void buttonFindMsgApp_Click(object sender, EventArgs e)
        {
            if (radioButtonApplication.Checked)
            {
                OpenFileDialog find = new OpenFileDialog();
                find.Filter      = "All files|*.*";
                find.Multiselect = false;
                find.Title       = "Application to send message to";

                if (find.ShowDialog(this) == DialogResult.OK)
                {
                    textBoxMsgTarget.Text = find.FileName;
                }
            }
            else if (radioButtonClass.Checked)
            {
                WindowList windowList = new WindowList(true);
                if (windowList.ShowDialog(this) == DialogResult.OK)
                {
                    textBoxMsgTarget.Text = windowList.SelectedItem;
                }
            }
            else if (radioButtonWindowTitle.Checked)
            {
                WindowList windowList = new WindowList(false);
                if (windowList.ShowDialog(this) == DialogResult.OK)
                {
                    textBoxMsgTarget.Text = windowList.SelectedItem;
                }
            }
        }
    private void buttonFindMsgTarget_Click(object sender, EventArgs e)
    {
      if (radioButtonApplication.Checked)
      {
        OpenFileDialog find = new OpenFileDialog();
        find.Filter = "All files|*.*";
        find.Multiselect = false;
        find.Title = "Application to send message to";

        if (find.ShowDialog(this) == DialogResult.OK)
          textBoxMsgTarget.Text = find.FileName;
      }
      else if (radioButtonClass.Checked)
      {
        WindowList windowList = new WindowList(true);
        if (windowList.ShowDialog(this) == DialogResult.OK)
          textBoxMsgTarget.Text = windowList.SelectedItem;
      }
      else if (radioButtonWindowTitle.Checked)
      {
        WindowList windowList = new WindowList(false);
        if (windowList.ShowDialog(this) == DialogResult.OK)
          textBoxMsgTarget.Text = windowList.SelectedItem;
      }
    }