Beispiel #1
0
 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;
     }
 }
Beispiel #2
0
 public MyInplaceEditorControl(SchedulerInplaceEditorEventArgs inplaceEditorArgs)
 {
     this.appointment = inplaceEditorArgs.ViewInfo.Appointment;
     this.control     = inplaceEditorArgs.Control;
     CreateEditor(inplaceEditorArgs);
 }
Beispiel #3
0
 void CreateEditor(SchedulerInplaceEditorEventArgs inplaceEditorArgs)
 {
     this.editor = new MyInplaceEditor(inplaceEditorArgs);
 }
Beispiel #4
0
 //StandardAppointmentInplaceEditor editor;
 public StandardAppointmentInplaceEditorControl(SchedulerInplaceEditorEventArgs inplaceEditorArgs)
     : base(inplaceEditorArgs)
 {
 }