Ejemplo n.º 1
0
        private void crudOptionsProto_AddClickHandler(object sender, EventArgs e)
        {
            DataSets.dsModuleStructure3.dtModuleRow ModuleSelectedRow = getSelectedModuleRow();

            abstractDialog dialog = new abstractDialog("Add Protocol", "Add Protocol for the " + ModuleSelectedRow.pk_id + " module");

            //ComboBox ProtocolID = new ComboBox();
            namedInputTextBox description = new namedInputTextBox("Protocol Name");

            //ProtocolID.DataSource = dsModuleStructureGUI.dtStepComposite;
            //ProtocolID.DisplayMember = "description";


            dialog.addNamedInputTextBox(description);
            //dialog.addControl(ProtocolID);
            dialog.ShowDialog();

            if (dialog.DialogResult.Equals(DialogResult.OK))
            {
                DataSets.dsModuleStructure3.dtStepCompositeRow row;
                row              = dsModuleStructureGUI.dtStepComposite.NewdtStepCompositeRow();
                row.description  = description.getInputTextValue();
                row.fk_module_id = ModuleSelectedRow.pk_id;
                dsModuleStructureGUI.dtStepComposite.AdddtStepCompositeRow(row);
                updateProtoRow(row);
            }
        }
Ejemplo n.º 2
0
        private void crudOptionsSavedProtocol_ModifyClickHandler(object sender, EventArgs e)
        {
            flag = 0;
            abstractDialog dialog = new abstractDialog("Saved Protocols", "Modify");

            DataSets.dsModuleStructure3.dtSavedProtocolRow row = getSavedProtocolRow(flag);

            if (row == null)
            {
                return;
            }

            namedInputTextBox description = new namedInputTextBox("Description", row.description);

            dialog.addNamedInputTextBox(description);

            dialog.ShowDialog();

            if (dialog.DialogResult.Equals(DialogResult.OK))
            {
                int DatagridRow2 = dataGridView2.RowCount;
                for (int i = 0; i < DatagridRow2; i++)
                {
                    DataRowView rowView = dataGridView2.Rows[0].DataBoundItem as DataRowView;
                    row             = rowView.Row as DataSets.dsModuleStructure3.dtSavedProtocolRow;
                    row.description = description.getInputTextValue();
                    updateSavedProtocolRow(row);
                }
                this.dataGridView1.DataSource = taSavedProtocol1.GetDataByDesc();
                this.dataGridView2.DataSource = taSavedProtocol1.GetData();
                bindingSource1.DataSource     = dataGridView2.DataSource;
            }
        }
        private void crudOptions_AddClickHandler(object sender, EventArgs e)
        {
            /*
            DataSets.dsModuleStructure2.dtLabwareTypeLabwareParameterTypeRow labwareParameterType =
                dsModuleStructureGUI.dtLabwareTypeLabwareParameterType.NewdtLabwareTypeLabwareParameterTypeRow();
            DataSets.dsModuleStructure2.dtLabwareTypeRow labwareRow = getSelectedLabwareTypeRow();
            */

            abstractDialog dialog = new abstractDialog("Action type", "Add");

            namedInputTextBox description = new namedInputTextBox("Description");
            dialog.addNamedInputTextBox(description);

            namedComboBox cbActionValueTupe = new namedComboBox();

            cbActionValueTupe.DataSource = bsLabwareParameterType;
            cbActionValueTupe.DisplayMember = "description";

            dialog.addControl(cbActionValueTupe);

            dialog.ShowDialog();

            if (dialog.DialogResult.Equals(DialogResult.OK))
            {
                DataSets.dsModuleStructure2.dtActionTypeRow row;

                row = dsModuleStructureGUI.dtActionType.NewdtActionTypeRow();
                row.description = description.getInputTextValue();
                dsModuleStructureGUI.dtActionType.AdddtActionTypeRow(row);
                //updateRow(row);
            }
        }
