Beispiel #1
0
 protected void Next_Click(object sender, EventArgs e)
 {
     if (DatasetList.Text != "")
     {
         Analysis.Analysis        analysis = (Analysis.Analysis)Session["analysis"];
         Analysis.ParameterStream stream   = Analysis.ParameterStream.getStream(Session);
         stream.set("dataSetName", DatasetList.Text);
         analysis.next(Response, Session);
     }
 }
        // NEXT BUTTON HANDLER ---------------------------------------------------------------------------------------------------------

        protected void next_button_Click(object sender, EventArgs e)
        {
            // Create template control to operate on
            Control testcontrol;

            // Data storage set
            string[, ,] datatowrite;

            // Loop through cells in layout table looking for controls
            for (int row_traverse = 0; row_traverse < max_layout_rows; row_traverse++)
            {
                for (int col_traverse = 0; col_traverse < max_layout_cols; col_traverse++)
                {
                    // Check if cell has a control
                    testcontrol = (Control)Form.FindControl("control_" + col_traverse + "_" + row_traverse);

                    // If so, call data write function
                    if (testcontrol != null)
                    {
                        datatowrite = control_dataretrieve(testcontrol);
                        if (datatowrite[0, 0, 0] != null)
                        {
                            //datawrite(datatowrite, controlarray[col_traverse, row_traverse, 2], testcontrol.ID);
                        }
                    }
                }
            }

            // ALGORITHM STEP RUN -------------------------------------


            Analysis.Analysis analysis = (Analysis.Analysis)Session["analysis"];
            analysis.next(Response, Session);

            /*
             *
             * // Create instance of algorithm class (deleted on postback)
             * testalgorithm myalg = new testalgorithm();
             *
             * // Call algorithm method with current step id
             * myalg.supermethod(algorithmid, stepid, jobid);
             *
             * // Move to next step
             * Session["stepid"] = (int)Session["stepid"] + 1;
             * Response.Redirect("Default.aspx", false);
             *
             */
        }