Esempio n. 1
0
 private void Click_Back(object sender, RoutedEventArgs e)
 {
     Window1 win = new Window1();
     win.Show();
     this.Close();
 }
Esempio n. 2
0
        private void MenuItem_Click_1(object sender, RoutedEventArgs e)
        {
            Window1 dwWindow = new Window1();

            dwWindow.Show();
        }
Esempio n. 3
0
        private void Button_Click(object sender, RoutedEventArgs e)
        {
            var s = new Window1();

            s.Show();
        }
        private void MenuItem_Click(object sender, RoutedEventArgs e)
        {
            Window1 myWindow1 = new Window1();

            myWindow1.Show();
        }
Esempio n. 5
0
        private void Button_Click(object sender, RoutedEventArgs e)
        {
            Window1 win = new Window1(form1.Text, showText);

            win.Show();
        }
Esempio n. 6
0
        private void btnArabicToRoman_Click(object sender, RoutedEventArgs e)
        {
            Window1 nw1 = new Window1();

            nw1.Show();
        }
Esempio n. 7
0
        private void Button_Click(object sender, RoutedEventArgs e)
        {
            Window1 win1 = new Window1();

            win1.Show();
        }
Esempio n. 8
0
        private void Button_Click(object sender, RoutedEventArgs e)
        {
            Window1 creation = new Window1();

            creation.Show();
        }
Esempio n. 9
0
        private void add_Click(object sender, RoutedEventArgs e)
        {
            var newWind = new Window1();

            newWind.Show();
        }
Esempio n. 10
0
        //Required Function
        public void InactiveCompanies(SelectedDatesCollection dates)
        {
            bool isInactive = true;

            //Iterate through dictionary
            foreach (KeyValuePair <string, List <String> > company in CompanyFeeds)
            {
                foreach (String url in company.Value)
                {
                    //Load Feed
                    XmlReaderSettings settings = new XmlReaderSettings();
                    settings.DtdProcessing = DtdProcessing.Parse;
                    var r    = XmlReader.Create(url, settings);
                    var feed = SyndicationFeed.Load(r);

                    //Add the company name to the slacking group if they havent posted
                    if (checkInactive(feed) == true)
                    {
                        SlackingCompanies.Add(company.Key);
                        continue;
                    }

                    else
                    {
                        //If they have been active in different URL then we will remove
                        //them from the slacking list if they are already in it
                        if (SlackingCompanies.Contains(company.Key))
                        {
                            SlackingCompanies.Remove(company.Key);
                        }

                        //reset booleon
                        isInactive = true;
                        break;
                    }
                }
            }

            //pass they slacking companies to the grid to be displayed
            results.CompanyGrid.ItemsSource = SlackingCompanies;
            results.Show();

            bool checkInactive(SyndicationFeed feed)
            {
                //Iterate through retrieved posts
                foreach (SyndicationItem post in feed.Items)
                {
                    //If there is a post published in the date range continue
                    //If the company hasnt posted in one feed but has in another we will remove it from the slacking pile
                    foreach (DateTime date in dates)
                    {
                        // MessageBox.Show(date.ToString());
                        // MessageBox.Show(post.PublishDate.Date.ToString());

                        if (date.Date == post.PublishDate.Date)
                        {
                            isInactive = false;
                            break;
                        }
                    }

                    if (isInactive == false)
                    {
                        break;
                    }
                }
                return(isInactive);
            }
        }
Esempio n. 11
0
        private void postListBox_MouseDoubleClick(object sender, MouseButtonEventArgs e)
        {
            Window Window1 = new Window1();

            Window1.Show();
        }
Esempio n. 12
0
        private void Rovaniemi_Click(object sender, RoutedEventArgs e)
        {
            Window1 sääTiedot1 = new Window1();

            sääTiedot1.Show();
        }
Esempio n. 13
0
        //private void Click_MouseDoubleClick(object sender, MouseButtonEventArgs e)
        //{
        //    Window2 win2 = new Window2();
        //    win2.Show();
        //}

        private void MenuItem_Click(object sender, RoutedEventArgs e)
        {
            Window1 win2 = new Window1();

            win2.Show();
        }