Ejemplo n.º 4
0
        private void panel1_DragDrop(object sender, DragEventArgs e)
        {
            string entry = e.Data.GetData(DataFormats.Text).ToString();
            abstractDialog dialog = new abstractDialog("New Module" + entry, "Type Info");
            namedInputTextBox xCoord = new namedInputTextBox("X :  ");
            namedInputTextBox yCoord = new namedInputTextBox("Y :  ");
            ComboBox rotation = new ComboBox();
            angle = new int[] { 0, 90, 180, 270 };
            rotation.DataSource = angle;
            rotation.Text="Rotation :  ";
            rotation.DropDownStyle = ComboBoxStyle.DropDown;
            dialog.addNamedInputTextBox(xCoord);
            dialog.addNamedInputTextBox(yCoord);
            dialog.addControl(rotation);

            dialog.ShowDialog();

            //if(e.Data.GetData(typeof(DataSets.dsModuleStructure3.dtModuleRow)))
            //{

            //}

            //if (dialog.DialogResult.Equals(DialogResult.OK))
            //{
            //    DataSets.dsModuleStructure3.dtModuleRow row;

            //    row = dsModuleStructure31.dtModule.NewdtModuleRow();
            //    row.description = xCoord.getInputTextValue();
            //    row.description = yCoord.getInputTextValue();
            //    row.description = rotation.getInputTextValue();
            //    dsModuleStructure31.dtModule.AdddtModuleRow(row);
            //    updateRow(row);
            //}
        }
Ejemplo n.º 5
0
        private void crudOptionsStep_AddClickHandler(object sender, EventArgs e)
        {
            DataSets.dsModuleStructure3.dtStepCompositeRow ProtocolSelectedRow = getSelectedProtocolRow();
            if (ProtocolSelectedRow == null)
            {
                return;
            }
            abstractDialog dialog = new abstractDialog("Add Step", "For the " + ProtocolSelectedRow.description + " protocol");

            //ComboBox ProtocolID = new ComboBox();
            namedInputTextBox description = new namedInputTextBox("Description");

            //ProtocolID.DataSource = dsModuleStructureGUI.dtStepComposite;
            //ProtocolID.DisplayMember = "description";


            dialog.addNamedInputTextBox(description);
            //dialog.addControl(ProtocolID);
            dialog.ShowDialog();

            if (dialog.DialogResult.Equals(DialogResult.OK))
            {
                DataSets.dsModuleStructure3.dtStepLeafRow row;
                row                   = dsModuleStructureGUI.dtStepLeaf.NewdtStepLeafRow();
                row.description       = description.getInputTextValue();
                row.fk_step_composite = ProtocolSelectedRow.pk_id;
                dsModuleStructureGUI.dtStepLeaf.AdddtStepLeafRow(row);
                updateStepRow(row);
            }
        }
Ejemplo n.º 6
0
        private void crudOptionsAction_AddClickHandler(object sender, EventArgs e)
        {
            DataSets.dsModuleStructure3.dtStepLeafRow StepSelectedRow = getSelectedStepRow();
            if (StepSelectedRow == null)
            {
                return;
            }

            abstractDialog dialog = new abstractDialog("Add Protocol", "Add Protocol for the " + StepSelectedRow.description + " module");

            namedComboBox ActionType = new namedComboBox("Action Type: ");
            //ActionType.Location = new System.Drawing.Point(0,20);
            namedComboBox     ActionValueType = new namedComboBox("Action Value Type: ");
            namedInputTextBox index           = new namedInputTextBox("Index : ");
            namedInputTextBox description     = new namedInputTextBox("Description");

            ActionType.getComboBox().DataSource    = dsModuleStructureGUI.dtActionType;
            ActionType.getComboBox().DisplayMember = "description";
            ActionType.getComboBox().Text          = "Action Type";

            ActionValueType.getComboBox().DataSource    = dsModuleStructureGUI.dtActionValueType;
            ActionValueType.getComboBox().DisplayMember = "description";
            ActionValueType.getComboBox().Text          = "Action Value Type";

            dialog.addNamedInputTextBox(index);
            dialog.addNamedInputTextBox(description);
            dialog.addControl(ActionType);
            dialog.addControl(ActionValueType);
            dialog.ShowDialog();

            DataSets.dsModuleStructure3.dtActionTypeRow Actionrow;
            DataRowView ActionCombo = ActionType.getComboBox().SelectedItem as DataRowView;

            Actionrow = ActionCombo.Row as DataSets.dsModuleStructure3.dtActionTypeRow;

            DataSets.dsModuleStructure3.dtActionValueTypeRow ActionValueTyperow;
            DataRowView ActionValueTypecombo = ActionValueType.getComboBox().SelectedItem as DataRowView;

            ActionValueTyperow = ActionValueTypecombo.Row as DataSets.dsModuleStructure3.dtActionValueTypeRow;



            if (dialog.DialogResult.Equals(DialogResult.OK))
            {
                DataSets.dsModuleStructure3.dtActionValueRow row;
                row                      = dsModuleStructureGUI.dtActionValue.NewdtActionValueRow();
                row.index                = string.IsNullOrEmpty(index.getInputTextValue()) ? 0 : int.Parse(index.getInputTextValue());
                row.description          = description.getInputTextValue();
                row.fk_step_leaf_id      = StepSelectedRow.pk_id;
                row.fk_action_type       = Actionrow.pk_id;
                row.fk_action_value_type = ActionValueTyperow.pk_id;
                dsModuleStructureGUI.dtActionValue.AdddtActionValueRow(row);
                updateActionRow(row);
            }
        }
