Exemple #1
0
        private void Validate_Click(object sender, RoutedEventArgs e)
        {
            CmdEmag cmdEmag = new CmdEmag();

            if (cmdEmag.ReadCp(this.tb.Text))
            {
                cmdEmag.WriteExcelFileV2();
            }
            else
            {
                MessageBox.Show("Les données fournies semblent erronées .\n Veuillez ressayer", "Erreur", MessageBoxButton.OK);
            }
        }
Exemple #2
0
        private void Open_Click(object sender, RoutedEventArgs e)
        {
            CmdEmagVue     cmdEmag         = new CmdEmagVue();
            OpenFileDialog openFileDialog1 = new OpenFileDialog
            {
                Filter = "Fichier excel |*.xlsx",
                Title  = "Selectionnez le fichier"
            };

            if (openFileDialog1.ShowDialog() == true)
            {
                var tlna = new CmdEmag();
                //tlna.GetExcelFile(openFileDialog1.FileName);

                tlna.WriteExcelFileV2();
            }
        }