public SubmissionPage()
        {
            InitializeComponent();
            messagePopup = new Popup();
            messagePopup.IsOpen = false;
            msg = new PopupMessageControl(activatePage);

            App.popup.Child = msg;
            App.popup.Margin = new Thickness(0);
        }
示例#2
0
 public SignIn()
 {
     InitializeComponent();
     bool hasNetwork = NetworkInterface.GetIsNetworkAvailable();
     if (!hasNetwork)
     {
         registerButton.IsEnabled = false;
     }
     locpermitmsg = new GeoLocationMessageControl(registerUser, activatePage);
     msg = new PopupMessageControl(registerUser);
 }
示例#3
0
        // Constructor
        public MainPage()
        {
            InitializeComponent();
            this.Loaded += new RoutedEventHandler(MainPage_Loaded);

            msg = new PopupMessageControl(activatePage); //TODO test this
            logoutmsg = new LogoutMessageControl(activatePage);
            LocationToggle.IsChecked = App.locationServicesOn;
            if (App.locationServicesOn)
                LocationToggle.Content = "On ";
        }
示例#4
0
        public DetailsPage()
        {
            InitializeComponent();
            OnLoaded();
            LatBlock = new TextBlock();
            LngBlock = new TextBlock();
            //submissionStatMsg = new Popup();
            submissionStatMsg = new TextBlock();
            submissionStatMsg.Visibility = System.Windows.Visibility.Collapsed;
            progressbar = new PerformanceProgressBar();
            progressbar.Foreground = new SolidColorBrush(Color.FromArgb(0xFF, 0xFF, 0x6C, 0x16));

            //popup message content
            msg = new PopupMessageControl(activatePage);
        }