Ejemplo n.º 1
0
 //接受参数事件
 private void MidModule_EventSend(object sender, object data, object e)
 {
     if (sender != null)
     {
         Model.EventInfo einfo = e as Model.EventInfo;
         if (einfo.Title != "数据导入")
         {
             return;
         }
         Form fr = sender as Form;
         if (fr.Text == "对象资源管理器")
         {
             dinfo = data as DbDataInfo;
             DbDataTypeEnum ddt = DbDataType.GetDbDataType(dinfo.NameType);
             if (ddt != DbDataTypeEnum.表)
             {
                 MessageBox.Show("请选择表。");
                 return;
             }
             string msg = "数据库:" + dinfo.DbName;
             if (DbDataType.GetDbDataType(dinfo.NameType).ToString() != "数据库")
             {
                 msg = msg + " " + DbDataType.GetDbDataType(dinfo.NameType).ToString() + ":" + dinfo.Name;
             }
             lb_DbMessage.Text = msg;
             QueryData();
         }
     }
 }
Ejemplo n.º 2
0
 //接受参数事件
 private void MidModule_EventSend(object sender, object data, object e)
 {
     if (sender != null)
     {
         Form fr = sender as Form;
         if (fr.Text == "对象资源管理器")
         {
             dinfo = data as DbDataInfo;
             if (dinfo != null)
             {
             }
             if (e == null)
             {
                 return;
             }
             Model.EventInfo einfo = e as Model.EventInfo;
         }
     }
 }