Exemplo n.º 1
0
        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;
        }
Exemplo n.º 2
0
        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;
        }