Ejemplo n.º 1
0
        public UtDates(GtdEditor editor)
        {
            _Editor = editor;

            InitializeComponent();

            DtStart.CustomFormat = CApp.DATEIME_FORMAT;

            CbRedoUnit.Items.Add(new Itemi { K = CGtd.UNIT_NONE, V = "无" });
            CbRedoUnit.Items.Add(new Itemi { K = CGtd.UNIT_SECOND, V = "秒" });
            CbRedoUnit.Items.Add(new Itemi { K = CGtd.UNIT_MINUTE, V = "分" });
            CbRedoUnit.Items.Add(new Itemi { K = CGtd.UNIT_HOUR, V = "时" });
            CbRedoUnit.Items.Add(new Itemi { K = CGtd.UNIT_DAY, V = "日" });
            //CbRedoUnit.Items.Add(new Itemi { K = CGtd.UNIT_WEEK, V = "周" });
            CbRedoUnit.Items.Add(new Itemi { K = CGtd.UNIT_MONTH, V = "月" });
            CbRedoUnit.Items.Add(new Itemi { K = CGtd.UNIT_YEAR, V = "年" });
        }
Ejemplo n.º 2
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;
        }
Ejemplo n.º 3
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;
        }