Пример #1
0
        public void BigMap4SmallMap(StageItem si)
        {
            //北方向
            this.northLeft.Source = si.northLeft.Source;
            this.northStraight.Source = si.northStraight.Source;
            this.northRight.Source = si.northRight.Source;
            this.northOther.Source = si.northOther.Source;
            this.northPedestrain1.Source = si.northPedestrain1.Source;
            this.northPedestrain2.Source = si.northPedestrain2.Source;

            this.southLeft.Source = si.southLeft.Source;
            this.southStraight.Source = si.southStraight.Source;
            this.southRight.Source = si.southRight.Source;
            this.southOther.Source = si.southOther.Source;
            this.southPedestrain1.Source = si.southPedestrain1.Source;
            this.southPedestrain2.Source = si.southPedestrain2.Source;

            this.eastLeft.Source = si.eastLeft.Source;
            this.eastStraight.Source = si.eastStraight.Source;
            this.eastRight.Source = si.eastRight.Source;
            this.eastOther.Source = si.eastOther.Source;
            this.eastPedestrain1.Source = si.eastPedestrain1.Source;
            this.eastPedestrain2.Source = si.eastPedestrain2.Source;

            this.westLeft.Source = si.westLeft.Source;
            this.westStraight.Source = si.westStraight.Source;
            this.westRight.Source = si.westRight.Source;
            this.westOther.Source = si.westOther.Source;
            this.westPedestrain1.Source = si.westPedestrain1.Source;
            this.westPedestrain2.Source = si.westPedestrain2.Source;
        }
Пример #2
0
 private void stage1_MouseDown(object sender, System.Windows.Input.MouseButtonEventArgs e)
 {
     currentStage = stage1;
     BigMap4SmallMap(currentStage);
     smallMap4Form(currentStage);
 }
Пример #3
0
        private void createStageByInitArllowRed(StageItem si)
        {
            si.northLeft.Source = new BitmapImage(new Uri("/tscui;component/Resources/Images/redlight.png", UriKind.Relative));
            si.northOther.Source = new BitmapImage(new Uri("/tscui;component/Resources/Images/redlight.png", UriKind.Relative));
            si.northRight.Source = new BitmapImage(new Uri("/tscui;component/Resources/Images/redlight.png", UriKind.Relative));
            si.northStraight.Source = new BitmapImage(new Uri("/tscui;component/Resources/Images/redlight.png", UriKind.Relative));
            si.northPedestrain1.Source = new BitmapImage(new Uri("/tscui;component/Resources/Images/redlight1.png", UriKind.Relative));
            si.northPedestrain2.Source = new BitmapImage(new Uri("/tscui;component/Resources/Images/redlight1.png", UriKind.Relative));

            si.eastLeft.Source = new BitmapImage(new Uri("/tscui;component/Resources/Images/redlight1.png", UriKind.Relative));
            si.eastOther.Source = new BitmapImage(new Uri("/tscui;component/Resources/Images/redlight1.png", UriKind.Relative));
            si.eastRight.Source = new BitmapImage(new Uri("/tscui;component/Resources/Images/redlight1.png", UriKind.Relative));
            si.eastStraight.Source = new BitmapImage(new Uri("/tscui;component/Resources/Images/redlight1.png", UriKind.Relative));
            si.eastPedestrain1.Source = new BitmapImage(new Uri("/tscui;component/Resources/Images/redlight.png", UriKind.Relative));
            si.eastPedestrain2.Source = new BitmapImage(new Uri("/tscui;component/Resources/Images/redlight.png", UriKind.Relative));

            si.southLeft.Source = new BitmapImage(new Uri("/tscui;component/Resources/Images/redlight.png", UriKind.Relative));
            si.southOther.Source = new BitmapImage(new Uri("/tscui;component/Resources/Images/redlight.png", UriKind.Relative));
            si.southRight.Source = new BitmapImage(new Uri("/tscui;component/Resources/Images/redlight.png", UriKind.Relative));
            si.southStraight.Source = new BitmapImage(new Uri("/tscui;component/Resources/Images/redlight.png", UriKind.Relative));
            si.southPedestrain1.Source = new BitmapImage(new Uri("/tscui;component/Resources/Images/redlight1.png", UriKind.Relative));
            si.southPedestrain2.Source = new BitmapImage(new Uri("/tscui;component/Resources/Images/redlight1.png", UriKind.Relative));

            si.westLeft.Source = new BitmapImage(new Uri("/tscui;component/Resources/Images/redlight1.png", UriKind.Relative));
            si.westOther.Source = new BitmapImage(new Uri("/tscui;component/Resources/Images/redlight1.png", UriKind.Relative));
            si.westRight.Source = new BitmapImage(new Uri("/tscui;component/Resources/Images/redlight1.png", UriKind.Relative));
            si.westStraight.Source = new BitmapImage(new Uri("/tscui;component/Resources/Images/redlight1.png", UriKind.Relative));
            si.westPedestrain1.Source = new BitmapImage(new Uri("/tscui;component/Resources/Images/redlight.png", UriKind.Relative));
            si.westPedestrain2.Source = new BitmapImage(new Uri("/tscui;component/Resources/Images/redlight.png", UriKind.Relative));
        }