Ejemplo n.º 7
0
        private void crudOptionsAction_ModifyClickHandler(object sender, EventArgs e)
        {
            abstractDialog dialog = new abstractDialog("Action type", "Modify");

            DataSets.dsModuleStructure3.dtActionValueRow row = getSelectedActionRow();
            if (row == null)
            {
                return;
            }

            namedInputTextBox index           = new namedInputTextBox("Index: ", row.index.ToString());
            namedInputTextBox description     = new namedInputTextBox("Description", row.description);
            namedComboBox     ActionType      = new namedComboBox("Action Type: ");
            namedComboBox     ActionValueType = new namedComboBox("Action Value Type: ");

            ActionType.Text = "Action Type";
            ActionType.getComboBox().DataSource    = dsModuleStructureGUI.dtActionType;
            ActionType.getComboBox().ValueMember   = "pk_id";
            ActionType.getComboBox().DisplayMember = "description";
            ActionType.getComboBox().SelectedValue = row.fk_action_type;

            ActionValueType.Text = "Action Value Type";
            ActionValueType.getComboBox().DataSource    = dsModuleStructureGUI.dtActionValueType;
            ActionValueType.getComboBox().ValueMember   = "pk_id";
            ActionValueType.getComboBox().DisplayMember = "description";
            ActionValueType.getComboBox().SelectedValue = row.fk_action_value_type;

            dialog.addNamedInputTextBox(index);
            dialog.addNamedInputTextBox(description);
            dialog.addControl(ActionType);
            dialog.addControl(ActionValueType);

            dialog.ShowDialog();

            DataSets.dsModuleStructure3.dtActionTypeRow Actionrow;
            DataRowView ActionCombo = ActionType.getComboBox().SelectedItem as DataRowView;

            Actionrow = ActionCombo.Row as DataSets.dsModuleStructure3.dtActionTypeRow;

            DataSets.dsModuleStructure3.dtActionValueTypeRow ActionValueTyperow;
            DataRowView ActionValueTypecombo = ActionValueType.getComboBox().SelectedItem as DataRowView;

            ActionValueTyperow = ActionValueTypecombo.Row as DataSets.dsModuleStructure3.dtActionValueTypeRow;

            if (dialog.DialogResult.Equals(DialogResult.OK))
            {
                row.index                = string.IsNullOrEmpty(index.getInputTextValue()) ? 0 : int.Parse(index.getInputTextValue());
                row.description          = description.getInputTextValue();
                row.fk_action_type       = Actionrow.pk_id;
                row.fk_action_value_type = ActionValueTyperow.pk_id;
                updateActionRow(row);
            }
        }
        private void crudOptions_AddClickHandler(object sender, EventArgs e)
        {
            /*
             * DataSets.dsModuleStructure3.dtLabwareTypeLabwareParameterTypeRow labwareParameterType =
             *  dsModuleStructureGUI.dtLabwareTypeLabwareParameterType.NewdtLabwareTypeLabwareParameterTypeRow();
             * DataSets.dsModuleStructure3.dtLabwareTypeRow labwareRow = getSelectedLabwareTypeRow();
             */

            abstractDialog dialog = new abstractDialog("Action type", "Add");

            namedInputTextBox description = new namedInputTextBox("Description: ");

            dialog.addNamedInputTextBox(description);

            namedComboBox cbActionValueTupe = new namedComboBox("Labware parameter: ");

            cbActionValueTupe.getComboBox().DataSource    = bsLabwareParameterType;
            cbActionValueTupe.getComboBox().DisplayMember = "description";

            dialog.addControl(cbActionValueTupe);

            dialog.ShowDialog();

            if (dialog.DialogResult.Equals(DialogResult.OK))
            {
                DataSets.dsModuleStructure3.dtLabwareTypeLabwareParameterTypeRow row = dsModuleStructureGUI.dtLabwareTypeLabwareParameterType.NewdtLabwareTypeLabwareParameterTypeRow();
                DataSets.dsModuleStructure3.dtLabwareParameterTypeRow            dtLabwareParameterTypeRow = getSelectedLabwareParameterTypeRow();
                DataSets.dsModuleStructure3.dtLabwareTypeRow dtLabwareTypeRow = getSelectedLabwareTypeRow();

                if (dtLabwareParameterTypeRow == null)
                {
                    return;
                }

                if (dtLabwareTypeRow == null)
                {
                    return;
                }

                row.fk_labware_parameter_type_id = dtLabwareParameterTypeRow.pk_id;
                row.fk_labware_type_id           = dtLabwareTypeRow.pk_id;
                row.value = description.getInputTextValue();

                dsModuleStructureGUI.dtLabwareTypeLabwareParameterType.AdddtLabwareTypeLabwareParameterTypeRow(row);
                updateRow(row);
            }
        }
