Beispiel #1
0
        private bool validateInputs()
        {
            bool ret = AVgmtForm.checkTextBox(this.tbSearchString.Text, "Search String");

            if (cbDoCut.Checked)
            {
                if (!String.IsNullOrEmpty(this.tbOutputFolder.Text))
                {
                    ret = ret && AVgmtForm.checkFolderExists(this.tbOutputFolder.Text, this.lblOutputFolder.Text);
                }
                ret = ret && AVgmtForm.checkTextBox(this.tbOutputExtension.Text, "Output Extension");

                if (this.rbStaticCutSize.Checked)
                {
                    ret = ret && AVgmtForm.checkTextBox(this.tbStaticCutsize.Text, "Static Cut Size");
                }
                else if (rbOffsetBasedCutSize.Checked)
                {
                    ret = ret && AVgmtForm.checkTextBox(this.tbCutSizeOffset.Text, "Cut Size Offset");
                    ret = ret && AVgmtForm.checkTextBox((string)this.cbOffsetSize.Text, "Offset Size");
                    ret = ret && AVgmtForm.checkTextBox((string)this.cbByteOrder.Text, "Byte Order");
                }
                else
                {
                    ret = ret && AVgmtForm.checkTextBox(this.tbTerminatorString.Text, "Terminator String");
                }
            }

            return(ret);
        }
 private void btnDoTask_Click(object sender, EventArgs e)
 {
     if (AVgmtForm.checkFolderExists(this.tbSource.Text, this.grpSource.Text))
     {
         string[] paths = new string[] { this.tbSource.Text };
         recompressData(paths);
     }
 }
Beispiel #3
0
        private bool validateOutputOptions()
        {
            bool isValid = true;

            if (!String.IsNullOrEmpty(this.tbOutputFolder.Text))
            {
                isValid &= AVgmtForm.checkFolderExists(this.tbOutputFolder.Text, this.lblOutputFolder.Text);
            }

            return(isValid);
        }
Beispiel #4
0
        private void btnDatafileChecker_Check_Click(object sender, EventArgs e)
        {
            if (AVgmtForm.checkFileExists(tbDatafileChecker_SourceFile.Text, this.lblSourceDataFile.Text) &&
                AVgmtForm.checkFolderExists(tbDatafileChecker_OutputPath.Text, this.lblReportDestination.Text))
            {
                DatafileCheckerWorker.DatafileCheckerStruct datafileCheckerStruct = new DatafileCheckerWorker.DatafileCheckerStruct();
                datafileCheckerStruct.datafilePath = tbDatafileChecker_SourceFile.Text;
                datafileCheckerStruct.outputPath   = tbDatafileChecker_OutputPath.Text;

                base.backgroundWorker_Execute(datafileCheckerStruct);
            }
        }
Beispiel #5
0
        private bool validateInputs()
        {
            bool ret = true;

            ret &= AVgmtForm.checkFolderExists(this.tbV1Source.Text, this.lblV1Folder.Text);
            ret &= AVgmtForm.checkFolderExists(this.tbV2Source.Text, this.lblV2Folder.Text);

            if (this.tbV1Source.Text.Equals(this.tbV2Source.Text))
            {
                MessageBox.Show(String.Format(ConfigurationManager.AppSettings["Form_V1toV2TagMigrator_ErrorMatch"], this.lblV1Folder.Text, this.lblV2Folder.Text),
                                ConfigurationManager.AppSettings["Form_Global_ErrorWindowTitle"]);
                ret = false;
            }

            return(ret);
        }
Beispiel #6
0
        private bool validateInputs()
        {
            bool ret = true;

            if (this.cbMinipsf.Checked &&
                String.IsNullOrEmpty(this.tbMySeqSize.Text))
            {
                MessageBox.Show("Please enter an SEQ size for building .minipsfs.", "Error");
                ret = ret && false;
            }

            ret = ret && AVgmtForm.checkFileExists(this.tbExePath.Text, this.lblDriverPath.Text);
            ret = ret && AVgmtForm.checkFolderExists(this.tbSourceFilesPath.Text, this.lblSourceFiles.Text);
            ret = ret && AVgmtForm.checkTextBox(this.tbOutputFolderName.Text, this.lblOutputFolder.Text);

            return(ret);
        }
        private void btnDoTask_Click(object sender, EventArgs e)
        {
            if (AVgmtForm.checkFolderExists(tbSource.Text, this.grpSource.Text))
            {
                string[] s = new string[1];
                s[0] = tbSource.Text;
                string[] searchStrings = tbSearchString.Text.Split(new string[] { Environment.NewLine }, StringSplitOptions.RemoveEmptyEntries);

                ExamineSearchForFileWorker.ExamineSearchForFileStruct exStruct =
                    new ExamineSearchForFileWorker.ExamineSearchForFileStruct();
                exStruct.SourcePaths   = s;
                exStruct.ExtractFile   = cbExtract.Checked;
                exStruct.SearchStrings = searchStrings;
                exStruct.CaseSensitive = cbCaseSensitive.Checked;
                exStruct.OutputFolder  = tbOutputFolder.Text;

                base.backgroundWorker_Execute(exStruct);
            }
        }
Beispiel #8
0
 private bool CheckInputs()
 {
     return(AVgmtForm.checkFolderExists(tbOutputPath.Text, this.lblOutputPath.Text));
 }