Beispiel #1
0
        private void ImportGroups_Executed(object sender, ExecutedRoutedEventArgs e)
        {
            // Configure open file dialog box
            Microsoft.Win32.OpenFileDialog dlg = new Microsoft.Win32.OpenFileDialog
            {
                FileName = "",                                                              // Default file name
                                                                                            //dlg.DefaultExt = ".csv"; // Default file extension
                Filter           = "Exportierte Gruppen|" + GroupsIOWindow.BACKUP_FILENAME, // Filter files by extension
                Title            = "Telefonliste - Gruppen importieren",
                CheckFileExists  = true,
                DereferenceLinks = true,
                Multiselect      = false
            };

            if (dlg.ShowDialog(this) == true)
            {
                var wnd = new GroupsIOWindow(GroupsIOWindow.Job.Import, this)
                {
                    Path = dlg.FileName
                };
                wnd.ShowDialog();
            }
        }
Beispiel #2
0
        private void ExportGroups_Executed(object sender, ExecutedRoutedEventArgs e)
        {
            var wnd = new GroupsIOWindow(GroupsIOWindow.Job.Export, this);

            wnd.ShowDialog();
        }