private void HashManageMenuItem_Click(object sender, EventArgs e)
{
DialogResult rslt = DialogResult.Cancel;
try
{
rslt = HashMgr.ShowDialog();
}
catch (Exception)
{
return;
}
this.TopMost = this._cfgCommon.AlwaysTop;
if (rslt == DialogResult.Cancel) return;
if (!string.IsNullOrEmpty(HashMgr.UseHash))
{
HashStripSplitButton.Text = HashMgr.UseHash;
HashToggleMenuItem.Checked = true;
HashToggleToolStripMenuItem.Checked = true;
}
else
{
HashStripSplitButton.Text = "#[-]";
HashToggleMenuItem.Checked = false;
HashToggleToolStripMenuItem.Checked = false;
}
//if (HashMgr.IsInsert && HashMgr.UseHash != "")
//{
// int sidx = StatusText.SelectionStart;
// string hash = HashMgr.UseHash + " ";
// if (sidx > 0)
// {
// if (StatusText.Text.Substring(sidx - 1, 1) != " ")
// hash = " " + hash;
// }
// StatusText.Text = StatusText.Text.Insert(sidx, hash);
// sidx += hash.Length;
// StatusText.SelectionStart = sidx;
// StatusText.Focus();
//}
ModifySettingCommon = true;
this.StatusText_TextChanged(null, null);
}