Example #1
0
 public void InitControl()
 {
     if (Country == null)
     {
         _bindingList = null;
     }
     else
     {
         _bindingList = new CountryColourList(Country);
         _bindingList.Refresh();
         _bindingList.CheckAndCreateColorList();
     }
     gridControl.DataSource = _bindingList;
 }
Example #2
0
 public void InitControl()
 {
     if (Country == null)
     {
         _bindingList = null;
     }
     else
     {
         _bindingList = new CountryColourList(Country);
         _bindingList.Refresh();
         _bindingList.CheckAndCreateColorList();
     }
     gridControl.DataSource = _bindingList;
 }
Example #3
0
        public override void Bind()
        {
            base.Bind();

            if (CountryColor == null)
            {
                return;
            }
            HighValue = CountryColor.H;
            XValue    = CountryColor.X;
            YValue    = CountryColor.Y;
            LowValue  = CountryColor.L;

            HigherCriticalColor = CountryColor.HCColour;
            HigherCautionColor  = CountryColor.HColour;
            NormalColor         = CountryColor.NColour;
            LowCautionColor     = CountryColor.LColour;
            LowerCriticalColor  = CountryColor.LCColour;

            lblColorName.Text = CountryColourList.GetColorName((Domain.CountryColorValueType)CountryColor.ColourType);
        }