Exemple #1
0
 //初始化
 public void IntialModuleCommon(User LogInUser, PluginCollection pluginCol)
 {
     try
     {
         if (pluginCol == null)
         {
             return;
         }
         ParsePluginCol parsePluginCol = new ParsePluginCol(pluginCol);
         AllPlugin = parsePluginCol.AllPlugin;
     }
     catch (Exception err)
     {
         LogManager.WriteSysLog(err, string.Format("分类解析插件错误:Function Name PluginUI.IntialModuleCommon"));
     }
     //实时刷新命令按钮Enable属性
     _Timer.Interval = 500;
     _Timer.Enabled  = true;
     _Timer.Tick    += new EventHandler(Timer_Tick);
 }
Exemple #2
0
 public bool Equals(PluginStruct? obj)
 {
     if (obj == null || !obj.HasValue) return false;
     return (obj.Value.CommandLine == CommandLine
         && obj.Value.IsUrl == IsUrl
         && obj.Value.Name == Name
         && obj.Value.ShortKeyCode == ShortKeyCode
         && obj.Value.ShortKeyModifiers == ShortKeyModifiers);
 }