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");
 }
Exemple #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");
 }
Exemple #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");
 }
Exemple #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");
 }
Exemple #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");
 }
Exemple #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");
 }
Exemple #10
0
 private void BindStyle()
 {
     DrawingStyle.SanityCheck(style, ToolManager.GetStylePreset("CrossMark"));
     style.Bind(styleHelper, "Color", "back color");
 }
Exemple #11
0
 private void BindStyle()
 {
     style.Bind(styleHelper, "Color", "color");
     style.Bind(styleHelper, "GridDivisions", "divisions");
 }
Exemple #12
0
 private void BindStyle()
 {
     DrawingStyle.SanityCheck(style, ToolManager.GetStylePreset("Angle"));
     style.Bind(styleHelper, "Bicolor", "line color");
 }
Exemple #13
0
 private void BindStyle()
 {
     DrawingStyle.SanityCheck(style, ToolManager.GetStylePreset("Label"));
     style.Bind(styleHelper, "Bicolor", "back color");
     style.Bind(styleHelper, "Font", "font size");
 }
Exemple #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");
 }
Exemple #15
0
 private void BindStyle()
 {
     m_Style.Bind(m_StyleHelper, "Bicolor", "color");
     m_Style.Bind(m_StyleHelper, "Font", "font size");
 }
Exemple #16
0
 private void BindStyle()
 {
     style.Bind(styleHelper, "Color", "color");
     style.Bind(styleHelper, "LineSize", "pen size");
 }
Exemple #17
0
 private void BindStyle()
 {
     m_Style.Bind(m_StyleHelper, "Color", "color");
 }
Exemple #18
0
 private void BindStyle()
 {
     style.Bind(styleHelper, "Color", "back color");
 }