Esempio n. 1
0
 /// <summary>
 ///     Método responsável por adicionar a cotação na interface para o usuário.
 /// </summary>
 /// <param name="DataCotacao">Data da cotação</param>
 /// <param name="ValorCotacao">Valor da cotação.</param>
 private void AdicionarCotacao_Mes(DateTime DataCotacao, String ValorCotacao)
 {
     Infragistics.Win.UltraWinSchedule.Appointment a = new Infragistics.Win.UltraWinSchedule.Appointment(DataCotacao, DataCotacao);
     a.AllDayEvent = true;
     a.Subject     = ValorCotacao;
     ultraCalendarInfo1.Appointments.Add(a);
 }
    private void addSet(string subject_, string resourceCode_)
    {
      System.Collections.IDictionary hash = MyCalendar.GetHolidaySet(resourceCode_);
      string descOfResourceCode = MyCalendar.DescriptionOfResourceCode(resourceCode_);

      if (hash != null)
        foreach (Holiday key in hash.Keys)
        {
          Infragistics.Win.UltraWinSchedule.Appointment app = new Infragistics.Win.UltraWinSchedule.Appointment(key.Date, key.Date);
          app.Description = string.Format("{0} : {1}", descOfResourceCode, key.Description);
          app.Subject = subject_;
          app.AllDayEvent = true;
          ultraMonthViewSingle1.CalendarInfo.Appointments.Add(app);
        }

    }