Beispiel #1
0
        private void onEventItemClickListener(Event obj)
        {
            EventUI dialog   = new EventUI();
            String  datetime = Utils.GetDateString(selectedGridItem.getDateTime());

            dialog.setInitUIView(obj, datetime);
            DialogResult dr = dialog.ShowDialog();

            if (dr == DialogResult.OK)
            {
                refreshCalenderGrid(currentMonthCounter);
            }
        }
Beispiel #2
0
        /**
         * 点击添加任务按钮
         */
        private void addNoteToDay_Click(object sender, EventArgs e)
        {
            //任务事件对话框
            EventUI dialog = new EventUI();
            // 获取时间
            string datetime = Utils.GetDateString(selectedGridItem.getDateTime());

            // 初始化对话框
            dialog.setInitUIView(datetime);
            // 显示对话框
            DialogResult dr = dialog.ShowDialog();

            if (dr == DialogResult.OK)
            {
                refreshCalenderGrid(currentMonthCounter);
            }
        }