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)); } }
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); }
public DatePeriode(DateTime?date, TypeDate typeDate, TypePeriode typePeriode) { this.Date = date; this.TypeDate = typeDate; this.TypePeriode = typePeriode; }
private void radioTime_CheckedChanged(object sender, EventArgs e) { this.LeFormatDate = TypeDate.Heure; this.ForceRefreshTime(); }
private void radioDay_CheckedChanged(object sender, EventArgs e) { this.m_leFormatDate = TypeDate.Date; this.ForceRefreshTime(); }
private void RadioFull_CheckedChanged(object sender, EventArgs e) { this.m_leFormatDate = TypeDate.DateEtHeure; this.ForceRefreshTime(); }
/// <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; }
public DayNote() { InitializeComponent(); TDate = TypeDate.ToDay; txtDate.Foreground = new SolidColorBrush(Color.FromRgb(0, 0, 0)); }