private void Window_Main_Load(object sender, EventArgs e) { #region 基础插件初始化 if (LongLife.Plug_Lrc.LoadPlugs() == 0) { MessageBox.Show("基础插件加载失败,无法正常运行程序,请点击反馈按钮寻找技术支持。", "提示", MessageBoxButtons.OK, MessageBoxIcon.Error); } else { Config.Load(); applicationSet(); updateCheck(); } #endregion #region 高级插件初始化 LongLife.Plug_High.LoadPlugs(); var test = new ResourceModule { MainListBox = listView_Music, ListContextMenu = new ContextMenu(), MainProgressBar = toolStripProgressBar_DownLoad, MusicPathList = LongLife.MusicPathList, MainStatusStrip = toolStripStatusLabel_Information }; foreach (var item in LongLife.Plug_High.Plugs) { item.Init(ref test); } #endregion }
public void Init(ref ResourceModule module) { this.module = module; bind(); }