Ejemplo n.º 1
0
 /// <summary>
 /// 
 /// </summary>
 public void RefreshFavourite(object obj, EventArgs e)
 {
     XMLFile xmlFile = new XMLFile();
     Common.favourites = xmlFile.ReadXml();
     lbFavourite.ItemsSource = Common.favourites;
 }
Ejemplo n.º 2
0
        // Executes when the user navigates to this page.
        protected override void OnNavigatedTo(NavigationEventArgs e)
        {
            if (App.Current.IsRunningOutOfBrowser)
            {
                dynamic wscript = AutomationFactory.CreateObject("WScript.Network");
                Common.PCName = (string)wscript.ComputerName;
            }

            XMLFile xmlFile = new XMLFile();
            XMLFile.XMLFileUpdated += new EventHandler(RefreshFavourite);
            Common.favourites = xmlFile.ReadXml();
            lbFavourite.ItemsSource = Common.favourites;
            acdnMenu.SelectedIndex = 4;
            FContent.Source = new Uri("/Pages/UIGraph.xaml", UriKind.Relative);
        }
Ejemplo n.º 3
0
 /// <summary>
 /// 
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void Page_Loaded(object sender, RoutedEventArgs e)
 {
     XMLFile xmlFile = new XMLFile();
     XMLFile.XMLFileUpdated += new EventHandler(RefreshFavourite);
     Common.favourites = xmlFile.ReadXml();
     lbFavourite.ItemsSource = Common.favourites;
     acdnMenu.SelectedIndex = 4;
     FContent.Source = new Uri("/Pages/UIGraph.xaml", UriKind.Relative);
 }