예제 #1
0
 public WebServiceControl()
 {
     // This call is required by the Windows.Forms Form Designer.
     InitializeComponent();
     EnableVisualStyles.Enable(this);
     this.modulesControl.BringToFront();
 }
예제 #2
0
        public DataTypeDialog(bool addMode, ref DataRow datatypeRow, ref DataSet versionDataSet)
        {
            // Required for Windows Form Designer support
            InitializeComponent();
            EnableVisualStyles.Enable(this);

            this.addMode        = addMode;
            this.datatypeRow    = datatypeRow;
            this.versionDataSet = versionDataSet;

            this.typeComboBox.DataSource      = this.versionDataSet.Tables["tblDataType"];
            this.directionComboBox.DataSource = this.versionDataSet.Tables["tblDirection"];

            if (this.addMode)
            {
                this.okButton.Text = "Add";
                this.Text          = "Add New Data Type";
                this.typeComboBox.SelectedIndex      = 0;
                this.directionComboBox.SelectedIndex = 0;
                this.indexTextBox.Text = "1";
            }
            else
            {
                this.okButton.Text = "Update";
                this.Text          = "Update Data Type";

                this.nameTextBox.Text                = this.datatypeRow["fldName"].ToString();
                this.descriptionTextBox.Text         = this.datatypeRow["fldDescription"].ToString();
                this.typeComboBox.SelectedValue      = long.Parse(this.datatypeRow["fldDataTypeID"].ToString());
                this.directionComboBox.SelectedValue = long.Parse(this.datatypeRow["fldDirectionID"].ToString());
                this.indexTextBox.Text               = this.datatypeRow["fldIndex"].ToString();
            }
        }
예제 #3
0
        public ParameterDialog(bool addMode, ref DataRow parameterRow, DataTable parameterTypeTable)
        {
            // Required for Windows Form Designer support
            InitializeComponent();
            EnableVisualStyles.Enable(this);

            this.addMode                 = addMode;
            this.parameterRow            = parameterRow;
            this.parameterTypeTable      = parameterTypeTable;
            this.typeComboBox.DataSource = this.parameterTypeTable;

            if (this.addMode)
            {
                this.okButton.Text = "Add";
                this.Text          = "Add New Parameter";
                this.typeComboBox.SelectedIndex = 0;
            }
            else
            {
                this.okButton.Text           = "Update";
                this.Text                    = "Update Parameter";
                this.nameTextBox.Text        = this.parameterRow["fldName"].ToString();
                this.descriptionTextBox.Text = this.parameterRow["fldDescription"].ToString();

                this.typeComboBox.SelectedValue = long.Parse(this.parameterRow["fldParameterTypeID"].ToString());

                if (this.optionalGroupBox.Enabled)
                {
                    this.minTextBox.Text = this.parameterRow["fldMinimum"].ToString();
                    this.maxTextBox.Text = this.parameterRow["fldMaximum"].ToString();
                }
            }
        }
예제 #4
0
        public ModulesControl()
        {
            // This call is required by the Windows.Forms Form Designer.
            InitializeComponent();
            EnableVisualStyles.Enable(this);

            this.SetupDataGrid();
        }
예제 #5
0
        public VersionsControl()
        {
            // This call is required by the Windows.Forms Form Designer.
            InitializeComponent();
            EnableVisualStyles.Enable(this);

            this.versionColumn.Width = this.releaseColumn.Width = 100;
        }
예제 #6
0
        public EarLabDialog()
        {
            // Required for Windows Form Designer support
            InitializeComponent();
            EnableVisualStyles.EnableControl(this);

            this.aboutTextBox.Text = "EarLab is a virtual laboratory that is intended to allow scientists from a wide range of backgrounds to perform experiments on large-scale computational models of the mammalian auditory pathways. The models in EarLab are intended to serve as repository of current knowledge about auditory function and can be used to bridge the gap between information gathered from anatomical and physiological experiments in laboratory animals and data gathered from less direct physiological and behavioral experiments in humans. The models are also intended to give insight into changes associated with disease and into the effects of theraputic interventions.\n\nThe EarLab models are based on interchangeable building blocks or modules each of which represents a different component of the auditory system or sound-source, data-acquisition and data-visualization systems. The modules are designed to run in a distributed heterogeneous computing environment and to be configured at run time. The physiological modules are designed to be species independent with species dependent parameters loaded from a parameter database at run time.  The current system includes modules that represent sound sources, propagation between the source and the tympanic membrane, and the subthalamic auditory pathways.";
        }
예제 #7
0
        public DataViewerDialog()
        {
            // Required for Windows Form Designer support
            InitializeComponent();
            EnableVisualStyles.EnableControl(this);

            this.name2Label.Text    = Application.ProductName;
            this.version2Label.Text = Application.ProductVersion;
        }
예제 #8
0
        public ClassificationDialog(bool addMode, ref DataRow classificationRow, ref DataSet versionDataSet)
        {
            // Required for Windows Form Designer support
            InitializeComponent();
            EnableVisualStyles.Enable(this);

            this.addMode           = addMode;
            this.classificationRow = classificationRow;
            this.versionDataSet    = versionDataSet;

            this.structureComboBox.DataSource    = versionDataSet.Tables["tblStructure"];
            this.substructureComboBox.DataSource = versionDataSet.Tables["tblSubstructure"];
            this.celltypeComboBox.DataSource     = versionDataSet.Tables["tblCellType"];

            if (addMode)
            {
                this.okButton.Text = "Add";
                this.Text          = "Add New Classification";

                this.substructureComboBox.SelectedIndex = 0;
            }
            else
            {
                this.okButton.Text = "Update";
                this.Text          = "Update Classification";

                this.structureComboBox.SelectedValue = long.Parse(this.classificationRow["fldStructureID"].ToString());

                if (this.classificationRow["fldSubstructureID"].ToString() != "")
                {
                    this.substructureComboBox.SelectedValue = long.Parse(this.classificationRow["fldSubstructureID"].ToString());
                }
                else
                {
                    this.substructureComboBox.SelectedIndex = 0;
                }

                if (classificationRow["fldCellTypeID"].ToString() != "")
                {
                    this.celltypeComboBox.SelectedValue = long.Parse(this.classificationRow["fldCellTypeID"].ToString());
                }
                else
                {
                    this.celltypeComboBox.SelectedIndex = 0;
                }
            }
        }
예제 #9
0
 public WebServiceDialog()
 {
     // Required for Windows Form Designer support
     InitializeComponent();
     EnableVisualStyles.Enable(this);
 }