예제 #1
0
        private void listBox1_SelectedIndexChanged(object sender, System.EventArgs e)
        {
            string    user    = (listBox1.SelectedIndex + 1).ToString(); // the Author id as a string
            DataTable tickets = proxy.GetTickets(user);

            dataGridView1.DataSource = tickets;             // display all the tickets for the specified user in a data grid
        }
예제 #2
0
        // View all tickets
        private void button3_Click(object sender, EventArgs e)
        {
            if (state == 2)
            {
                listBox2.Visible      = false;
                dataGridView1.Visible = true;
                button5.Visible       = true;
                button6.Visible       = true;
                //dataGridView1.Location = new Point(119, 140);
                //dataGridView1.Size = new Size(857, 244);


                dataGridView1.DataSource = proxy.GetTickets();

                users = null;

                //dataGridView1.DataSource.
            }
            else if (state == 6)
            {
                dataGridView2.DataSource = proxy.GetSecondaryTicketsBySolver(username);
            }
        }