void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.win_SimulationWindow = ((StructureTools.SimWindow)(target));
                return;

            case 2:
                this.lab_ProjName = ((System.Windows.Controls.Label)(target));
                return;

            case 3:
                this.tbox_ProjName = ((System.Windows.Controls.TextBox)(target));
                return;

            case 4:
                this.lab_AreaWidth = ((System.Windows.Controls.Label)(target));
                return;

            case 5:
                this.tbox_AreaWidth = ((System.Windows.Controls.TextBox)(target));
                return;

            case 6:
                this.lab_AreaHeight = ((System.Windows.Controls.Label)(target));
                return;

            case 7:
                this.tbox_AreaHeight = ((System.Windows.Controls.TextBox)(target));
                return;

            case 8:
                this.lab_MCSteps = ((System.Windows.Controls.Label)(target));
                return;

            case 9:
                this.tbox_MCSteps = ((System.Windows.Controls.TextBox)(target));
                return;

            case 10:
                this.gbox_projectType = ((System.Windows.Controls.GroupBox)(target));
                return;

            case 11:
                this.rad_1 = ((System.Windows.Controls.RadioButton)(target));
                return;

            case 12:
                this.rad_2 = ((System.Windows.Controls.RadioButton)(target));
                return;

            case 13:
                this.rad_3 = ((System.Windows.Controls.RadioButton)(target));
                return;

            case 14:
                this.rad_4 = ((System.Windows.Controls.RadioButton)(target));
                return;

            case 15:
                this.rad_5 = ((System.Windows.Controls.RadioButton)(target));
                return;

            case 16:
                this.rad_6 = ((System.Windows.Controls.RadioButton)(target));
                return;

            case 17:
                this.rad_7 = ((System.Windows.Controls.RadioButton)(target));
                return;

            case 18:
                this.rad_8 = ((System.Windows.Controls.RadioButton)(target));
                return;

            case 19:
                this.btn_SimCancel = ((System.Windows.Controls.Button)(target));

            #line 27 "..\..\SimWindow.xaml"
                this.btn_SimCancel.Click += new System.Windows.RoutedEventHandler(this.btn_SimCancel_Click);

            #line default
            #line hidden
                return;

            case 20:
                this.btn_SimOK = ((System.Windows.Controls.Button)(target));

            #line 28 "..\..\SimWindow.xaml"
                this.btn_SimOK.Click += new System.Windows.RoutedEventHandler(this.btn_SimOK_Click);

            #line default
            #line hidden
                return;

            case 21:
                this.btn_ImportExistingImage = ((System.Windows.Controls.Button)(target));

            #line 29 "..\..\SimWindow.xaml"
                this.btn_ImportExistingImage.Click += new System.Windows.RoutedEventHandler(this.btn_ImportExistingImage_Click);

            #line default
            #line hidden
                return;

            case 22:
                this.img_PreviewDisplay = ((System.Windows.Controls.Image)(target));
                return;

            case 23:
                this.btn_ClearImport = ((System.Windows.Controls.Button)(target));

            #line 31 "..\..\SimWindow.xaml"
                this.btn_ClearImport.Click += new System.Windows.RoutedEventHandler(this.btn_ClearImport_Click);

            #line default
            #line hidden
                return;

            case 24:
                this.btn_ImportFromProgram = ((System.Windows.Controls.Button)(target));

            #line 32 "..\..\SimWindow.xaml"
                this.btn_ImportFromProgram.Click += new System.Windows.RoutedEventHandler(this.btn_ImportFromProgram_Click);

            #line default
            #line hidden
                return;

            case 25:
                this.cbox_Periodic = ((System.Windows.Controls.CheckBox)(target));
                return;

            case 26:
                this.cbox_EnableMC = ((System.Windows.Controls.CheckBox)(target));

            #line 34 "..\..\SimWindow.xaml"
                this.cbox_EnableMC.Checked += new System.Windows.RoutedEventHandler(this.cbox_EnableMC_Checked);

            #line default
            #line hidden

            #line 34 "..\..\SimWindow.xaml"
                this.cbox_EnableMC.Unchecked += new System.Windows.RoutedEventHandler(this.cbox_EnableMC_Unchecked);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.win_SimulationPropertiesWindow = ((StructureTools.SimWindow)(target));
                return;

            case 2:
                this.lab_ProjName = ((System.Windows.Controls.Label)(target));
                return;

            case 3:
                this.tbox_ProjName = ((System.Windows.Controls.TextBox)(target));
                return;

            case 4:
                this.lab_AreaWidth = ((System.Windows.Controls.Label)(target));
                return;

            case 5:
                this.tbox_AreaWidth = ((System.Windows.Controls.TextBox)(target));
                return;

            case 6:
                this.lab_AreaLength = ((System.Windows.Controls.Label)(target));
                return;

            case 7:
                this.tbox_AreaLength = ((System.Windows.Controls.TextBox)(target));
                return;

            case 8:
                this.gbox_ProjType = ((System.Windows.Controls.GroupBox)(target));
                return;

            case 9:
                this.rad_SimTypeVoronoi = ((System.Windows.Controls.RadioButton)(target));
                return;

            case 10:
                this.rad_SimTypeCAMoore = ((System.Windows.Controls.RadioButton)(target));
                return;

            case 11:
                this.rad_SimTypeCAVN = ((System.Windows.Controls.RadioButton)(target));
                return;

            case 12:
                this.rad_SimTypeCAPentRand = ((System.Windows.Controls.RadioButton)(target));
                return;

            case 13:
                this.rad_SimTypeCAHexL = ((System.Windows.Controls.RadioButton)(target));
                return;

            case 14:
                this.rad_SimTypeCAHexR = ((System.Windows.Controls.RadioButton)(target));
                return;

            case 15:
                this.rad_SimTypeCAHexRand = ((System.Windows.Controls.RadioButton)(target));
                return;

            case 16:
                this.btn_SimCancel = ((System.Windows.Controls.Button)(target));
                return;

            case 17:
                this.btn_SimOK = ((System.Windows.Controls.Button)(target));
                return;

            case 18:
                this.btn_ImportExistingImage = ((System.Windows.Controls.Button)(target));
                return;

            case 19:
                this.img_PreviewDisplay = ((System.Windows.Controls.Image)(target));
                return;

            case 20:
                this.cbox_EnableMC = ((System.Windows.Controls.CheckBox)(target));
                return;

            case 21:
                this.lab_MCSteps = ((System.Windows.Controls.Label)(target));
                return;

            case 22:
                this.tbox_MCSteps = ((System.Windows.Controls.TextBox)(target));
                return;

            case 23:
                this.cbox_MCEveryOnce = ((System.Windows.Controls.CheckBox)(target));
                return;

            case 24:
                this.cbox_MCBoundariesOnly = ((System.Windows.Controls.CheckBox)(target));
                return;

            case 25:
                this.btn_Help = ((System.Windows.Controls.Button)(target));
                return;
            }
            this._contentLoaded = true;
        }