如何在C#中通过DayView控件将新日历约会添加到数据库(SQL Server) [英] How to Add New Calendar appointments into database(sql server) by DayView control in c#

查看:93
本文介绍了如何在C#中通过DayView控件将新日历约会添加到数据库(SQL Server)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发用于添加新约会的桌面日历应用程序.有一个Calendar DayView控件
在我的窗口应用程序中.现在,当我单击按钮时,创建了约会,但我想将该约会插入数据库中.
我正在使用此代码进行约会:-

I am develpoing a desktop calendar apps for adding new appointment.There is a Calendar DayView control
in my window apps.Now when I click on the button then appointment is created but I wantto insert that appointment into database.
I am using this code for the appointment:--

private void button2_Click(object sender, EventArgs e)
       {
           Appointment m_App = new Appointment();
           m_App.StartDate = dayView1.SelectionStart;
           m_App.EndDate = dayView1.SelectionEnd;
           m_App.BorderColor = Color.Red;

           m_Appointments.Add(m_App);

           dayView1.Invalidate();

       }


subscription.cs代码在另一个正在调用的c#文件中.


appointment.cs code is in another c# file which is calling.

推荐答案

您好,您是否使用Codeplex中的DayView组件?
http://calendar.codeplex.com/ [ ^ ]
Hi, do you use DayView component from codeplex?
http://calendar.codeplex.com/[^]


这篇关于如何在C#中通过DayView控件将新日历约会添加到数据库(SQL Server)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