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; } }
private void PATHyellow_PointerEntered(object sender, PointerRoutedEventArgs e) { if (PageStatus != IPGWstatus.Multing) { return; } PageStatus = IPGWstatus.Choosing; ConnectType = IPGW_type.ConnectNofree; SetTitle("连接收费地址"); STRBDyellowRoll.Begin(); }
private void PATHyellow_PointerExited(object sender, PointerRoutedEventArgs e) { if (PageStatus != IPGWstatus.Choosing) { return; } PageStatus = IPGWstatus.Multing; SetTitle("北大网关"); ConnectType = IPGW_type.None; STRBDyellowRoll.Stop(); PROJyellow.RotationY = 0; }