C# Class TrainAssistant.MainWindow

MainWindow.xaml 的交互逻辑
Inheritance: MahApps.Metro.Controls.MetroWindow
Afficher le fichier Open project: Woo-Long/12306-for-pc

Méthodes publiques

Méthode Description
IsShowLoginPopup ( bool isShow ) : void

是否显示登录界面

MainWindow ( ) : MahApps.Metro.Controls
OpenNotifyMsg ( string title, string content ) : void

右下角提示消息

Private Methods

Méthode Description
CloseAutoSearch ( ) : void

关闭自动搜索

GetCheckedTickType ( ) : string

获取列车类型

GetContacts ( ) : Task
GetOrderCode ( ) : Task

刷新订单验证码

GetTickType ( string type ) : string>>.Task

根据车次获取席别

GetValidateCodeImage ( ) : Task

刷新登录(自动提交订单)验证码

InitQueryValue ( ) : Task

初始化查询条件

MetroWindow_Loaded ( object sender, RoutedEventArgs e ) : void
ReservateTicket ( bool isAutoSearch ) : Task

预订

Reservate_Click ( object sender, RoutedEventArgs e ) : void
SearchTickets ( ) : Task

查询

SubmitOrder ( List lstPassengers, string submitOrderCode, string token, List lstQueues, string keyChange ) : Task

提交订单

autoChkContact_Click ( object sender, RoutedEventArgs e ) : void
btnAutoSubmitOrderCodeValidate_Click ( object sender, RoutedEventArgs e ) : void
btnAutoSubmitOrder_Click ( object sender, RoutedEventArgs e ) : void
btnChangeAddress_Click ( object sender, RoutedEventArgs e ) : void
btnCloseAutoSubmit_Click ( object sender, RoutedEventArgs e ) : void
btnCloseAutoSubmitcode_Click ( object sender, RoutedEventArgs e ) : void
btnCloseLoginCodePopup_Click ( object sender, RoutedEventArgs e ) : void
btnClosePopup_Click ( object sender, RoutedEventArgs e ) : void
btnCloseSubmitOrderCodePopup_Click ( object sender, RoutedEventArgs e ) : void
btnCodeValidate_Click ( object sender, RoutedEventArgs e ) : void
btnLoginPopup_Click ( object sender, RoutedEventArgs e ) : void
btnLogin_Click ( object sender, RoutedEventArgs e ) : void
btnLogout_Click ( object sender, RoutedEventArgs e ) : void
btnNextDate_Click ( object sender, RoutedEventArgs e ) : void
btnPrevDate_Click ( object sender, RoutedEventArgs e ) : void
btnSearch_Click ( object sender, RoutedEventArgs e ) : void
btnSubmitOrderCodeValidate_Click ( object sender, RoutedEventArgs e ) : void
btnSubmit_Click ( object sender, RoutedEventArgs e ) : void
canvAutoSubmitOrderCode_MouseLeftButtonUp ( object sender, System.Windows.Input.MouseButtonEventArgs e ) : void
canvLoginCode_MouseLeftButtonUp ( object sender, System.Windows.Input.MouseButtonEventArgs e ) : void
canvSubmitOrderCode_MouseLeftButtonUp ( object sender, System.Windows.Input.MouseButtonEventArgs e ) : void
checAutokOrderImg_MouseRightButtonUp ( object sender, System.Windows.Input.MouseButtonEventArgs e ) : void
checkImg_MouseRightButtonUp ( object sender, System.Windows.Input.MouseButtonEventArgs e ) : void
checkOrderImg_MouseRightButtonUp ( object sender, System.Windows.Input.MouseButtonEventArgs e ) : void
chkAll_Click ( object sender, RoutedEventArgs e ) : void
chkAutoLogin_Click ( object sender, RoutedEventArgs e ) : void
chkAutoSearch_Click ( object sender, RoutedEventArgs e ) : void
chkCanReservate_Click ( object sender, RoutedEventArgs e ) : void
chkContact_Click ( object sender, RoutedEventArgs e ) : void
chkEMU_Click ( object sender, RoutedEventArgs e ) : void
chkHSR_Click ( object sender, RoutedEventArgs e ) : void
chkK_Click ( object sender, RoutedEventArgs e ) : void
chkOther_Click ( object sender, RoutedEventArgs e ) : void
chkSeatType_Click ( object sender, RoutedEventArgs e ) : void
chkT_Click ( object sender, RoutedEventArgs e ) : void
chkTicket_Click ( object sender, RoutedEventArgs e ) : void
chkZ_Click ( object sender, RoutedEventArgs e ) : void
disTimer_Tick ( object sender, EventArgs e ) : void
gridTrainList_MouseDoubleClick ( object sender, System.Windows.Input.MouseButtonEventArgs e ) : void
hyLinkLoadContact_Click ( object sender, RoutedEventArgs e ) : void
linkAutoSubmitOrderCodeChange_Click ( object sender, RoutedEventArgs e ) : void
linkChange_Click ( object sender, RoutedEventArgs e ) : void
linkForgotPassword_Click ( object sender, RoutedEventArgs e ) : void
linkJoin_Click ( object sender, RoutedEventArgs e ) : void
linkSubmitOrderCodeChange_Click ( object sender, RoutedEventArgs e ) : void
tsAutoOrder_Checked ( object sender, RoutedEventArgs e ) : void
txtEndCity_KeyUp ( object sender, System.Windows.Input.KeyEventArgs e ) : void
txtStartCity_KeyUp ( object sender, System.Windows.Input.KeyEventArgs e ) : void
txtUserName_SelectionChanged ( object sender, System.Windows.Controls.SelectionChangedEventArgs e ) : void

Method Details

IsShowLoginPopup() public méthode

是否显示登录界面
public IsShowLoginPopup ( bool isShow ) : void
isShow bool
Résultat void

MainWindow() public méthode

public MainWindow ( ) : MahApps.Metro.Controls
Résultat MahApps.Metro.Controls

OpenNotifyMsg() public méthode

右下角提示消息
public OpenNotifyMsg ( string title, string content ) : void
title string
content string
Résultat void