Ejemplo n.º 1
0
        private void uploadItemsD_Click(object sender, RoutedEventArgs e)
        {
            var dialog = new OpenFileDialog
            {
                CheckFileExists = true,
                CheckPathExists = true,
                Title           = "Choose file with itemsD",
                Multiselect     = false
            };

            if (dialog.ShowDialog(this) != true)
            {
                return;
            }
            itemsD          = AFileReader.ReadFromFile(dialog.FileName, Encoding.Default).Select(x => x[0]).ToArray();
            TextResult.Text = "Характеристики що описують ДТП завантажено успішно!";
        }
Ejemplo n.º 2
0
        private void uploadDataset_Click(object sender, RoutedEventArgs e)
        {
            var dialog = new OpenFileDialog
            {
                CheckFileExists = true,
                CheckPathExists = true,
                Title           = "Choose file with transactions",
                Multiselect     = false
            };

            if (dialog.ShowDialog(this) != true)
            {
                return;
            }
            transactions    = AFileReader.ReadFromFile(dialog.FileName, Encoding.UTF8);
            TextResult.Text = "Транзакції завантажено успішно!";
        }