Example #1
0
        private void ExportButton_Click(object sender, RoutedEventArgs e)
        {
            // Open an aura first
            ModalDialogAura modalAura = new ModalDialogAura(this);

            modalAura.Show();

            // Show desktop folder path
            string           path   = Environment.GetFolderPath(Environment.SpecialFolder.Desktop);
            OpenFolderDialog dialog = new OpenFolderDialog(this, path);

            if (dialog.ShowDialog() == true)
            {
                path = dialog.ChosenDirectoryPath;

                // Disable all other controls
                MULTITUDE.Class.Home.Current.PackAndExport(path);
            }
            else
            {
                // Nothing happens
            }

            modalAura.Close();
        }
Example #2
0
        private void OpenFolderButton_Click(object sender, RoutedEventArgs e)
        {
            // Open an aura first
            ModalDialogAura modalAura = new ModalDialogAura(this);

            modalAura.Show();

            string CurrentFolderPath = null;

            if (HomeLocationTextBox.Text != HomeDefaultText)
            {
                CurrentFolderPath = HomeLocationTextBox.Text;
            }
            OpenFolderDialog dialog = new OpenFolderDialog(this, CurrentFolderPath);

            if (dialog.ShowDialog() == true)
            {
                HomeLocationTextBox.Text = dialog.ChosenDirectoryPath;

                // Disable all other controls
                // ...
            }
            else
            {
                // Nothing happens
            }

            modalAura.Close();
        }