Beispiel #1
0
        private void btnOK_Click(object sender, EventArgs e)
        {
            PreferSystemFolders = chkPreferSystemFolders.Checked;
            RootFolder          = txtRootFolder.Text;

            Adapter.SaveMenuConfigToList(ucDestOptions.tsddbOutputs, cwOutputs);
            Adapter.SaveMenuConfigToList(ucDestOptions.tsddbClipboardContent, cwClipboardContent);
            Adapter.SaveMenuConfigToList(ucDestOptions.tsddbLinkFormat, cwLinkFormat);
            Adapter.SaveMenuConfigToList(ucDestOptions.tsddbDestFile, cwFileUploaders);
            Adapter.SaveMenuConfigToList(ucDestOptions.tsddbDestImage, cwImageUploaders);
            Adapter.SaveMenuConfigToList(ucDestOptions.tsddbDestText, cwTextUploaders);
            Adapter.SaveMenuConfigToList(ucDestOptions.tsddbDestLink, cwLinkUploaders);

            this.DialogResult = DialogResult.OK;
            this.Close();
        }
Beispiel #2
0
        private void btnOK_Click(object sender, EventArgs e)
        {
            if (!string.IsNullOrEmpty(txtFilePath.Text))
            {
                FilePath          = txtFilePath.Text;
                this.DialogResult = DialogResult.OK;

                Adapter.SaveMenuConfigToList <OutputEnum>(ucDestOptions.tsddbOutputs, Task.WorkflowConfig.DestConfig.Outputs);
                Adapter.SaveMenuConfigToList <ClipboardContentEnum>(ucDestOptions.tsddbClipboardContent, Task.WorkflowConfig.DestConfig.TaskClipboardContent);
                Adapter.SaveMenuConfigToList <ImageDestination>(ucDestOptions.tsddbDestImage, Task.WorkflowConfig.DestConfig.ImageUploaders);
                Adapter.SaveMenuConfigToList <TextDestination>(ucDestOptions.tsddbDestText, Task.WorkflowConfig.DestConfig.TextUploaders);
                Adapter.SaveMenuConfigToList <FileDestination>(ucDestOptions.tsddbDestFile, Task.WorkflowConfig.DestConfig.FileUploaders);
                Adapter.SaveMenuConfigToList <UrlShortenerType>(ucDestOptions.tsddbDestLink, Task.WorkflowConfig.DestConfig.LinkUploaders);

                this.Hide();
            }
        }