private void Button_Click(object sender, RoutedEventArgs e)
        {
            Process.Start(Strings.AccountURL);

            HVCC.Prototype1.Dialog wndw = new HVCC.Prototype1.Dialog();
            wndw.Height                = 370;
            wndw.Width                 = 400;
            wndw.Body                  = new Controls.Waiting();
            wndw.IsTwoColumn           = false;
            wndw.PageTitle             = null;
            wndw.PageDescription       = null;
            wndw.Title                 = "Wating...";
            wndw.WindowStartupLocation = WindowStartupLocation.CenterScreen;

            wndw.ShowDialog();

            if (wndw.DialogResult.Value == true)
            {
            }
            else
            {
                Strings.deviceTitle  = "Pedometer HJ-720IT";
                Strings.manufacturer = "Omron";
                Prototype1.Window1.LoadTwoColumnWindow(null, new Controls.RecordPicker2(), null);
            }
        }
Esempio n. 2
0
 private void LifeScan_Info_Click(object sender, RoutedEventArgs e)
 {
     HVCC.Prototype1.Dialog wndw = new HVCC.Prototype1.Dialog();
     wndw.Height                = 500;
     wndw.Width                 = 420;
     wndw.Body                  = new Controls.DeviceInfo();
     wndw.IsTwoColumn           = true;
     wndw.Title                 = "Device Info";
     wndw.WindowStartupLocation = WindowStartupLocation.CenterScreen;
     wndw.ShowDialog();
 }
Esempio n. 3
0
 private void Microlife_Settings_Click(object sender, RoutedEventArgs e)
 {
     HVCC.Prototype1.Dialog wndw = new HVCC.Prototype1.Dialog();
     wndw.Height                = 500;
     wndw.Width                 = 420;
     wndw.Body                  = new Controls.UploadSettings();
     wndw.IsTwoColumn           = true;
     wndw.Title                 = "Device Settings";
     wndw.WindowStartupLocation = WindowStartupLocation.CenterScreen;
     wndw.ShowDialog();
 }
Esempio n. 4
0
 private void About_Click(object sender, RoutedEventArgs e)
 {
     HVCC.Prototype1.Dialog wndw = new HVCC.Prototype1.Dialog();
     wndw.Height                = 380;
     wndw.Width                 = 400;
     wndw.PageTitle             = null;
     wndw.PageDescription       = null;
     wndw.Body                  = new Controls.About();
     wndw.IsTwoColumn           = false;
     wndw.Title                 = "About";
     wndw.WindowStartupLocation = WindowStartupLocation.CenterScreen;
     wndw.ShowDialog();
 }
Esempio n. 5
0
 private void Options_Click(object sender, RoutedEventArgs e)
 {
     HVCC.Prototype1.Dialog wndw = new HVCC.Prototype1.Dialog();
     wndw.Height                = 550;
     wndw.Width                 = 400;
     wndw.PageTitle             = "Connection Center Options";
     wndw.PageDescription       = null;
     wndw.Body                  = new Controls.Options();
     wndw.IsTwoColumn           = false;
     wndw.Title                 = "Updates";
     wndw.WindowStartupLocation = WindowStartupLocation.CenterScreen;
     wndw.ShowDialog();
 }
Esempio n. 6
0
 private void Updates_Click(object sender, RoutedEventArgs e)
 {
     HVCC.Prototype1.Dialog wndw = new HVCC.Prototype1.Dialog();
     wndw.Height                = 270;
     wndw.Width                 = 310;
     wndw.PageTitle             = "Searching for updates";
     wndw.PageDescription       = "Please wait...";
     wndw.Body                  = new Controls.Updates();
     wndw.IsTwoColumn           = false;
     wndw.Title                 = "Updates";
     wndw.WindowStartupLocation = WindowStartupLocation.CenterScreen;
     wndw.ShowDialog();
 }
Esempio n. 7
0
        private void ShowRemoveAccountDialog()
        {
            HVCC.Prototype1.Dialog wndw = new HVCC.Prototype1.Dialog();
            wndw.Height                = 400;
            wndw.Width                 = 400;
            wndw.PageTitle             = "Do you want to remove the current Connection Center user?";
            wndw.Body                  = new Controls.RemoveAccount();
            wndw.IsTwoColumn           = false;
            wndw.Title                 = "Remove Account";
            wndw.WindowStartupLocation = WindowStartupLocation.CenterScreen;

            if ((bool)wndw.ShowDialog())
            {
            }
            else
            {
                Window1.LoadSingleColumnWindow(null, null, new Controls.RemovingAccount());
            }
        }
Esempio n. 8
0
        private void HVSwitch_Click(object sender, RoutedEventArgs e)
        {
            HVCC.Prototype1.Dialog wndw = new HVCC.Prototype1.Dialog();
            wndw.Height                = 370;
            wndw.Width                 = 400;
            wndw.Body                  = new Controls.SwitchAccount();
            wndw.IsTwoColumn           = false;
            wndw.PageTitle             = "Select an option to begin uploading to a different account";
            wndw.Title                 = "Switch Account";
            wndw.WindowStartupLocation = WindowStartupLocation.CenterScreen;

            if ((bool)wndw.ShowDialog())
            {
            }
            else
            {
                ShowRemoveAccountDialog();
            }
        }