/** * Callback method for when the page is loading. * * @param[in] sender Sender of the event. * @param[in] e Event arguments. */ protected void Page_Load(object sender, System.EventArgs e) { this.master_ = (CUTS.Master) this.Master; try { if (Page.IsPostBack) { return; } // Open the connection and create an adapter. this.InitializeCritialPaths(); // Determine if there is a request to display a path. string p_query = Request.QueryString["p"]; if (p_query != null) { // Get the path to query. long path_id = Int32.Parse(p_query); Session["path_id"] = path_id; // Update the name of the selected path. DataTable paths = (DataTable)this.paths_.DataSource; DataRow[] rows = paths.Select(String.Format("path_id = {0}", path_id)); this.notice_.Text = "<p>You are now editing the " + rows[0]["path_name"].ToString() + " execution path. Use the controls below to add new instances to the " + " execution path sequence.</p>"; DataSet ds = new DataSet(); //// Fill the adapter w/ the path element data. //MySqlDataAdapter path_adapter = this.CreatePathElementAdapter (conn, path_id); //path_adapter.Fill (ds, PATH_ELEMENTS_TABLE); //DataTable table = ds.Tables[PATH_ELEMENTS_TABLE]; //DataColumn[] primary_key = new DataColumn[1]; //primary_key[0] = table.Columns["path_order"]; //table.PrimaryKey = primary_key; //// Fill the dataset with the instance data. //MySqlDataAdapter inst_adapter = Execution_Paths.create_instance_adapter (conn); //inst_adapter.Fill (ds, Execution_Paths.INSTANCE_TABLE); //// Update the view. //UpdateView (ds); //Session["dataset"] = ds; } } catch (Exception ex) { this.master_.Console.Add(MessageSeverity.Error, ex.Message); } }
/** * Callback method for when the page is loading. * * @param[in] sender Sender of the event. * @param[in] e Event arguments. */ protected void Page_Load(object sender, EventArgs e) { this.master_ = (CUTS.Master) this.Master; if (IsPostBack) { return; } this.load_data(); }
/** * Callback method for when the page is loading. * * @param[in] sender Sender of the event. * @param[in] e Event arguments. */ private void Page_Load(object sender, System.EventArgs e) { this.master_ = (CUTS.Master) this.Master; try { if (!this.IsPostBack) { this.load_baseline(); } } catch (Exception ex) { this.master_.Console.Add(ex); } }
/** * Callback method for when the page is loading. * * @param[in] sender Sender of the event. * @param[in] e Event arguments. */ private void Page_Load(object sender, System.EventArgs e) { this.master_ = (CUTS.Master) this.Master; try { if (!this.IsPostBack) { this.load_component_types(); this.load_component_instances(); this.components_.CurrentPageIndex = 0; } else { this.load_component_instances(); } } catch (Exception ex) { this.master_.Console.Add(MessageSeverity.Error, ex.Message); } }
/** * Callback method for loading a page. * * @param[in] sender Sender of the event. * @param[in] e Arguments for the event. */ private void Page_Load(object sender, System.EventArgs e) { this.master_ = (CUTS.Master) this.Master; }
private void Page_Load(object sender, System.EventArgs e) { this.master_ = (CUTS.Master) this.Master; try { // Get the appropriate values from the query string. int test_number = int.Parse(Request.QueryString["t"]); int component = int.Parse(Request.QueryString["c"]); string metric = Request.QueryString["m"]; int src = int.Parse(Request.QueryString["src"]); int dst = -1; if (Request.QueryString["dst"] != null) { dst = int.Parse(Request.QueryString["dst"]); } // Update the navigation link. this.return_link_.NavigateUrl = "~/performance.aspx?t=" + test_number; // Construct the title of the chart. this.component_name_ = this.database_.get_component_name(component); string src_name = this.database_.get_component_portname(src); this.timeline_.ChartTitle.Text = this.component_name_ + "\n[metric = '" + metric + "' AND input = '" + src_name + "'"; if (dst != -1) { this.timeline_.ChartTitle.Text += " AND output = '" + this.database_.get_component_portname(dst) + "'"; } this.timeline_.ChartTitle.Text += "]"; // Get the execution times for the timeline. DataSet ds = new DataSet(); this.database_.get_component_execution_times(test_number, component, 1, metric, src, dst, ref ds); // Get the max time for the worse execution time and update // the chart so that the Y-axis is 10 msec more that the // max value. this.timeline_.YCustomEnd = this.database_.get_worst_execution_time(test_number, component) + 10; // Create the execution time charts. DataTable execution_time = ds.Tables["execution_time"]; create_execution_time_charts(execution_time); } catch (Exception ex) { this.master_.Console.Add(ex); } finally { this.timeline_.RedrawChart(); this.database_.Close(); } }