/// <summary> /// Executes the command action. /// </summary> /// <param name="target"></param> /// <param name="parameter"></param> public override void Execute(NNode target, object parameter) { NScheduleView scheduleView = GetScheduleView(target); NMessageBox.Show("Schedule Custom Command executed!", "Custom Command", ENMessageBoxButtons.OK, ENMessageBoxIcon.Information); }
protected override NWidget CreateExampleContent() { // Create a simple schedule m_ScheduleView = new NScheduleView(); m_ScheduleView.Document.PauseHistoryService(); try { InitSchedule(m_ScheduleView.Content); } finally { m_ScheduleView.Document.ResumeHistoryService(); } // Create and execute a ribbon UI builder m_RibbonBuilder = new NScheduleRibbonBuilder(); return(m_RibbonBuilder.CreateUI(m_ScheduleView)); }