예제 #1
0
        private void yenile_Click(object sender, EventArgs e)
        {
            try
            {
                pWS = new projeWS();

                pWS.Url = "http://160.75.96.32/1/webServices/projeWS.asmx";

                hWS = new hataWS();

                hWS.Url = "http://160.75.96.32/1/webServices/hataWS.asmx";

                projeler.Items.Clear();

                string[] projeIsimler = pWS.projeleriListele();

                foreach (string projeIsmi in projeIsimler)
                {
                    projeler.Items.Add(projeIsmi);
                }
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.ToString());
            }
        }
예제 #2
0
        private void Form1_Load(object sender, EventArgs e)
        {
            try
            {
                if (!sorumlu)
                {
                    tabControl1.SelectedIndex = 1;
                    tabPage1.Enabled          = false;
                    tabPage1.Text             = "";
                }


                pWS = new projeWS();

                pWS.Url = "http://160.75.96.32/1/webServices/projeWS.asmx";

                hWS = new hataWS();

                hWS.Url = "http://160.75.96.32/1/webServices/hataWS.asmx";

                projeler.Items.Clear();

                string[] projeIsimler = pWS.projeleriListele();

                for (int i = 0; i < projeIsimler.Length; i++)
                {
                    projeler.Items.Add(projeIsimler[i]);
                }
            }
            catch
            {
                MessageBox.Show("Baðlantý kurulamadý");
                Application.Exit();
            }
        }