Beispiel #1
0
 private void comboBoxSaveFormat_SelectedIndexChanged(object sender, EventArgs e)
 {
     if (comboBoxSaveFormat.SelectedIndex >= 0)
     {
         selectedSaveFormat = (Enums.SaveFormats)comboBoxSaveFormat.SelectedIndex;
     }
 }
Beispiel #2
0
 public ImportFiles(bool fastSaveMode, Enums.SaveFormats saveFormat, Enums.CompressionTypes compressionType)
 {
     InitializeComponent();
     this.FastSaveMode = fastSaveMode;
     tempDirectory     = Path.Combine(Path.GetTempPath(), "~Njit");
     comboBoxCompression.SelectedIndex = (int)compressionType;
     comboBoxSaveFormat.SelectedIndex  = (int)saveFormat;
     txtDefaultSavePath.Text           = Properties.Settings.Default.ScanSavePath ?? "";
     this.SelectScannerBeforScan       = fastSaveMode;
     ribbonGroupSaveSettings.Visible   = fastSaveMode;
 }
Beispiel #3
0
        //public ImportFiles(string personnelNumber, int? documentID)
        //    : this(personnelNumber, documentID, false, true, false)
        //{
        //}

        //public ImportFiles(string personnelNumber, bool attachToDossier)
        //    : this(personnelNumber, null, attachToDossier, true, false)
        //{
        //}

        public ImportFiles(/*string personnelNumber, int? documentID, bool attachToDossier, bool loadSettingsFromDatabase,*/ bool fastMode, Enums.SaveFormats saveFormat, Enums.CompressionTypes compressionType)
        {
            InitializeComponent();
            this.FastMode = fastMode;
            tempDirectory = Path.Combine(Path.GetTempPath(), "~Njit");
            //this.PersonnelNumber = personnelNumber;
            //this.DocumentID = documentID;
            //this.AttachToDossier = attachToDossier;
            comboBoxCompression.SelectedIndex = (int)saveFormat;
            comboBoxSaveFormat.SelectedIndex  = (int)compressionType;
            txtDefaultSavePath.Text           = Properties.Settings.Default.ScanSavePath ?? "";
            //if (loadSettingsFromDatabase)
            //{
            //    comboBoxCompression.SelectedIndex = Setting.Archive.ThisProgram.LoadedArchiveSettings.DefaultCompressionTypeCode ?? 0;
            //    comboBoxSaveFormat.SelectedIndex = Setting.Archive.ThisProgram.LoadedArchiveSettings.DefaultImageFormatCode ?? 0;
            //    ribbonGroupSavePath.Visible = false;
            //}
            this.SelectScannerBeforScan = fastMode;
            ribbonGroupSavePath.Visible = fastMode;
        }