Exemplo n.º 1
0
        private void ApplyDialogPropertyValues(FolderBrowserDialogConfirmation dlgConf, FolderBrowserDialog dlg)
        {
            // FolderBrowserDialogプロパティからFolderBrowserDialogConfirmationプロパティへコピー

            if (dlgConf != NullObject)
            {
                dlgConf.Description = dlg.Description;
            }

            this.Description = dlg.Description;

            if (dlgConf != NullObject)
            {
                dlgConf.SelectedPath = dlg.SelectedPath;
            }

            this.SelectedPath = dlg.SelectedPath;

            if (dlgConf != NullObject)
            {
                dlgConf.ShowNewFolderButton = dlg.ShowNewFolderButton;
            }

            this.ShowNewFolderButton = dlg.ShowNewFolderButton;
        }
Exemplo n.º 2
0
 private void ApplyMessagePropertyeValues(FolderBrowserDialogConfirmation dlgConf, FolderBrowserDialog dlg)
 {
     // FolderBrowserDialogプロパティのセット
     dlg.Description         = dlgConf.Description ?? this.Description ?? dlg.Description;
     dlg.SelectedPath        = dlgConf.SelectedPath ?? this.SelectedPath ?? dlg.SelectedPath;
     dlg.ShowNewFolderButton = dlgConf.ShowNewFolderButton ?? this.ShowNewFolderButton ?? dlg.ShowNewFolderButton;
 }