Exemple #1
0
        private void checkMyUIDToolStripMenuItem_Click(object sender, EventArgs e)
        {
            String authkey = sf_cs.Properties.Settings.Default.AuthKey;

            WebrequestHandler webRequestHandler = new WebrequestHandler("http://localhost/supporter/supporter-backend/php/?act=getauthkey&authkey=" + authkey, "", 1);

            MessageBox.Show(webRequestHandler.request());
        }
Exemple #2
0
        private void User_Load(object sender, EventArgs e)
        {
            ticketList.Items.Clear();

            String authkey = sf_cs.Properties.Settings.Default.AuthKey;

            WebrequestHandler webRequestHandler = new WebrequestHandler("http://localhost/supporter/supporter-backend/php/?act=getitemlist&authkey=" + authkey, "", 1);
            //MessageBox.Show(webRequestHandler.request());
            String ticketsUnformatted = webRequestHandler.request();

            String[] ticketsFormatted = ticketsUnformatted.Split(',');

            for (int i = 0; i < ticketsUnformatted.Length; i++)
            {
                ticketList.Items.Add(ticketsFormatted[i]);
            }
        }