public SimpleLineSymbol()
        {
            simplemarkersymbol = new GISServer.Core.Client.Symbols.SimpleLineSymbol();
            InitializeComponent();

            UpdateJSONforInitialUI();
        }
        public SimpleLineSymbol()
        {
            simplemarkersymbol = new GISServer.Core.Client.Symbols.SimpleLineSymbol();
            InitializeComponent();

            UpdateJSONforInitialUI();
        }
        private void UpdateUI(GISServer.Core.Client.Symbols.SimpleLineSymbol simplemarkersymbol)
        {
            txttype.Text  = simplemarkersymbol.Type;
            txtwidth.Text = simplemarkersymbol.Width.ToString();

            var colorbrush = new SolidColorBrush
            {
                Color = new System.Windows.Media.Color
                {
                    R = simplemarkersymbol.Color[0],
                    G = simplemarkersymbol.Color[1],
                    B = simplemarkersymbol.Color[2],
                    A = simplemarkersymbol.Color[3]
                }
            };

            reccolor.Fill = colorbrush;

            switch (simplemarkersymbol.Style)
            {
            case "esriSLSDash":
                cbxstyle.SelectedIndex = 0;
                break;

            case "esriSLSDashDotDot":
                cbxstyle.SelectedIndex = 1;
                break;

            case "esriSLSDot":
                cbxstyle.SelectedIndex = 2;
                break;

            case "esriSLSNull":
                cbxstyle.SelectedIndex = 3;
                break;

            case "esriSLSSolid":
                cbxstyle.SelectedIndex = 4;
                break;

            default:
                break;
            }
        }