Пример #4
0
        private void setPatternAndStagePattern(List<Pattern> lp ,List<StagePattern> lsp , StageItem currentStage,PhaseToDirec ptd)
        {
            //半断是新增加stage还是,老的更新用的
            Pattern ptemp= null;
           // List<Pattern> lptemp = new List<Pattern>();
            bool newPattern = false;
            bool oldPattern = false;
            foreach(Pattern p in lp)
            {
               
                if (sldSchemeId.Value == p.ucPatternId )
                {
                    p.ucCoorPhase = Convert.ToByte(cbxCoordination.SelectedItem);
                    p.ucCycleTime = Convert.ToByte(tbxCycle.Text);
                    p.ucOffset = Convert.ToByte(tbxOffset.Text);
                    p.ucPatternId = Convert.ToByte(sldSchemeId.Value);
                    p.ucStagePatternId = Convert.ToByte(sldStagePatternId.Value);
                    oldPattern = true;
                    //if (sldStagePatternId.Value == p.ucStagePatternId)
                    //{
                    //    p.ucCoorPhase = Convert.ToByte(cbxCoordination.SelectedItem);
                    //    p.ucCycleTime = Convert.ToByte(tbxCycle.Text);
                    //    p.ucOffset = Convert.ToByte(tbxOffset.Text);
                    //    p.ucPatternId = Convert.ToByte(sldSchemeId.Value);
                    //    p.ucStagePatternId = Convert.ToByte(sldStagePatternId.Value);
                    //}
                    //else
                    //{
                       
                    //}
                    //p.ucPatternId = Convert.ToByte(sldSchemeId.Value);
                    //p.ucStagePatternId = Convert.ToByte(sldStagePatternId.Value);
                    //ptemp = null;
                }
                else
                {
                    newPattern = true;
                }
            
            }
            if (!oldPattern)
            {
                if (newPattern)
                {
                    ptemp = new Pattern();
                    ptemp.ucCoorPhase = Convert.ToByte(cbxCoordination.SelectedItem);
                    ptemp.ucCycleTime = Convert.ToByte(tbxCycle.Text);
                    ptemp.ucOffset = Convert.ToByte(tbxOffset.Text);
                    ptemp.ucPatternId = Convert.ToByte(sldSchemeId.Value);
                    ptemp.ucStagePatternId = Convert.ToByte(sldStagePatternId.Value);
                    lp.Add(ptemp);
                }
               
            }
            //if (!lp.Contains(ptemp))//这里主要 是,新的方案号需要增加。旧的方案,不用进行增加,
            //{
                
            //}
           
            

            foreach (StagePattern sp in lsp)
            {
                if (sp.ucStagePatternId == sldStagePatternId.Value)
                {
                    
                    if (sp.ucStageNo == Convert.ToByte(currentStage.lblNumber.Content))
                    {
                        sp.ucStagePatternId = Convert.ToByte(sldStagePatternId.Value);
                        sp.ucStageNo = Convert.ToByte(currentStage.lblNumber.Content);
                        sp.ucGreenTime = Convert.ToByte(sldGreenTime.Value);
                        sp.ucYellowTime = Convert.ToByte(sldYellowTime.Value);
                        sp.ucRedTime = Convert.ToByte(sldRedTime.Value);
                        sp.ucOption = returnReactionTrueOrFalse();
                        sp.usAllowPhase = returnAllowPhase(ptd.ucPhase, sp.usAllowPhase);
                        Console.WriteLine(sp.usAllowPhase);
                        break;
                    }
                    else if(sp.ucStageNo == 0)
                    {
                        sp.ucStagePatternId = Convert.ToByte(sldStagePatternId.Value);
                        sp.ucStageNo = Convert.ToByte(currentStage.lblNumber.Content);
                        sp.ucGreenTime = Convert.ToByte(sldGreenTime.Value);
                        sp.ucYellowTime = Convert.ToByte(sldYellowTime.Value);
                        sp.ucRedTime = Convert.ToByte(sldRedTime.Value);
                        sp.ucOption = returnReactionTrueOrFalse();
                        sp.usAllowPhase = returnAllowPhase(ptd.ucPhase, sp.usAllowPhase);
                        Console.WriteLine(sp.usAllowPhase);
                        break;
                    }
                    else
                    {
                        //MessageBox.Show("研发专用,程序异常。没有进行stage,stageNo 不为0,也不为小图上的编号\n");
                    }
                }
            }
               
        }
