Exemplo n.º 1
0
        protected void DeleteEventPageClick(object sender, EventArgs e)
        {
            CalendarBLL calendarBLL = new CalendarBLL();
            String calendarToDeleteEvents = DeleteEventDropDown.SelectedValue;
            System.Diagnostics.Trace.WriteLine(calendarToDeleteEvents);
            ProjectManagerLibrary.Models.Calendar calendar = calendarBLL.getCalendarByName(calendarToDeleteEvents);
            currentCalendar.setCalendarName(calendarToDeleteEvents);
            currentCalendar.setCalendarId(calendar.getCalendarId());
            //currentCalendar.setProjectId(calendar.getProjectId());

            populateDeleteEventCheckBox();

            DeleteEventPanel.Visible = true;
            InitPanel.Visible = false;
        }
Exemplo n.º 2
0
        protected void ViewCalendarClick(object sender, EventArgs e)
        {
            CalendarBLL calendarBLL = new CalendarBLL();
            String calendarToView = ViewDropDown.SelectedValue;
            ProjectManagerLibrary.Models.Calendar calendar = calendarBLL.getCalendarByName(calendarToView);
            currentCalendar.setCalendarName(calendarToView);
            currentCalendar.setCalendarId(calendar.getCalendarId());
            //currentCalendar.setProjectId(calendar.getProjectId());

            System.Diagnostics.Trace.WriteLine("Current calendar set at " + currentCalendar.getCalendarId());

            InitPanel.Visible = false;
            ViewCalendarPanel.Visible = true;
        }
Exemplo n.º 3
0
 public void getCalendarByNameTest()
 {
     CalendarBLL target = new CalendarBLL();
     string calendarName = "UnitTestName";
     Calendar actual;
     actual = target.getCalendarByName(calendarName);
     Assert.IsNotNull(actual);
 }