Exemplo n.º 1
0
 private void BindStyle()
 {
     DrawingStyle.SanityCheck(style, ToolManager.GetStylePreset("Chrono"));
     style.Bind(styleHelper, "Bicolor", "color");
     style.Bind(styleHelper, "Font", "font size");
     style.Bind(styleHelper, "Clock", "clock");
 }
Exemplo n.º 2
0
 private void BindStyle()
 {
     DrawingStyle.SanityCheck(style, ToolManager.GetStylePreset("Plane"));
     style.Bind(styleHelper, "Color", "color");
     style.Bind(styleHelper, "GridDivisions", "divisions");
     style.Bind(styleHelper, "Perspective", "perspective");
 }
Exemplo n.º 3
0
 private void BindStyle()
 {
     DrawingStyle.SanityCheck(style, ToolManager.GetStylePreset("Rectangle"));
     style.Bind(styleHelper, "Color", "color");
     style.Bind(styleHelper, "LineSize", "line size");
     style.Bind(styleHelper, "PenShape", "pen shape");
 }
Exemplo n.º 4
0
 private void BindStyle()
 {
     style.Bind(styleHelper, "Color", "color");
     style.Bind(styleHelper, "LineSize", "line size");
     style.Bind(styleHelper, "LineShape", "line shape");
     style.Bind(styleHelper, "LineEnding", "arrows");
 }
Exemplo n.º 5
0
 private void BindStyle()
 {
     DrawingStyle.SanityCheck(style, ToolManager.GetStylePreset("Line"));
     style.Bind(styleHelper, "Color", "color");
     style.Bind(styleHelper, "LineSize", "line size");
     style.Bind(styleHelper, "LineShape", "line shape");
     style.Bind(styleHelper, "LineEnding", "arrows");
 }
        private void SetupStyle()
        {
            // Helper with typed accessors.
            styleHelper.Color         = Color.Red;
            styleHelper.LineSize      = 2;
            styleHelper.GridDivisions = 10;

            // The collection of UI elements.
            style.Elements.Add("color", new StyleElementColor(Color.Red));
            style.Elements.Add("line size", new StyleElementLineSize(2));
            style.Elements.Add("divisions", new StyleElementGridDivisions(10));

            // Binding.
            style.Bind(styleHelper, "Color", "color");
            style.Bind(styleHelper, "LineSize", "line size");
            style.Bind(styleHelper, "GridDivisions", "divisions");
        }
 private void BindStyle()
 {
     style.Bind(styleHelper, "Bicolor", "line color");
 }
Exemplo n.º 8
0
 private void BindStyle()
 {
     style.Bind(styleHelper, "Bicolor", "back color");
     style.Bind(styleHelper, "Font", "font size");
 }
 private void BindStyle()
 {
     DrawingStyle.SanityCheck(style, ToolManager.GetStylePreset("DistortionGrid"));
     style.Bind(styleHelper, "Color", "color");
 }
Exemplo n.º 10
0
 private void BindStyle()
 {
     DrawingStyle.SanityCheck(style, ToolManager.GetStylePreset("CrossMark"));
     style.Bind(styleHelper, "Color", "back color");
 }
Exemplo n.º 11
0
 private void BindStyle()
 {
     style.Bind(styleHelper, "Color", "color");
     style.Bind(styleHelper, "GridDivisions", "divisions");
 }
Exemplo n.º 12
0
 private void BindStyle()
 {
     DrawingStyle.SanityCheck(style, ToolManager.GetStylePreset("Angle"));
     style.Bind(styleHelper, "Bicolor", "line color");
 }
Exemplo n.º 13
0
 private void BindStyle()
 {
     DrawingStyle.SanityCheck(style, ToolManager.GetStylePreset("Label"));
     style.Bind(styleHelper, "Bicolor", "back color");
     style.Bind(styleHelper, "Font", "font size");
 }
Exemplo n.º 14
0
 private void BindStyle()
 {
     m_Style.Bind(m_StyleHelper, "Color", "color");
     m_Style.Bind(m_StyleHelper, "LineSize", "line size");
     m_Style.Bind(m_StyleHelper, "LineEnding", "arrows");
 }
Exemplo n.º 15
0
 private void BindStyle()
 {
     m_Style.Bind(m_StyleHelper, "Bicolor", "color");
     m_Style.Bind(m_StyleHelper, "Font", "font size");
 }
Exemplo n.º 16
0
 private void BindStyle()
 {
     style.Bind(styleHelper, "Color", "color");
     style.Bind(styleHelper, "LineSize", "pen size");
 }
Exemplo n.º 17
0
 private void BindStyle()
 {
     m_Style.Bind(m_StyleHelper, "Color", "color");
 }
Exemplo n.º 18
0
 private void BindStyle()
 {
     style.Bind(styleHelper, "Color", "back color");
 }