using System; using System.Collections.Generic; using System.Linq; using System.Net; using System.Text; using System.Threading.Tasks; using System.Windows; using System.Windows.Controls; using System.Windows.Data; using System.Windows.Documents; using System.Windows.Input; using System.Windows.Media; using System.Windows.Media.Imaging; using System.Windows.Navigation; using System.Windows.Shapes; namespace Live_Scoring_V1 { /// /// Interaction logic for Login.xaml /// public partial class Login : Page { public Login() { InitializeComponent(); } public Frame MainFrame; private void LoginProcess(object sender, MouseButtonEventArgs e) { //MessageBox.Show("Hello, world!"); } private void Button_Click(object sender, RoutedEventArgs e) { if (Email.Text !="" && Password.Password != "") { LoginBtn.Content = "Proccessing ..."; Loginn login = new Loginn(); int loggedin = login.LoginProcess(Email.Text, Password.Password); if (loggedin >0) { LoginBtn.Content = "Login"; Webservices Services = new Webservices(); Services.USERID = loggedin; Services.DownloadingProgress = ProgressBarBox; Services.DownloadingProgressText = ProgressBarBoxText; Services.ProgressPopup = DownloadingProgress; DownloadingProgress.Visibility = Visibility.Visible; Services.GetNewData(); Listfixturs FixturePage = new Listfixturs(); FixturePage.MainFrame = MainFrame; MainFrame.Content = FixturePage; } } } } }