Ejemplo n.º 9
0
        private void crudOptionsSavedProtocol_AddClickHandler(object sender, EventArgs e)
        {
            flag = 0;
            DataSets.dsModuleStructure3.dtSavedProtocolRow ProtocolSavedRow = getSavedProtocolRow(flag);
            if (ProtocolSavedRow == null)
            {
                return;
            }
            abstractDialog dialog = new abstractDialog("New protocol", "Add new protocol");

            //ComboBox ProtocolID = new ComboBox();
            namedInputTextBox description       = new namedInputTextBox("Protocol Name");
            namedComboBox     FirstStepComboBox = new namedComboBox("First Saved Step");

            FirstStepComboBox.Text = "Action Type";
            FirstStepComboBox.getComboBox().DataSource    = dsModuleStructureGUI.dtStepComposite;
            FirstStepComboBox.getComboBox().ValueMember   = "pk_id";
            FirstStepComboBox.getComboBox().DisplayMember = "description";



            dialog.addNamedInputTextBox(description);
            dialog.addControl(FirstStepComboBox);
            //dialog.addControl(ProtocolID);
            dialog.ShowDialog();

            DataSets.dsModuleStructure3.dtStepCompositeRow StepCompositerow;
            DataRowView ActionCombo = FirstStepComboBox.getComboBox().SelectedItem as DataRowView;

            StepCompositerow = ActionCombo.Row as DataSets.dsModuleStructure3.dtStepCompositeRow;

            if (dialog.DialogResult.Equals(DialogResult.OK))
            {
                DataSets.dsModuleStructure3.dtSavedProtocolRow row;
                row                   = dsModuleStructureGUI.dtSavedProtocol.NewdtSavedProtocolRow();
                row.description       = description.getInputTextValue();
                row.fk_step_composite = StepCompositerow.pk_id;
                dsModuleStructureGUI.dtSavedProtocol.AdddtSavedProtocolRow(row);
                updateSavedProtocolRow(row);
                this.dataGridView1.DataSource = taSavedProtocol1.GetDataByDesc();
                this.dataGridView2.DataSource = taSavedProtocol1.GetData();
                bindingSource1.DataSource     = dataGridView2.DataSource;
            }
        }
        private void crudOptions_AddClickHandler(object sender, EventArgs e)
        {
            abstractDialog dialog = new abstractDialog("Module type", "Add");

            namedInputTextBox description = new namedInputTextBox("Description");
            dialog.addNamedInputTextBox(description);

            dialog.ShowDialog();

            if (dialog.DialogResult.Equals(DialogResult.OK))
            {
                DataSets.dsModuleStructure2.dtLabwareParameterTypeRow row;

                row = dsModuleStructureGUI.dtLabwareParameterType.NewdtLabwareParameterTypeRow();
                row.description = description.getInputTextValue();
                dsModuleStructureGUI.dtLabwareParameterType.AdddtLabwareParameterTypeRow(row);
                updateRow(row);
            }
        }
Ejemplo n.º 11
0
        private void crudOptions_AddClickHandler(object sender, EventArgs e)
        {
            abstractDialog dialog = new abstractDialog("Module type", "Add");

            namedInputTextBox description = new namedInputTextBox("Description");

            dialog.addNamedInputTextBox(description);

            dialog.ShowDialog();

            if (dialog.DialogResult.Equals(DialogResult.OK))
            {
                DataSets.dsModuleStructure3.dtModuleTypeRow row;

                row             = dsModuleStructureGUI.dtModuleType.NewdtModuleTypeRow();
                row.description = description.getInputTextValue();
                dsModuleStructureGUI.dtModuleType.AdddtModuleTypeRow(row);
                updateRow(row);
            }
        }
