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 PATHgreen_PointerEntered(object sender, PointerRoutedEventArgs e) { if (PageStatus != IPGWstatus.Multing) { return; } PageStatus = IPGWstatus.Choosing; ConnectType = IPGW_type.Disconnect; SetTitle("断开连接"); STRBDgreenRoll.Begin(); }
private void PATHgreen_PointerExited(object sender, PointerRoutedEventArgs e) { if (PageStatus != IPGWstatus.Choosing) { return; } PageStatus = IPGWstatus.Multing; SetTitle("北大网关"); ConnectType = IPGW_type.None; STRBDgreenRoll.Stop(); PROJgreen.RotationY = 0; }