Esempio n. 1
0
 public DayNote(TypeDate tDate)
 {
     InitializeComponent();
     TDate = tDate;
     if (TDate == TypeDate.ToDay)
     {
         txtDate.Foreground = new SolidColorBrush(Color.FromRgb(39, 139, 39));
     }
     if (TDate == TypeDate.Dates)
     {
         txtDate.Foreground = new SolidColorBrush(Color.FromRgb(0, 0, 0));
     }
     if (TDate == TypeDate.DayOutMonth)
     {
         txtDate.Foreground = new SolidColorBrush(Color.FromRgb(75, 75, 75));
     }
 }
Esempio n. 2
0
        private DataSet buildDataSet(int itemId, TypeDate type)
        {
            SqlParameter[] parameters = { new SqlParameter(CST_PARAM_SQL_USER_ID,       SessionState.User.Id),
                                          new SqlParameter(CST_PARAM_SQL_REQUIRED_ONLY, (byte)0),
                                          new SqlParameter(CST_PARAM_SQL_ITEM_ID,       itemId),
                                          new SqlParameter(CST_PARAM_SQL_CULTURE_CODE,  string.Empty),
                                          new SqlParameter(CST_PARAM_SQL_TYPE,          (int)type) };
            Database       db = Utils.GetMainDB();
            DataSet        ds = db.RunSPReturnDataSet(SP_RETRIEVE_PROJECTS, "ProjectDatesTable", parameters);

            if (db.LastError.Length > 0)
            {
                _LastError = db.LastError;
            }

            return(ds);
        }
        /// <summary>
        /// Crée les bordure pour les années et les mois
        /// </summary>
        /// <param name="date"></param>
        /// <param name="text"></param>
        /// <returns></returns>
        public Border CreateBorder(TypeDate date, string text)
        {
            Border border = new Border();

            border.Background  = new SolidColorBrush(Colors.Black);
            border.BorderBrush = new SolidColorBrush(Colors.White);
            TextBlock textBlock = new TextBlock();

            textBlock.HorizontalAlignment = System.Windows.HorizontalAlignment.Center;
            textBlock.VerticalAlignment   = System.Windows.VerticalAlignment.Center;
            textBlock.Foreground          = new SolidColorBrush(Colors.White);
            textBlock.Text             = text;
            border.Child               = textBlock;
            border.Width               = date == TypeDate.Annee ? 120 : 80;
            border.Height              = date == TypeDate.Annee ? 60 : 40;
            border.BorderThickness     = new Thickness(date == TypeDate.Annee ? 6 : 4);
            border.HorizontalAlignment = System.Windows.HorizontalAlignment.Left;
            textBlock.FontSize         = date == TypeDate.Annee ? 26 : 20;
            canvas.Children.Add(border);
            return(border);
        }
Esempio n. 4
0
 public DatePeriode(DateTime?date, TypeDate typeDate, TypePeriode typePeriode)
 {
     this.Date        = date;
     this.TypeDate    = typeDate;
     this.TypePeriode = typePeriode;
 }
Esempio n. 5
0
 private void radioTime_CheckedChanged(object sender, EventArgs e)
 {
     this.LeFormatDate = TypeDate.Heure;
     this.ForceRefreshTime();
 }
Esempio n. 6
0
 private void radioDay_CheckedChanged(object sender, EventArgs e)
 {
     this.m_leFormatDate = TypeDate.Date;
     this.ForceRefreshTime();
 }
Esempio n. 7
0
 private void RadioFull_CheckedChanged(object sender, EventArgs e)
 {
     this.m_leFormatDate = TypeDate.DateEtHeure;
     this.ForceRefreshTime();
 }
Esempio n. 8
0
 /// <summary>
 /// Constructor Fecha
 /// </summary>
 /// <param name="args"></param>
 /// <param name="date"></param>
 public SiteColumn(ParamsSiteColumnBaseExtended args, TypeDate date)
     : this(args)
 {
     Date = date;
 }
 /// <summary>
 /// Crée les bordure pour les années et les mois
 /// </summary>
 /// <param name="date"></param>
 /// <param name="text"></param>
 /// <returns></returns>
 public Border CreateBorder(TypeDate date, string text)
 {
     Border border = new Border();
     border.Background = new SolidColorBrush(Colors.Black);
     border.BorderBrush = new SolidColorBrush(Colors.White);
     TextBlock textBlock = new TextBlock();
     textBlock.HorizontalAlignment = System.Windows.HorizontalAlignment.Center;
     textBlock.VerticalAlignment = System.Windows.VerticalAlignment.Center;
     textBlock.Foreground = new SolidColorBrush(Colors.White);
     textBlock.Text = text;
     border.Child = textBlock;
     border.Width = date == TypeDate.Annee ? 120 : 80;
     border.Height = date == TypeDate.Annee ? 60 : 40;
     border.BorderThickness = new Thickness(date == TypeDate.Annee ? 6 : 4);
     border.HorizontalAlignment = System.Windows.HorizontalAlignment.Left;
     textBlock.FontSize = date == TypeDate.Annee ? 26 : 20;
     canvas.Children.Add(border);
     return border;
 }
Esempio n. 10
0
 /// <summary>
 /// Constructor Fecha
 /// </summary>
 /// <param name="args"></param>
 /// <param name="date"></param>
 public SiteColumn(ParamsSiteColumnBaseExtended args, TypeDate date)
     : this(args)
 {
     Date = date;
 }
Esempio n. 11
0
 public DayNote()
 {
     InitializeComponent();
     TDate = TypeDate.ToDay;
     txtDate.Foreground = new SolidColorBrush(Color.FromRgb(0, 0, 0));
 }