Example #1
0
        private async void GRIDipgwMain_ManipulationCompleted(object sender, ManipulationCompletedRoutedEventArgs e)
        {
            switch (PageStatus)
            {
            case IPGWstatus.Multing:
            {
                Reset();
            } break;

            case IPGWstatus.Choosing:
            {
                STRBDgreenRoll.Stop();
                STRBDredRoll.Stop();
                STRBDyellowRoll.Stop();
                STRBDblueRoll.Stop();
                PageStatus = IPGWstatus.Connecting;
                DoConnection(ConnectType, "");
                await Task.Delay(1000);

                STRBDconnecting.SkipToFill();
                STRBDconnecting.Stop();
                PageStatus  = IPGWstatus.Nothing;
                ConnectType = IPGW_type.None;
                STRBDcircle1.Begin();
            }
            break;

            default:
            {
            } break;
            }
        }
Example #2
0
 private void PATHblue_PointerEntered(object sender, PointerRoutedEventArgs e)
 {
     if (PageStatus != IPGWstatus.Multing)
     {
         return;
     }
     PageStatus  = IPGWstatus.Choosing;
     ConnectType = IPGW_type.ConnectFree;
     SetTitle("连接免费地址");
     STRBDblueRoll.Begin();
 }
Example #3
0
 private void PATHblue_PointerExited(object sender, PointerRoutedEventArgs e)
 {
     if (PageStatus != IPGWstatus.Choosing)
     {
         return;
     }
     PageStatus = IPGWstatus.Multing;
     SetTitle("北大网关");
     ConnectType = IPGW_type.None;
     STRBDblueRoll.Stop();
     PROJblue.RotationY = 0;
 }