MetroAppointmentForm.DisplayStrings[0] = "??"; MetroAppointmentForm.DisplayStrings[1] = "??"; MetroAppointmentForm.DisplayStrings[2] = "????"; MetroAppointmentForm.DisplayStrings[3] = "??"; MetroAppointmentForm.DisplayStrings[4] = "??"; MetroAppointmentForm.DisplayStrings[5] = "????"; RecurringForm.DisplayStrings[0] = "?????????"; RecurringForm.DisplayStrings[1] = "????"; RecurringForm.DisplayStrings[2] = "????"; RecurringForm.DisplayStrings[3] = "????"; RecurringForm.DisplayStrings[4] = "?"; RecurringForm.DisplayStrings[5] = "??"; RecurringForm.DisplayStrings[6] = "??????"; RecurringForm.DisplayStrings[7] = "????"; |
Thank you,that's what I need
but,I can't change the AlertForm button.text
class CustomScheduleControl : ScheduleControl { public CustomScheduleControl() { } public override ScheduleGrid CreateScheduleGrid(NavigationCalendar calendar, ScheduleControl schedule, DateTime initialDate) { return new CustomScheduleGrid(calendar, schedule, initialDate); } } class CustomScheduleGrid : ScheduleGrid { public CustomScheduleGrid() { } MessageBoxForm mbox; public CustomScheduleGrid(NavigationCalendar calendar, ScheduleControl schedule, DateTime theDate) : base(calendar, schedule, theDate) { mbox = new MessageBoxForm(); } public override void ParentFormClosing(object sender, System.ComponentModel.CancelEventArgs e) { if (!this.Schedule.IsDisposed) { if (this.Schedule.DataSource != null && this.Schedule.DataSource.IsDirty && this.Schedule.DataSource.SaveOnCloseBehaviorAction != SaveOnCloseBehavior.DoNotSave) { if (this.Schedule.DataSource.SaveOnCloseBehaviorAction == SaveOnCloseBehavior.SaveWithoutPrompt || mbox.ShowDialog(null) == DialogResult.Yes) { this.Schedule.DataSource.CommitChanges(); } } } } } |
//Localize the AlertWindow this.scheduleControl1.AlertWindow.buttonSnooze.Text = "??"; this.scheduleControl1.AlertWindow.buttonDismiss.Text = "??"; this.scheduleControl1.AlertWindow.buttonDismissAll.Text = "????"; |