Exemplo n.º 1
0
 private void Complete_Auth_Click(object sender, RoutedEventArgs e)
 {
     if (String.IsNullOrEmpty(CodeText.Text))
     {
         ErrorLabel.Content = "Please Enter a Token Below:";
         return;
     }
     try
     {
         FlickrManager f = (FlickrManager)p.Manager;
         f.CompleteAuth(CodeText.Text);
         MessageBox.Show("User authenticated!");
         if (f.IsAuthenticated())
         {
             ImageDataStore imgsDataObj = f.StorePhotosAndImageData();
             //ImageAnalyzer procImages = new ImageAnalyzer(imgObjs);
             UserImageDisplay imageDisplay = new UserImageDisplay(imgsDataObj);
             imageDisplay.LoadImages();
             imageDisplay.Show();
             this.Close();
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message);
     }
 }
Exemplo n.º 2
0
        public Main()
        {
            InitializeComponent();

            FlickrManager f = new FlickrManager();
            p.LoadManager(f);
        }
Exemplo n.º 3
0
        public Auth()
        {
            InitializeComponent();

            FlickrManager f = new FlickrManager();

            p.LoadManager(f);
        }
Exemplo n.º 4
0
        private void Authenticate_Click(object sender, RoutedEventArgs e)
        {
            p.Authenticate();

            FlickrManager f = (FlickrManager)p.Manager;

            if (f.url != null)
            {
                System.Diagnostics.Process.Start(f.url);
            }
        }
 public void Init()
 {
     f = new FlickrManager();
 }