public void InitializeComponent() {
     if (_contentLoaded) {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/iServerJava6R_SampleCode;component/iServerJava6R/iServerJava6RDistanceQueryTest." +
                 "xaml", System.UriKind.Relative));
     this.LayoutRoot = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.LineSelectStyle = ((SuperMap.Web.Core.LineStyle)(this.FindName("LineSelectStyle")));
     this.SelectStyle = ((SuperMap.Web.Core.FillStyle)(this.FindName("SelectStyle")));
     this.MyMap = ((SuperMap.Web.Mapping.Map)(this.FindName("MyMap")));
     this.Point = ((System.Windows.Controls.Button)(this.FindName("Point")));
     this.Line = ((System.Windows.Controls.Button)(this.FindName("Line")));
     this.Region = ((System.Windows.Controls.Button)(this.FindName("Region")));
     this.Pan = ((System.Windows.Controls.Button)(this.FindName("Pan")));
     this.clearFeatures = ((System.Windows.Controls.Button)(this.FindName("clearFeatures")));
     this.clear = ((System.Windows.Controls.Image)(this.FindName("clear")));
     this.MyStackPanel = ((System.Windows.Controls.StackPanel)(this.FindName("MyStackPanel")));
     this.MyTextBox = ((System.Windows.Controls.TextBox)(this.FindName("MyTextBox")));
     this.FindNearest = ((System.Windows.Controls.CheckBox)(this.FindName("FindNearest")));
     this.mycb = ((System.Windows.Controls.ComboBox)(this.FindName("mycb")));
     this.cb1 = ((System.Windows.Controls.ComboBoxItem)(this.FindName("cb1")));
     this.cb2 = ((System.Windows.Controls.ComboBoxItem)(this.FindName("cb2")));
     this.MyDataGrid = ((SuperMap.Web.Controls.FeatureDataGrid)(this.FindName("MyDataGrid")));
 }
 public void InitializeComponent() {
     if (_contentLoaded) {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/iServerJava6R_SampleCode;component/iServerJava6R/iServerJava6RSQLQueryTest.xaml", System.UriKind.Relative));
     this.LayoutRoot = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.LineSelectStyle = ((SuperMap.Web.Core.LineStyle)(this.FindName("LineSelectStyle")));
     this.SelectStyle = ((SuperMap.Web.Core.FillStyle)(this.FindName("SelectStyle")));
     this.MyMap = ((SuperMap.Web.Mapping.Map)(this.FindName("MyMap")));
     this.MyTextBox = ((System.Windows.Controls.TextBox)(this.FindName("MyTextBox")));
     this.mycb = ((System.Windows.Controls.ComboBox)(this.FindName("mycb")));
     this.cb1 = ((System.Windows.Controls.ComboBoxItem)(this.FindName("cb1")));
     this.cb2 = ((System.Windows.Controls.ComboBoxItem)(this.FindName("cb2")));
     this.Query = ((System.Windows.Controls.Button)(this.FindName("Query")));
     this.MyDataGrid = ((SuperMap.Web.Controls.FeatureDataGrid)(this.FindName("MyDataGrid")));
 }
 public void InitializeComponent() {
     if (_contentLoaded) {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/iServerJava6R_SampleCode;component/Extension/CustomLineStyle.xaml", System.UriKind.Relative));
     this.LayoutRoot = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.MyLineStyle1 = ((SuperMap.Web.Core.LineStyle)(this.FindName("MyLineStyle1")));
     this.MyLineStyle2 = ((SuperMap.Web.Core.LineStyle)(this.FindName("MyLineStyle2")));
     this.MyLineStyle3 = ((SuperMap.Web.Core.LineStyle)(this.FindName("MyLineStyle3")));
     this.MyLineStyle4 = ((SuperMap.Web.Core.PredefinedLineStyle)(this.FindName("MyLineStyle4")));
     this.MyLineStyle5 = ((SuperMap.Web.Core.PredefinedLineStyle)(this.FindName("MyLineStyle5")));
     this.MyLineStyle6 = ((SuperMap.Web.Core.PredefinedLineStyle)(this.FindName("MyLineStyle6")));
     this.MyLineStyle7 = ((SuperMap.Web.Core.PredefinedLineStyle)(this.FindName("MyLineStyle7")));
     this.MyLineStyle8 = ((SuperMap.Web.Core.PredefinedLineStyle)(this.FindName("MyLineStyle8")));
     this.MyLineStyle9 = ((SuperMap.Web.Core.LineStyle)(this.FindName("MyLineStyle9")));
     this.MyLineStyle10 = ((SuperMap.Web.Core.LineStyle)(this.FindName("MyLineStyle10")));
     this.MyMap = ((SuperMap.Web.Mapping.Map)(this.FindName("MyMap")));
 }