private void HasilPemilihan_Load(object sender, EventArgs e)
        {
            // TODO: This line of code loads data into the 'pilketosDataSet1.kandidat' table. You can move, or remove it, as needed.
            this.kandidatTableAdapter.Fill(this.pilketosDataSet1.kandidat);
            kandidat kand = new kandidat();

            PanelMenu.Visible = false;
            PanelMenu.BringToFront();
            for (int i = 0; i < dataGridView1.RowCount; i++)
            {
                if (dataGridView1.Rows[i].Cells[6].Value.ToString() == "10")
                {
                    this.chart1.Series["Suara"].Points.AddXY(dataGridView1.Rows[i].Cells[1].Value.ToString(), Convert.ToInt32(dataGridView1.Rows[i].Cells[5].Value));
                }
                else if (dataGridView1.Rows[i].Cells[6].Value.ToString() == "11")
                {
                    this.chart2.Series["Suara"].Points.AddXY(dataGridView1.Rows[i].Cells[1].Value.ToString(), Convert.ToInt32(dataGridView1.Rows[i].Cells[5].Value));
                }
            }
        }
 private void PictureBox1_Click(object sender, EventArgs e)
 {
     PanelMenu.Visible = true;
     PanelMenu.BringToFront();
 }
 private void WellcomeAdmin_Load(object sender, EventArgs e)
 {
     PanelMenu.Visible = false;
     PanelMenu.BringToFront();
 }
Exemplo n.º 4
0
 private void FromDataUser_Load(object sender, EventArgs e)
 {
     PanelMenu.BringToFront();
     loadAll();
 }