Example #1
0
        public static void RefreshHomePage()
        {
            BaseLog frm = Application.OpenForms["FrmHomePage"] as BaseLog;

            if (frm != null)
            {
                frm.BindDataGrid();
            }
        }
Example #2
0
 /// <summary>
 /// 日志查询
 /// 鄢国平 2012-10-9
 /// </summary>
 /// <returns></returns>
 public static BaseLog GetLogMain(string logClassName, string logKeyName, string LogKeyValue)
 {
     try
     {
         object[] args = new object[3];
         args[0] = logClassName;
         args[1] = logKeyName;
         args[2] = LogKeyValue;
         //通过反射得到实例
         Assembly _assembly = Assembly.LoadFile(System.IO.Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location) + "\\FZYK.WinUI.SystemManage.dll");
         BaseLog  form      = _assembly.CreateInstance("FZYK.WinUI.SystemManage.FrmLogMain", false, BindingFlags.CreateInstance, null, args, null, null) as BaseLog;
         return(form);
     }
     catch (Exception ex) { throw ex; }
 }