Exemple #1
0
        /// <summary>
        /// Use default setting
        /// </summary>
        public ViewBase()
        {
            Background = new DevAge.Drawing.VisualElements.BackgroundSolid();

            Padding = DefaultPadding;
            ForeColor = DefaultForeColor;
            BackColor = DefaultBackColor;
            Border = DefaultBorder;
            TextAlignment = DefaultAlignment;
            ImageAlignment = DefaultAlignment;
        }
        /// <summary>
        /// Use default setting
        /// </summary>
        protected ViewBase()
        {
            Background = new DevAge.Drawing.VisualElements.BackgroundSolid();


            Padding        = DefaultPadding;
            ForeColor      = DefaultForeColor;
            BackColor      = DefaultBackColor;
            Border         = DefaultBorder;
            TextAlignment  = DefaultAlignment;
            ImageAlignment = DefaultAlignment;
        }
Exemple #3
0
 public CheckboxBackColorAlternate(Color firstColor, Color secondColor)
 {
     FirstBackground  = new DevAge.Drawing.VisualElements.BackgroundSolid(firstColor);
     SecondBackground = new DevAge.Drawing.VisualElements.BackgroundSolid(secondColor);
 }
 public CheckBoxBackColorAlternate(Color firstColor, Color secondColor)
 {
     FirstBackground = new DevAge.Drawing.VisualElements.BackgroundSolid(firstColor);
     SecondBackground = new DevAge.Drawing.VisualElements.BackgroundSolid(secondColor);
 }
 public CellColorFromValue(double lowestAdmissibleValue)
 {
     _lowestAdmissibleValue = lowestAdmissibleValue;
     correctValueBackground = new DevAge.Drawing.VisualElements.BackgroundSolid(Color.White);
     insufficientValueBackground = new DevAge.Drawing.VisualElements.BackgroundSolid(Color.Red);
 }
 public CellColorFromValue(double lowestAdmissibleValue)
 {
     _lowestAdmissibleValue      = lowestAdmissibleValue;
     correctValueBackground      = new DevAge.Drawing.VisualElements.BackgroundSolid(Color.White);
     insufficientValueBackground = new DevAge.Drawing.VisualElements.BackgroundSolid(Color.Red);
 }
Exemple #7
0
 private void setCellBackColorAlternate(Color firstColor, Color secondColor)
 {
     FirstBackground  = new DevAge.Drawing.VisualElements.BackgroundSolid(firstColor);
     SecondBackground = new DevAge.Drawing.VisualElements.BackgroundSolid(secondColor);
 }