Пример #5
0
 private void clearStageByDeleteStage(TscData t,StageItem si)
 {
     List<StagePattern> lsp = t.ListStagePattern;
     foreach(StagePattern sp in lsp)
     {
         if(sldStagePatternId.Value == sp.ucStagePatternId)
         {
             if (sp.ucStageNo == Convert.ToByte(si.lblNumber.Content))
             {
                 sp.ucStageNo = 0;
                 sp.ucGreenTime = 0;
                 sp.ucOption = 0;
                 sp.ucRedTime = 0;
                 sp.ucYellowTime = 0;
                 sp.usAllowPhase = 0;
             }
         }
         
     }
 }
Пример #6
0
 private void UserControl_Loaded(object sender, RoutedEventArgs e)
 {
     //初始化当前阶段
     currentStage = stage1;
     //初始化各个阶段的编号
     Thread tStageNum = new Thread(DispatcherInitStageNum);
     tStageNum.IsBackground = true;
     tStageNum.Start();
    // initStageNumber();
     Thread tStageItem = new Thread(DispatcherInitStageItem);
     tStageItem.IsBackground = true;
     tStageItem.Start();
    // initStageItemList();
     Thread tCoordination = new Thread(DispatcherInitCoordination);
     tCoordination.IsBackground = true;
     tCoordination.Start();
     
     //initcbxCoordination();
     //初始化所有数据到界面上
     t = Utils.Utils.GetTscDataByApplicationCurrentProperties();
     if (t == null)
     {
         MessageBox.Show("请选择一台信号机后,切换到此界面!");
         return;
     }
     //initStageAttriable(t);
     
 }
Пример #7
0
 private void stage16_MouseDown(object sender, System.Windows.Input.MouseButtonEventArgs e)
 {
     currentStage = stage16;
     smallMap4Form(currentStage);
     BigMap4SmallMap(currentStage); //MessageBox.Show("stage1");
 }
Пример #8
0
        /// <summary>
        /// 通过点击小图,可以将数据更新给
        /// 周期
        /// 相位差
        /// 协调相位
        /// 感应
        /// 红灯时间
        /// 绿灯时间
        /// 黄灯时间
        /// </summary>
        /// <param name="currentStage"></param>
        private void smallMap4Form(StageItem currentStage)
        {
            TscData t = Utils.Utils.GetTscDataByApplicationCurrentProperties();
            List<StagePattern> lsp = t.ListStagePattern;
            List<Pattern> lp = t.ListPattern;

            foreach (Pattern p in lp)
            {
                if (sldSchemeId.Value == p.ucPatternId)
                {
                    if (p.ucStagePatternId == sldStagePatternId.Value)
                    {
                        //sldSchemeId.Value = p.ucPatternId;
                        tbxCycle.Text = p.ucCycleTime.ToString();
                        tbxOffset.Text = p.ucOffset.ToString();
                        cbxCoordination.SelectedItem = p.ucCoorPhase;
                        cbxReaction.IsChecked = false;
                    }
                    foreach (StagePattern sp in lsp)
                    {
                        
                        if (sp.ucStageNo == Convert.ToByte(currentStage.lblNumber.Content.ToString()))
                        {
                            //sldStagePatternId.Value = sp.ucStagePatternId;
                            sldGreenTime.Value = sp.ucGreenTime;
                            sldYellowTime.Value = sp.ucYellowTime;
                            sldRedTime.Value = sp.ucRedTime;

                        }
                    }
                }
                
                
            }
            


        }
