Пример #1
0
        public LoginWindow(MainWindow parent)
        {
            InitializeComponent();

            this.parent = parent;

            ajaxImages = new UIElement[] { ajaxLoadingImage, greenCheckImage, redXImage };
            ajaxSignUpImages = new UIElement[] { ajaxLoadingImageSignUp, greenCheckImageSignUp, redXImageSignUp };

            // load the login web page (facebook, google, twitter)
            loginBrowser.Navigate(new Uri("http://www.traqpaq.com/facebook/loginpage.html"));

            // set focus to the username box
            textBoxUsername.Focus();
        }
Пример #2
0
        public HomePage(MainWindow main)
        {
            InitializeComponent();
            this.main = main;

            // if there are recent Records in the settings array, then add them to the _RecentTracks ovservable collection
            // if the array is not initialized, then set it to contain 10 elements
            if (Settings.Default.RecentTracks == null)
            {
                Settings.Default.RecentTracks = new RecentTracks();
            }

            // set up event handler for the properties collection
            Properties.Settings.Default.RecentTracks.RecordList.CollectionChanged += recordList_CollectionChanged;

            updateRecentTracks();
        }
Пример #3
0
 public SettingsPage(MainWindow mainWindow)
 {
     InitializeComponent();
     this.mainWindow = mainWindow;
 }
Пример #4
0
        public LogBookPage(MainWindow main)
        {
            InitializeComponent();
            this.main = main;

            // add the dummy record
            _RecordTable.Add(dummy);
        }
Пример #5
0
 public UploadPage(MainWindow main)
 {
     this.main = main;
     this.traqpaq = main.traqpaq;
     InitializeComponent();
 }