Ejemplo n.º 12
0
        private void crudOptions_ModifyClickHandler(object sender, EventArgs e)
        {
            abstractDialog dialog = new abstractDialog("Action type", "Modify");

            DataSets.dsModuleStructure3.dtModuleTypeRow row = getSelectedRow();

            if (row == null)
            {
                return;
            }

            namedInputTextBox description = new namedInputTextBox("Description", row.description);

            dialog.addNamedInputTextBox(description);

            dialog.ShowDialog();

            if (dialog.DialogResult.Equals(DialogResult.OK))
            {
                row.description = description.getInputTextValue();
                updateRow(row);
            }
        }
Ejemplo n.º 13
0
 public void addNamedInputTextBox(namedInputTextBox namedInputTextBox)
 {
     layoutPanel.Controls.Add(namedInputTextBox);
 }
        private void crudOptions_ModifyClickHandler(object sender, EventArgs e)
        {
            abstractDialog dialog = new abstractDialog("Action type", "Modify");
            DataSets.dsModuleStructure2.dtLabwareParameterTypeRow row = getSelectedRow();

            if(row == null)
            {
                return;
            }

            namedInputTextBox description = new namedInputTextBox("Description", row.description);
            dialog.addNamedInputTextBox(description);

            dialog.ShowDialog();

            if (dialog.DialogResult.Equals(DialogResult.OK))
            {
                row.description = description.getInputTextValue();
                updateRow(row);
            }
        }
Ejemplo n.º 15
0
        private void crudOptionsSavedProtocol_AddClickHandler(object sender, EventArgs e)
        {
            flag = 0;
            DataSets.dsModuleStructure3.dtSavedProtocolRow ProtocolSavedRow = getSavedProtocolRow(flag);
            if (ProtocolSavedRow == null)
            {
                return;
            }
            abstractDialog dialog = new abstractDialog( "New protocol", "Add new protocol");

            //ComboBox ProtocolID = new ComboBox();
            namedInputTextBox description = new namedInputTextBox("Protocol Name");
            namedComboBox FirstStepComboBox = new namedComboBox("First Saved Step");

            FirstStepComboBox.Text = "Action Type";
            FirstStepComboBox.getComboBox().DataSource = dsModuleStructureGUI.dtStepComposite;
            FirstStepComboBox.getComboBox().ValueMember = "pk_id";
            FirstStepComboBox.getComboBox().DisplayMember = "description";

            dialog.addNamedInputTextBox(description);
            dialog.addControl(FirstStepComboBox);
            //dialog.addControl(ProtocolID);
            dialog.ShowDialog();

            DataSets.dsModuleStructure3.dtStepCompositeRow StepCompositerow;
            DataRowView ActionCombo = FirstStepComboBox.getComboBox().SelectedItem as DataRowView;
            StepCompositerow = ActionCombo.Row as DataSets.dsModuleStructure3.dtStepCompositeRow;

            if (dialog.DialogResult.Equals(DialogResult.OK))
            {
                DataSets.dsModuleStructure3.dtSavedProtocolRow row;
                row = dsModuleStructureGUI.dtSavedProtocol.NewdtSavedProtocolRow();
                row.description = description.getInputTextValue();
                row.fk_step_composite = StepCompositerow.pk_id;
                dsModuleStructureGUI.dtSavedProtocol.AdddtSavedProtocolRow(row);
                updateSavedProtocolRow(row);
                this.dataGridView1.DataSource = taSavedProtocol1.GetDataByDesc();
                this.dataGridView2.DataSource = taSavedProtocol1.GetData();
                bindingSource1.DataSource = dataGridView2.DataSource;
            }
        }