Пример #9
0
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     
     #line 13 "..\..\..\..\Pages\Stage\StageView.xaml"
     ((tscui.Pages.Stage.StageView)(target)).Loaded += new System.Windows.RoutedEventHandler(this.UserControl_Loaded);
     
     #line default
     #line hidden
     
     #line 13 "..\..\..\..\Pages\Stage\StageView.xaml"
     ((tscui.Pages.Stage.StageView)(target)).Unloaded += new System.Windows.RoutedEventHandler(this.UserControl_Unloaded);
     
     #line default
     #line hidden
     return;
     case 2:
     this.viewModel = ((tscui.Pages.Stage.StageViewModel)(target));
     return;
     case 3:
     this.northLeft = ((System.Windows.Controls.Image)(target));
     
     #line 26 "..\..\..\..\Pages\Stage\StageView.xaml"
     this.northLeft.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.northLeft_MouseDown);
     
     #line default
     #line hidden
     
     #line 26 "..\..\..\..\Pages\Stage\StageView.xaml"
     this.northLeft.MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.northLeft_MouseLeftButtonDown);
     
     #line default
     #line hidden
     
     #line 26 "..\..\..\..\Pages\Stage\StageView.xaml"
     this.northLeft.MouseRightButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.northLeft_MouseRightButtonDown);
     
     #line default
     #line hidden
     return;
     case 4:
     this.northStraight = ((System.Windows.Controls.Image)(target));
     
     #line 31 "..\..\..\..\Pages\Stage\StageView.xaml"
     this.northStraight.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.northStraight_MouseDown);
     
     #line default
     #line hidden
     
     #line 31 "..\..\..\..\Pages\Stage\StageView.xaml"
     this.northStraight.MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.northStraight_MouseLeftButtonDown);
     
     #line default
     #line hidden
     
     #line 31 "..\..\..\..\Pages\Stage\StageView.xaml"
     this.northStraight.MouseRightButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.northStraight_MouseRightButtonDown);
     
     #line default
     #line hidden
     return;
     case 5:
     this.northOther = ((System.Windows.Controls.Image)(target));
     
     #line 36 "..\..\..\..\Pages\Stage\StageView.xaml"
     this.northOther.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.northOther_MouseDown);
     
     #line default
     #line hidden
     
     #line 36 "..\..\..\..\Pages\Stage\StageView.xaml"
     this.northOther.MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.northOther_MouseLeftButtonDown);
     
     #line default
     #line hidden
     
     #line 36 "..\..\..\..\Pages\Stage\StageView.xaml"
     this.northOther.MouseRightButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.northOther_MouseRightButtonDown);
     
     #line default
     #line hidden
     return;
     case 6:
     this.westRight = ((System.Windows.Controls.Image)(target));
     
     #line 41 "..\..\..\..\Pages\Stage\StageView.xaml"
     this.westRight.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.westRight_MouseDown);
     
     #line default
     #line hidden
     
     #line 41 "..\..\..\..\Pages\Stage\StageView.xaml"
     this.westRight.MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.westRight_MouseLeftButtonDown);
     
     #line default
     #line hidden
     
     #line 41 "..\..\..\..\Pages\Stage\StageView.xaml"
     this.westRight.MouseRightButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.westRight_MouseRightButtonDown);
     
     #line default
     #line hidden
     return;
     case 7:
     this.westLeft = ((System.Windows.Controls.Image)(target));
     
     #line 46 "..\..\..\..\Pages\Stage\StageView.xaml"
     this.westLeft.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.westLeft_MouseDown);
     
     #line default
     #line hidden
     
     #line 46 "..\..\..\..\Pages\Stage\StageView.xaml"
     this.westLeft.MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.westLeft_MouseLeftButtonDown);
     
     #line default
     #line hidden
     
     #line 46 "..\..\..\..\Pages\Stage\StageView.xaml"
     this.westLeft.MouseRightButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.westLeft_MouseRightButtonDown);
     
     #line default
     #line hidden
     return;
     case 8:
     this.southPedestrain2 = ((System.Windows.Controls.Image)(target));
     
     #line 51 "..\..\..\..\Pages\Stage\StageView.xaml"
     this.southPedestrain2.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.southPedestrain2_MouseDown);
     
     #line default
     #line hidden
     
     #line 51 "..\..\..\..\Pages\Stage\StageView.xaml"
     this.southPedestrain2.MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.southPedestrain2_MouseLeftButtonDown);
     
     #line default
     #line hidden
     
     #line 51 "..\..\..\..\Pages\Stage\StageView.xaml"
     this.southPedestrain2.MouseRightButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.southPedestrain2_MouseRightButtonDown);
     
     #line default
     #line hidden
     return;
     case 9:
     this.southPedestrain1 = ((System.Windows.Controls.Image)(target));
     
     #line 56 "..\..\..\..\Pages\Stage\StageView.xaml"
     this.southPedestrain1.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.southPedestrain1_MouseDown);
     
     #line default
     #line hidden
     
     #line 56 "..\..\..\..\Pages\Stage\StageView.xaml"
     this.southPedestrain1.MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.southPedestrain1_MouseLeftButtonDown);
     
     #line default
     #line hidden
     
     #line 56 "..\..\..\..\Pages\Stage\StageView.xaml"
     this.southPedestrain1.MouseRightButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.southPedestrain1_MouseRightButtonDown);
     
     #line default
     #line hidden
     return;
     case 10:
     this.northPedestrain1 = ((System.Windows.Controls.Image)(target));
     
     #line 61 "..\..\..\..\Pages\Stage\StageView.xaml"
     this.northPedestrain1.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.northPedestrain1_MouseDown);
     
     #line default
     #line hidden
     
     #line 61 "..\..\..\..\Pages\Stage\StageView.xaml"
     this.northPedestrain1.MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.northPedestrain1_MouseLeftButtonDown);
     
     #line default
     #line hidden
     
     #line 61 "..\..\..\..\Pages\Stage\StageView.xaml"
     this.northPedestrain1.MouseRightButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.northPedestrain1_MouseRightButtonDown);
     
     #line default
     #line hidden
     return;
     case 11:
     this.northPedestrain2 = ((System.Windows.Controls.Image)(target));
     
     #line 66 "..\..\..\..\Pages\Stage\StageView.xaml"
     this.northPedestrain2.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.northPedestrain2_MouseDown);
     
     #line default
     #line hidden
     
     #line 66 "..\..\..\..\Pages\Stage\StageView.xaml"
     this.northPedestrain2.MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.northPedestrain2_MouseLeftButtonDown);
     
     #line default
     #line hidden
     
     #line 66 "..\..\..\..\Pages\Stage\StageView.xaml"
     this.northPedestrain2.MouseRightButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.northPedestrain2_MouseRightButtonDown);
     
     #line default
     #line hidden
     return;
     case 12:
     this.westOther = ((System.Windows.Controls.Image)(target));
     
     #line 71 "..\..\..\..\Pages\Stage\StageView.xaml"
     this.westOther.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.westOther_MouseDown);
     
     #line default
     #line hidden
     
     #line 71 "..\..\..\..\Pages\Stage\StageView.xaml"
     this.westOther.MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.westOther_MouseLeftButtonDown);
     
     #line default
     #line hidden
     
     #line 71 "..\..\..\..\Pages\Stage\StageView.xaml"
     this.westOther.MouseRightButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.westOther_MouseRightButtonDown);
     
     #line default
     #line hidden
     return;
     case 13:
     this.eastRight = ((System.Windows.Controls.Image)(target));
     
     #line 76 "..\..\..\..\Pages\Stage\StageView.xaml"
     this.eastRight.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.eastRight_MouseDown);
     
     #line default
     #line hidden
     
     #line 76 "..\..\..\..\Pages\Stage\StageView.xaml"
     this.eastRight.MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.eastRight_MouseLeftButtonDown);
     
     #line default
     #line hidden
     
     #line 76 "..\..\..\..\Pages\Stage\StageView.xaml"
     this.eastRight.MouseRightButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.eastRight_MouseRightButtonDown);
     
     #line default
     #line hidden
     return;
     case 14:
     this.eastStraight = ((System.Windows.Controls.Image)(target));
     
     #line 81 "..\..\..\..\Pages\Stage\StageView.xaml"
     this.eastStraight.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.eastStraight_MouseDown);
     
     #line default
     #line hidden
     
     #line 81 "..\..\..\..\Pages\Stage\StageView.xaml"
     this.eastStraight.MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.eastStraight_MouseLeftButtonDown);
     
     #line default
     #line hidden
     
     #line 81 "..\..\..\..\Pages\Stage\StageView.xaml"
     this.eastStraight.MouseRightButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.eastStraight_MouseRightButtonDown);
     
     #line default
     #line hidden
     return;
     case 15:
     this.eastLeft = ((System.Windows.Controls.Image)(target));
     
     #line 86 "..\..\..\..\Pages\Stage\StageView.xaml"
     this.eastLeft.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.eastLeft_MouseDown);
     
     #line default
     #line hidden
     
     #line 86 "..\..\..\..\Pages\Stage\StageView.xaml"
     this.eastLeft.MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.eastLeft_MouseLeftButtonDown);
     
     #line default
     #line hidden
     
     #line 86 "..\..\..\..\Pages\Stage\StageView.xaml"
     this.eastLeft.MouseRightButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.eastLeft_MouseRightButtonDown);
     
     #line default
     #line hidden
     return;
     case 16:
     this.southLeft = ((System.Windows.Controls.Image)(target));
     
     #line 91 "..\..\..\..\Pages\Stage\StageView.xaml"
     this.southLeft.MouseRightButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.southLeft_MouseRightButtonDown);
     
     #line default
     #line hidden
     
     #line 91 "..\..\..\..\Pages\Stage\StageView.xaml"
     this.southLeft.MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.southLeft_MouseLeftButtonDown);
     
     #line default
     #line hidden
     return;
     case 17:
     this.westPedestrain2 = ((System.Windows.Controls.Image)(target));
     
     #line 96 "..\..\..\..\Pages\Stage\StageView.xaml"
     this.westPedestrain2.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.westPedestrain2_MouseDown);
     
     #line default
     #line hidden
     
     #line 96 "..\..\..\..\Pages\Stage\StageView.xaml"
     this.westPedestrain2.MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.westPedestrain2_MouseLeftButtonDown);
     
     #line default
     #line hidden
     
     #line 96 "..\..\..\..\Pages\Stage\StageView.xaml"
     this.westPedestrain2.MouseRightButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.westPedestrain2_MouseRightButtonDown);
     
     #line default
     #line hidden
     return;
     case 18:
     this.eastPedestrain2 = ((System.Windows.Controls.Image)(target));
     
     #line 101 "..\..\..\..\Pages\Stage\StageView.xaml"
     this.eastPedestrain2.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.eastPedestrain2_MouseDown);
     
     #line default
     #line hidden
     
     #line 101 "..\..\..\..\Pages\Stage\StageView.xaml"
     this.eastPedestrain2.MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.eastPedestrain2_MouseLeftButtonDown);
     
     #line default
     #line hidden
     
     #line 101 "..\..\..\..\Pages\Stage\StageView.xaml"
     this.eastPedestrain2.MouseRightButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.eastPedestrain2_MouseRightButtonDown);
     
     #line default
     #line hidden
     return;
     case 19:
     this.eastPedestrain1 = ((System.Windows.Controls.Image)(target));
     
     #line 106 "..\..\..\..\Pages\Stage\StageView.xaml"
     this.eastPedestrain1.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.eastPedestrain1_MouseDown);
     
     #line default
     #line hidden
     
     #line 106 "..\..\..\..\Pages\Stage\StageView.xaml"
     this.eastPedestrain1.MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.eastPedestrain1_MouseLeftButtonDown);
     
     #line default
     #line hidden
     
     #line 106 "..\..\..\..\Pages\Stage\StageView.xaml"
     this.eastPedestrain1.MouseRightButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.eastPedestrain1_MouseRightButtonDown);
     
     #line default
     #line hidden
     return;
     case 20:
     this.westPedestrain1 = ((System.Windows.Controls.Image)(target));
     
     #line 111 "..\..\..\..\Pages\Stage\StageView.xaml"
     this.westPedestrain1.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.westPedestrain1_MouseDown);
     
     #line default
     #line hidden
     
     #line 111 "..\..\..\..\Pages\Stage\StageView.xaml"
     this.westPedestrain1.MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.westPedestrain1_MouseLeftButtonDown);
     
     #line default
     #line hidden
     
     #line 111 "..\..\..\..\Pages\Stage\StageView.xaml"
     this.westPedestrain1.MouseRightButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.westPedestrain1_MouseRightButtonDown);
     
     #line default
     #line hidden
     return;
     case 21:
     this.southStraight = ((System.Windows.Controls.Image)(target));
     
     #line 116 "..\..\..\..\Pages\Stage\StageView.xaml"
     this.southStraight.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.southStraight_MouseDown);
     
     #line default
     #line hidden
     
     #line 116 "..\..\..\..\Pages\Stage\StageView.xaml"
     this.southStraight.MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.southStraight_MouseLeftButtonDown);
     
     #line default
     #line hidden
     
     #line 116 "..\..\..\..\Pages\Stage\StageView.xaml"
     this.southStraight.MouseRightButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.southStraight_MouseRightButtonDown);
     
     #line default
     #line hidden
     return;
     case 22:
     this.southRight = ((System.Windows.Controls.Image)(target));
     
     #line 121 "..\..\..\..\Pages\Stage\StageView.xaml"
     this.southRight.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.southRight_MouseDown);
     
     #line default
     #line hidden
     
     #line 121 "..\..\..\..\Pages\Stage\StageView.xaml"
     this.southRight.MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.southRight_MouseLeftButtonDown);
     
     #line default
     #line hidden
     
     #line 121 "..\..\..\..\Pages\Stage\StageView.xaml"
     this.southRight.MouseRightButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.southRight_MouseRightButtonDown);
     
     #line default
     #line hidden
     return;
     case 23:
     this.northRight = ((System.Windows.Controls.Image)(target));
     
     #line 126 "..\..\..\..\Pages\Stage\StageView.xaml"
     this.northRight.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.northRight_MouseDown);
     
     #line default
     #line hidden
     
     #line 126 "..\..\..\..\Pages\Stage\StageView.xaml"
     this.northRight.MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.northRight_MouseLeftButtonDown);
     
     #line default
     #line hidden
     
     #line 126 "..\..\..\..\Pages\Stage\StageView.xaml"
     this.northRight.MouseRightButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.northRight_MouseRightButtonDown);
     
     #line default
     #line hidden
     return;
     case 24:
     this.southOther = ((System.Windows.Controls.Image)(target));
     
     #line 131 "..\..\..\..\Pages\Stage\StageView.xaml"
     this.southOther.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.southOther_MouseDown);
     
     #line default
     #line hidden
     
     #line 131 "..\..\..\..\Pages\Stage\StageView.xaml"
     this.southOther.MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.southOther_MouseLeftButtonDown);
     
     #line default
     #line hidden
     
     #line 131 "..\..\..\..\Pages\Stage\StageView.xaml"
     this.southOther.MouseRightButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.southOther_MouseRightButtonDown);
     
     #line default
     #line hidden
     return;
     case 25:
     this.westStraight = ((System.Windows.Controls.Image)(target));
     
     #line 136 "..\..\..\..\Pages\Stage\StageView.xaml"
     this.westStraight.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.westStraight_MouseDown);
     
     #line default
     #line hidden
     
     #line 136 "..\..\..\..\Pages\Stage\StageView.xaml"
     this.westStraight.MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.westStraight_MouseLeftButtonDown);
     
     #line default
     #line hidden
     
     #line 136 "..\..\..\..\Pages\Stage\StageView.xaml"
     this.westStraight.MouseRightButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.westStraight_MouseRightButtonDown);
     
     #line default
     #line hidden
     return;
     case 26:
     this.eastOther = ((System.Windows.Controls.Image)(target));
     
     #line 141 "..\..\..\..\Pages\Stage\StageView.xaml"
     this.eastOther.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.eastOther_MouseDown);
     
     #line default
     #line hidden
     
     #line 141 "..\..\..\..\Pages\Stage\StageView.xaml"
     this.eastOther.MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.eastOther_MouseLeftButtonDown);
     
     #line default
     #line hidden
     
     #line 141 "..\..\..\..\Pages\Stage\StageView.xaml"
     this.eastOther.MouseRightButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.eastOther_MouseRightButtonDown);
     
     #line default
     #line hidden
     return;
     case 27:
     
     #line 146 "..\..\..\..\Pages\Stage\StageView.xaml"
     ((System.Windows.Controls.ScrollViewer)(target)).MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.ScrollViewer_MouseLeftButtonDown);
     
     #line default
     #line hidden
     
     #line 146 "..\..\..\..\Pages\Stage\StageView.xaml"
     ((System.Windows.Controls.ScrollViewer)(target)).MouseRightButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.ScrollViewer_MouseRightButtonDown);
     
     #line default
     #line hidden
     
     #line 146 "..\..\..\..\Pages\Stage\StageView.xaml"
     ((System.Windows.Controls.ScrollViewer)(target)).MouseDoubleClick += new System.Windows.Input.MouseButtonEventHandler(this.ScrollViewer_MouseDoubleClick);
     
     #line default
     #line hidden
     return;
     case 28:
     
     #line 147 "..\..\..\..\Pages\Stage\StageView.xaml"
     ((System.Windows.Controls.StackPanel)(target)).MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.StackPanel_MouseDown);
     
     #line default
     #line hidden
     return;
     case 29:
     this.stage1 = ((tscui.Pages.Stage.StageItem)(target));
     return;
     case 30:
     this.stage2 = ((tscui.Pages.Stage.StageItem)(target));
     return;
     case 31:
     this.stage3 = ((tscui.Pages.Stage.StageItem)(target));
     return;
     case 32:
     this.stage4 = ((tscui.Pages.Stage.StageItem)(target));
     return;
     case 33:
     this.stage5 = ((tscui.Pages.Stage.StageItem)(target));
     return;
     case 34:
     this.stage6 = ((tscui.Pages.Stage.StageItem)(target));
     return;
     case 35:
     this.stage7 = ((tscui.Pages.Stage.StageItem)(target));
     return;
     case 36:
     this.stage8 = ((tscui.Pages.Stage.StageItem)(target));
     return;
     case 37:
     this.stage9 = ((tscui.Pages.Stage.StageItem)(target));
     return;
     case 38:
     this.stage10 = ((tscui.Pages.Stage.StageItem)(target));
     return;
     case 39:
     this.stage11 = ((tscui.Pages.Stage.StageItem)(target));
     return;
     case 40:
     this.stage12 = ((tscui.Pages.Stage.StageItem)(target));
     return;
     case 41:
     this.stage13 = ((tscui.Pages.Stage.StageItem)(target));
     return;
     case 42:
     this.stage14 = ((tscui.Pages.Stage.StageItem)(target));
     return;
     case 43:
     this.stage15 = ((tscui.Pages.Stage.StageItem)(target));
     return;
     case 44:
     this.stage16 = ((tscui.Pages.Stage.StageItem)(target));
     return;
     case 45:
     this.cbxCoordination = ((System.Windows.Controls.ComboBox)(target));
     return;
     case 46:
     this.cbxReaction = ((System.Windows.Controls.CheckBox)(target));
     return;
     case 47:
     this.btnRead = ((System.Windows.Controls.Button)(target));
     
     #line 179 "..\..\..\..\Pages\Stage\StageView.xaml"
     this.btnRead.Click += new System.Windows.RoutedEventHandler(this.btnRead_Click);
     
     #line default
     #line hidden
     return;
     case 48:
     this.btnSave = ((System.Windows.Controls.Button)(target));
     
     #line 180 "..\..\..\..\Pages\Stage\StageView.xaml"
     this.btnSave.Click += new System.Windows.RoutedEventHandler(this.btnSave_Click);
     
     #line default
     #line hidden
     return;
     case 49:
     this.tbxCycle = ((System.Windows.Controls.TextBox)(target));
     return;
     case 50:
     this.tbxOffset = ((System.Windows.Controls.TextBox)(target));
     return;
     case 51:
     this.sldGreenTime = ((System.Windows.Controls.Slider)(target));
     
     #line 185 "..\..\..\..\Pages\Stage\StageView.xaml"
     this.sldGreenTime.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler<double>(this.sldGreenTime_ValueChanged);
     
     #line default
     #line hidden
     return;
     case 52:
     this.sldYellowTime = ((System.Windows.Controls.Slider)(target));
     
     #line 186 "..\..\..\..\Pages\Stage\StageView.xaml"
     this.sldYellowTime.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler<double>(this.sldYellowTime_ValueChanged);
     
     #line default
     #line hidden
     return;
     case 53:
     this.sldRedTime = ((System.Windows.Controls.Slider)(target));
     
     #line 187 "..\..\..\..\Pages\Stage\StageView.xaml"
     this.sldRedTime.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler<double>(this.sldRedTime_ValueChanged);
     
     #line default
     #line hidden
     return;
     case 54:
     this.tbkGreen = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 55:
     this.tbkYellow = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 56:
     this.tbkRed = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 57:
     this.tbkPatternId = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 58:
     this.tbkStagePatternId = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 59:
     this.sldStagePatternId = ((System.Windows.Controls.Slider)(target));
     
     #line 201 "..\..\..\..\Pages\Stage\StageView.xaml"
     this.sldStagePatternId.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler<double>(this.sldStagePatternId_ValueChanged);
     
     #line default
     #line hidden
     return;
     case 60:
     this.sldSchemeId = ((System.Windows.Controls.Slider)(target));
     
     #line 202 "..\..\..\..\Pages\Stage\StageView.xaml"
     this.sldSchemeId.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler<double>(this.sldSchemeId_ValueChanged);
     
     #line default
     #line hidden
     return;
     }
     this._contentLoaded = true;
 }