public MyInplaceEditor(SchedulerInplaceEditorEventArgs inplaceEditorArgs) { InitializeComponent(); this.Text = string.Empty; this.ControlBox = false; this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None; this.FormBorderEffect = DevExpress.XtraEditors.FormBorderEffect.None; SubscribeKeyDownEvents(); this.control = inplaceEditorArgs.Control; if (inplaceEditorArgs.UseFullCellEditor) { this.Bounds = control.RectangleToScreen(inplaceEditorArgs.Bounds); DevExpress.Skins.Skin currentSkin = DevExpress.Skins.SchedulerSkins.GetSkin(control.LookAndFeel); DevExpress.Skins.SkinElement element = currentSkin[DevExpress.Skins.SchedulerSkins.SkinAllDayAreaSelected]; this.BackColor = element.Color.BackColor; this.ForeColor = Color.White; } else { this.Bounds = AdjustEditorBounds(inplaceEditorArgs.Bounds); this.BackColor = inplaceEditorArgs.BackColor; } }
public MyInplaceEditorControl(SchedulerInplaceEditorEventArgs inplaceEditorArgs) { this.appointment = inplaceEditorArgs.ViewInfo.Appointment; this.control = inplaceEditorArgs.Control; CreateEditor(inplaceEditorArgs); }
void CreateEditor(SchedulerInplaceEditorEventArgs inplaceEditorArgs) { this.editor = new MyInplaceEditor(inplaceEditorArgs); }
//StandardAppointmentInplaceEditor editor; public StandardAppointmentInplaceEditorControl(SchedulerInplaceEditorEventArgs inplaceEditorArgs) : base(inplaceEditorArgs) { }