Пример #1
0
        private void grpSourceFiles_DragDrop(object sender, DragEventArgs e)
        {
            // check for PsyQ in PATH
            if (!XsfUtil.IsPsyQPathVariablePresent())
            {
                MessageBox.Show(
                    ConfigurationManager.AppSettings["Form_PsfStubCreator_ErrPsyQPath"],
                    ConfigurationManager.AppSettings["Form_Global_ErrorWindowTitle"]);
            }
            else if (!XsfUtil.IsPsyQSdkPresent())
            {
                MessageBox.Show(
                    ConfigurationManager.AppSettings["Form_PsfStubCreator_IntroText"],
                    ConfigurationManager.AppSettings["Form_Global_ErrorWindowTitle"]);
            }
            else if (this.validateInputs())
            {
                string[] s = (string[])e.Data.GetData(DataFormats.FileDrop, false);

                PsfStubMakerStruct bwStruct = new PsfStubMakerStruct();
                bwStruct.SourcePaths     = s;
                bwStruct.UseSeqFunctions = this.cbSeqFunctions.Checked;
                bwStruct.DriverText      = this.tbDriverText.Text;
                bwStruct.IncludeReverb   = this.cbIncludeReverb.Checked;

                bwStruct.PsfDrvLoad      = this.tbPsfDrvLoad.Text;
                bwStruct.PsfDrvSize      = this.tbPsfDrvSize.Text;
                bwStruct.PsfDrvParam     = this.tbPsfDrvParam.Text;
                bwStruct.PsfDrvParamSize = this.tbPadDrvParamSize.Text;

                bwStruct.MySeq     = this.tbMySeq.Text;
                bwStruct.MySeqSize = this.tbMySeqSize.Text;
                bwStruct.MyVh      = this.tbMyVh.Text;
                bwStruct.MyVhSize  = this.tbMyVhSize.Text;
                bwStruct.MyVb      = this.tbMyVb.Text;
                bwStruct.MyVbSize  = this.tbMyVbSize.Text;

                bwStruct.OverrideDriverLoadAddress   = cbOverrideDriverOffset.Checked;
                bwStruct.RelaxLoadAddressRestriction = cbRelaxPsfLoadAddress.Checked;

                base.backgroundWorker_Execute(bwStruct);
            }
        }