Beispiel #1
0
        public MappedCellRendererDate()
            : base(new DrawingCellHBox())
        {
            this.Mode         = CellRendererMode.Editable;
            datetext.SizeText = "88/88/8888";
            MainBox.PackEnd(new DrawingCellNull(), true);
            MainBox.PackEnd(datetext, false);
            DateEntry de = new DateEntry();

            de.IsCellRenderer = true;
            de.HasCalculator  = false;
            de.HasClearButton = false;
            de.HasDropDown    = false;

            adapter = new CellEditableAdapter(de);
        }
Beispiel #2
0
            public DateText(DateEntry aOwner, DataPart aPart)
                : base()
            {
                XPos  = 0.5;
                YPos  = 0.5;
                part  = aPart;
                owner = aOwner;
                switch (aPart)
                {
                case DataPart.Year:
                    SizeText = " <b>8888</b>";
                    break;

                case DataPart.Separator:
                    Text = System.Threading.Thread.CurrentThread.CurrentCulture.DateTimeFormat.DateSeparator;
                    break;

                default:
                    SizeText = "<b>88</b>";
                    break;
                }
                Refresh();
            }
			public DateText (DateEntry aOwner, DataPart aPart)
				: base ()
			{
				XPos = 0.5;
				YPos = 0.5;
				part = aPart;
				owner = aOwner;
				switch (aPart) {
				case DataPart.Year:
					SizeText = " <b>8888</b>";
					break;
				case DataPart.Separator:
					Text = System.Threading.Thread.CurrentThread.CurrentCulture.DateTimeFormat.DateSeparator;
					break;
				default:
					SizeText = "<b>88</b>";
					break;
				}
				Refresh();
			}