Exemplo n.º 1
0
 private void SuspectIP_Load(object sender, EventArgs e)
 {
     try {
         DataSet ds = new DataSet();
         ds = obj_data.GetAlldata("select * from [SaveALlRequests]");
         dataGridView1.DataSource = ds.Tables[0];
     }
     catch
     { }
 }
Exemplo n.º 2
0
 private void AllDataTransfer_Load(object sender, EventArgs e)
 {
     try
     {
         DataSet ds = new DataSet();
         ds = obj_data.GetAlldata("select * from [DataReceiving]");
         dataGridView1.DataSource = ds.Tables[0];
     }
     catch
     { }
 }
Exemplo n.º 3
0
        public bool checking(string ipaddress)
        {
            textBox2 = ipaddress;
            DataCls obj_data = new DataCls();
            DataSet ds       = new DataSet();

            ds = obj_data.GetAlldata("select * from TotalALLSignatures where [IPAdd1]='" + ipaddress + "'");
            if (ds.Tables[0].Rows.Count > 0)
            {
                textBox3 = ds.Tables[0].Rows[0][5].ToString();
                textBox4 = "Active";
                return(true);
            }
            else
            {
                textBox3 = "Suspective";
                textBox4 = "Action Closed";
                return(false);
            }
        }
Exemplo n.º 4
0
        public bool checking(string ipaddress)
        {
            DataCls obj_data = new DataCls();
            DataSet ds       = new DataSet();

            ds = obj_data.GetAlldata("select * from TotalALLSignatures where [IPAdd1]='" + ipaddress + "'");
            if (ds.Tables[0].Rows.Count > 0)
            {
                //textBox3.Text = ds.Tables[0].Rows[0][5].ToString();
                //textBox4.Text = "Active";
                iresult = true;
            }
            else
            {
                // textBox3.Text ="Suspective";
                //textBox4.Text = "Action Closed";
                iresult = false;
            }
            return(iresult);
        }