/// <summary> /// 新建约会 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void tsmiNewAppointment_Click(object sender, EventArgs e) { //得到选中区域的起始时间 //MessageBox.Show(this.schdedulerCalendar.DateSelectionStart.ToString()); DateTime? start = this.schdedulerCalendar.DateSelectionStart; DateTime? end = this.schdedulerCalendar.DateSelectionEnd; DialogResult dr = new AppointmentForm(start, end).ShowDialog(); //关闭Glass效果,实现皮肤 //MessageBoxEx.EnableGlass = false; //MessageBoxEx.EnableGlass = false; //if (dr == DialogResult.Cancel) //{ // MessageBoxEx.Show(this, "用户放弃", "信息提示", MessageBoxButtons.OK, MessageBoxIcon.Information); //} //else if (dr == DialogResult.OK) //{ // MessageBoxEx.Show(this, "用户保存", "信息提示", MessageBoxButtons.OK, MessageBoxIcon.Information); //} }