Esempio n. 1
0
 void CheckSuccessEvent(object sender, MyEventArgs e)
 {
     ProxyIpModel model = (ProxyIpModel)e.Value;
     if (DAO.HasExistProxy(model.Ip))
     {
         DAO.UpdateProxy(model);
     }else{
         DAO.AddProxy(model);
     }
     DataTable dataTable = (DataTable)proxyGridView.DataSource;
     DataRow newDr = dataTable.NewRow();
     newDr.ItemArray = new object[] { model.Ip, model.IpDesc };
     dataTable.Rows.InsertAt(newDr, 0);
 }
Esempio n. 2
0
 void WriteLogEvent(object sender, MyEventArgs e)
 {
     this.toolStripStatusLabel1.Text = (string)e.Value;
 }