private void BtHint_Click(object sender, EventArgs e) { GtdEditor editor = new GtdEditor(true); editor.MGtd = _SafeModel.Hint.Gtd; if (DialogResult.OK != editor.ShowDialog()) { return; } Gtd.M.MGtd gtd = editor.MGtd; HintAtt hint = _SafeModel.Hint; hint.Gtd = gtd; hint.Text = gtd.Subject; hint.Icon = Resources.Hint; _SafeModel.Modified = true; TbHint.Text = hint.Text; PbHint.Image = hint.Icon; }
private void BtName_Click(object sender, EventArgs e) { GtdEditor editor = new GtdEditor(true); editor.MGtd = _Att.Gtd; if (DialogResult.OK != editor.ShowDialog()) { return; } Gtd.M.MGtd gtd = editor.MGtd; _Att.Gtd = gtd; _Att.Text = gtd.Subject; _Att.Icon = Resources.Hint; _Att.Modified = true; LlHint.Text = _Att.Text; PbHint.Image = _Att.Icon; }