예제 #1
0
        private async void MainWindow_Loaded(object sender, RoutedEventArgs e)
        {
            var notification = new Notification
            {
                IsIndeterminate = true,
                Description     = "Loading streams..."
            };

            this.Notifications.Add(notification);

            this.Streams = await this.DownloadStreamsAsync();

            this.Notifications.Remove(notification);

            await this.UpdateDataPoints();

            this.LocationCollections = LocationCollection.ReadKml(@"C:\Users\vkha\Data\EPRI\EpriPipes.kml", true);

            this.GraphControl.Open(Settings.Default.NetworkFilePath);

            this.positions.Add(new CsvReader(File.OpenText(@"C:\Users\vkha\Data\EPRI\Positions.csv")).GetRecords <Kvp <string, string> >());
        }