Exemplo n.º 1
0
 void scheduleBox1_RowItemClick(object sender, VWG.ScheduleBoxEx.ScheduleBoxRowItemEventArgs e)
 {
     var newEvent = new VWG.ScheduleBoxEvent();
     // Create absolutely new event
     newEvent.Start = e.Time;
     newEvent.End = e.Time.AddMinutes(30);
     newEvent.Subject = "ʱ��" + e.Time;
     newEvent.Tag = "This is a test ʱ��";
     this.scheduleBox1.Events.Add(newEvent);
     this.scheduleBox1.Show();
 }
Exemplo n.º 2
0
        private void ScheduleTest_Load(object sender, EventArgs e)
        {
            this.scheduleBox1.DisplayMonthHeader = true;
            var names=Enum.GetNames(typeof(ScheduleBoxView));
            this.comboBox1.DataSource=names;

            var newEvent = new VWG.ScheduleBoxEvent();
            // Create absolutely new event
            newEvent.Start = DateTime.Now;
            newEvent.End = newEvent.Start.AddHours(1);
            newEvent.Subject = "This is a test Subject";
            newEvent.Tag = "This is a test tag";
            this.scheduleBox1.Events.Add(newEvent);
            this.scheduleBox1.Show();
        }