Ejemplo n.º 16
0
        private void crudOptionsSavedProtocol_ModifyClickHandler(object sender, EventArgs e)
        {
            flag = 0;
            abstractDialog dialog = new abstractDialog("Saved Protocols", "Modify");
            DataSets.dsModuleStructure3.dtSavedProtocolRow row = getSavedProtocolRow(flag);

            if (row == null)
            {
                return;
            }

            namedInputTextBox description = new namedInputTextBox("Description", row.description);
            dialog.addNamedInputTextBox(description);

            dialog.ShowDialog();

            if (dialog.DialogResult.Equals(DialogResult.OK))
            {
                int DatagridRow2 = dataGridView2.RowCount;
                for (int i = 0; i < DatagridRow2; i++)
                {
                    DataRowView rowView = dataGridView2.Rows[0].DataBoundItem as DataRowView;
                    row = rowView.Row as DataSets.dsModuleStructure3.dtSavedProtocolRow;
                    row.description = description.getInputTextValue();
                    updateSavedProtocolRow(row);
                }
                this.dataGridView1.DataSource = taSavedProtocol1.GetDataByDesc();
                this.dataGridView2.DataSource = taSavedProtocol1.GetData();
                bindingSource1.DataSource = dataGridView2.DataSource;
            }
        }
Ejemplo n.º 17
0
 public void addCommand(dsModuleStructure3.dtActionTypeRow actionType)
 {
     inputBox = new namedInputTextBox(actionType.description);
     layoutModuleParametersStop.Controls.Add(inputBox);
     actionTypeInputBoxDict.Add(actionType, inputBox);
 }
Ejemplo n.º 18
0
        private void panel1_DragEnter(object sender, DragEventArgs e)
        {
            if (e.Data.GetDataPresent(DataFormats.Text))
            {
                e.Effect = DragDropEffects.Copy;
            }
            else
            {
                e.Effect = DragDropEffects.None;
            }

            string entry = e.Data.GetData(DataFormats.Text).ToString();
            abstractDialog dialog = new abstractDialog("New Module" + entry, "Type Info");
            namedInputTextBox xCoord = new namedInputTextBox("X :  ");
            namedInputTextBox yCoord = new namedInputTextBox("Y :  ");

            ComboBox rotation = new ComboBox();
            angle = new int[] { 0, 90, 180, 270 };
            rotation.DataSource = angle;
            rotation.Text = "Rotation :  ";
            rotation.DropDownStyle = ComboBoxStyle.DropDown;
            dialog.addNamedInputTextBox(xCoord);
            dialog.addNamedInputTextBox(yCoord);
            dialog.addControl(rotation);

            dialog.ShowDialog();
        }
Ejemplo n.º 19
0
 public void addNamedInputTextBox(namedInputTextBox namedInputTextBox)
 {
     layoutPanel.Controls.Add(namedInputTextBox);
 }
        private void crudOptions_AddClickHandler(object sender, EventArgs e)
        {
            /*
            DataSets.dsModuleStructure3.dtLabwareTypeLabwareParameterTypeRow labwareParameterType =
                dsModuleStructureGUI.dtLabwareTypeLabwareParameterType.NewdtLabwareTypeLabwareParameterTypeRow();
            DataSets.dsModuleStructure3.dtLabwareTypeRow labwareRow = getSelectedLabwareTypeRow();
            */

            abstractDialog dialog = new abstractDialog("Action type", "Add");

            namedInputTextBox description = new namedInputTextBox("Description: ");
            dialog.addNamedInputTextBox(description);

            namedComboBox cbActionValueTupe = new namedComboBox("Labware parameter: ");

            cbActionValueTupe.getComboBox().DataSource = bsLabwareParameterType;
            cbActionValueTupe.getComboBox().DisplayMember = "description";

            dialog.addControl(cbActionValueTupe);

            dialog.ShowDialog();

            if (dialog.DialogResult.Equals(DialogResult.OK))
            {
                DataSets.dsModuleStructure3.dtModuleTypeLabwareParameterTypeRow row = dsModuleStructureGUI.dtModuleTypeLabwareParameterType.NewdtModuleTypeLabwareParameterTypeRow();
                DataSets.dsModuleStructure3.dtLabwareParameterTypeRow dtLabwareParameterTypeRow = getSelectedLabwareParameterTypeRow();
                DataSets.dsModuleStructure3.dtModuleTypeRow dtModuleTypeRow = getSelectedModuleType();

                if(dtLabwareParameterTypeRow == null)
                {
                    return;
                }

                if(dtModuleTypeRow == null)
                {
                    return;
                }

                row.fk_labware_parameter_type_id = dtLabwareParameterTypeRow.pk_id;
                row.fk_module_type_id = dtModuleTypeRow.pk_id;
                row.value = description.getInputTextValue();

                dsModuleStructureGUI.dtModuleTypeLabwareParameterType.AdddtModuleTypeLabwareParameterTypeRow(row);
                updateRow(row);
            }
        }