public ForgotPasswordPage() { InitializeComponent(); submitButton.Clicked += new SingleClick(SubmitClicked).Click; _basicAccntService = new BasicAccountServices(); submitButton.IsEnableButton = CrossConnectivity.Current.IsConnected; CrossConnectivity.Current.ConnectivityChanged += (sender, args) => { submitButton.IsEnableButton = args.IsConnected ? true : false; }; }
public ContactUsPage() { InitializeComponent(); contactButton.Clicked += new SingleClick(SendMessageClicked).Click; contactButton.IsEnabled = CrossConnectivity.Current.IsConnected; CrossConnectivity.Current.ConnectivityChanged += (sender, args) => { contactButton.IsEnabled = args.IsConnected ? true : false; }; _basicAccntService = new BasicAccountServices(); }