Пример #1
0
 private void SetSelectedTablesEntityOveride(EntityStyle value)
 {
     foreach (var tbl in m_selectedTables)
     {
         tbl.SetEntityOverride(value);
     }
 }
Пример #2
0
 private void _LoadStyle(EntityStyle es)
 {
     try
     {
         m_loadingData++;
         cbxExisting.Text = es != null ? (es.StyleName ?? "") : "";
         if (es == null)
         {
             es = m_parentStyle;
         }
         if (es != null)
         {
             bgHeader.Gradient = es.HeaderBg;
             bgBody.Gradient   = es.BodyBg;
             chbHeader.Checked = es.IsDefinedHeader;
         }
     }
     finally
     {
         m_loadingData--;
     }
 }
Пример #3
0
        public void ShowEntityStyle(EntityStyle parentStyle, Func <string, EntityStyle[]> enumNamedStyles, Func <EntityStyle[]> getter, Action <EntityStyle> setter)
        {
            try
            {
                m_loadingData++;
                m_parentStyle     = parentStyle;
                m_getter          = getter;
                m_setter          = setter;
                m_enumNamedStyles = enumNamedStyles;

                var es = m_getter().FirstOrDefault();
                OverrideStyle = es != null;

                cbxExisting.Enabled = m_enumNamedStyles != null;
                ReloadStyleNames();
                _LoadStyle(es);
            }
            finally
            {
                m_loadingData--;
            }
        }
Пример #4
0
 public void SetEntityOverride(EntityStyle value)
 {
     EntityOverride = XmlTool.CloneUsingXml(value);
 }