protected void OnNewNoteClicked(OrdersCalendar calendar) { EventHandler <NewNoteEventArgs> handler = NewNoteClicked; if (handler != null) { NewNoteEventArgs e = new NewNoteEventArgs(); handler(this, e); } }
public CalendarHBox(OrdersCalendar calendar) : base() { ParentCalendar = calendar; emptyButton = new ItemButton(); emptyButton.ParentCalendar = ParentCalendar; emptyButton.NewOrderClicked += HandleNewOrderClicked; this.Add(emptyButton); Drag.DestSet(this, DestDefaults.Highlight, null, 0); }
public CalendarHBox(OrdersCalendar calendar) : base() { ParentCalendar = calendar; emptyButton = new ItemButton(); emptyButton.ParentCalendar = ParentCalendar; emptyButton.TypeItemButton = TypeItemOrButton.Order; emptyButton.NewOrderClicked += HandleNewOrderClicked; this.Add(emptyButton); Drag.DestSet(this, DestDefaults.Highlight, null, 0); }
public CalendarHBox(OrdersCalendar calendar, string str) : base() { ParentCalendar = calendar; emptyButton = new ItemButton(); emptyButton.ParentCalendar = ParentCalendar; if (str.Equals("newSheduleWork")) { emptyButton.TypeItemButton = TypeItemOrButton.Shedule; emptyButton.NewSheduleWorkClicked += HandleNewSheduleWorkClicked; } else if (str.Equals("newNote")) { emptyButton.NewNoteClicked += HandleNewNoteClicked; emptyButton.TypeItemButton = TypeItemOrButton.Note; } this.Add(emptyButton); }