Esempio n. 1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            //Default values

            uploadTextBox1.Text = DateTime.Now.ToString().Substring(0, 10);
            uploadTextBox2.Text = DateTime.Now.ToString().Substring(11, 5);

            //populating drop down with Exercise types
            PopulateDropDown exerciseDD = new PopulateDropDown();

            exerciseDD.Type = "AllDistinctExercises";
            exerciseDD.populate();

            uploadDropDownList1.DataSource = exerciseDD.ReturnedList;
            uploadDropDownList1.DataBind();

            //populating dashboard

            PopulateDashboard1RM RMDash = new PopulateDashboard1RM();

            DashboardGridView1.DataSource = RMDash.populate1RMDashboard();
            DashboardGridView1.DataBind();


            ///////////////////
            Populate1RmGraph RMDash2 = new Populate1RmGraph();

            GridView2.DataSource = RMDash2.populate1RmGraph();
            GridView2.DataBind();
        }
Esempio n. 2
0
        protected void Chart1_Load(object sender, EventArgs e)
        {
            string[] label       = new string[] { "A", "B" };
            int[]    value_chart = new int[] { 100, 120 };

            Populate1RmGraph RMDash = new Populate1RmGraph();

            Chart1.DataSource = RMDash.populate1RmGraph();

            Chart1.Series[0].XValueMember  = "DateCreated";
            Chart1.Series[0].YValueMembers = "RM";
            Chart1.DataBind();
            //Chart1.Series[0].Points.DataBindXY(label, value_chart);
        }