Example #1
0
        public void LoadCurrentImage(Image myNewImage)
        {
            if (myNewImage != null)
            {
                if (newTest != null)
                {
                    newTest.Close();
                }

                System.Windows.Controls.Button next = new System.Windows.Controls.Button()
                {
                    Height  = 25,
                    Content = "Next Photo"
                };

                next.Click += Next_Click;

                System.Windows.Controls.Button prev = new System.Windows.Controls.Button()
                {
                    Height  = 25,
                    Content = "Previous Photo",
                };
                prev.Click += Prev_Click;


                StackPanel newPanel = new StackPanel();
                newPanel.Children.Add(next);
                newPanel.Children.Add(myNewImage);
                newPanel.Children.Add(prev);

                newTest = new Window()
                {
                    WindowStartupLocation = WindowStartupLocation.CenterScreen,
                    SizeToContent         = SizeToContent.WidthAndHeight
                };

                newTest.Content = newPanel;
                newTest.Show();
            }
            else
            {
                DialogSetup newDialog = new DialogSetup(0, "File Not Found, Open Photo");
            }
        }
Example #2
0
 private void UpdateButton_Click(object sender, RoutedEventArgs e)
 {
     if (double.TryParse(latTextBox.Text, out double userLat) &&
         double.TryParse(longTextBox.Text, out double userLong))
     {
         latTextBox.IsEnabled  = false;
         longTextBox.IsEnabled = false;
         int status = query.UpdateUserLocation(new List <double>()
         {
             userLat, userLong
         });
         GUISetup.DialogSetup newDialog = new GUISetup.DialogSetup(status, "Update Location");
     }
     else
     {
         latTextBox.Focus();
         longTextBox.Focus();
     }
 }
Example #3
0
 public void ShowStatusUpdate(int status, String statText)
 {
     DialogSetup newDialog = new DialogSetup(status, statText);
 }