private void frmMain_Load(object sender, System.EventArgs e) { m_Plugins = new PluginServices(); //Call the find plugins routine, to search in our Plugins Folder m_Plugins.FindPlugins(Application.StartupPath + @"\Plugins"); //添加插件 foreach (Types.AvailablePlugin pluginOn in m_Plugins.AvailablePlugins) { //TreeNode newNode = new TreeNode(pluginOn.Instance.CName); TreeNode newNode = new TreeNode(System.IO.Path.GetFileNameWithoutExtension(pluginOn.AssemblyPath)); newNode.Tag = pluginOn.AssemblyPath; this.tvwPlugins.Nodes.Add(newNode); newNode = null; } if (!String.IsNullOrWhiteSpace(m_config.SyncServerName)) { this.Text += " - " + m_config.SyncServerName; notifyIcon1.Text = m_config.SyncServerName + "运行中"; } }
private void frmMain_Load(object sender, System.EventArgs e) { m_Plugins =new PluginServices(); //Call the find plugins routine, to search in our Plugins Folder m_Plugins.FindPlugins(Application.StartupPath + @"\Plugins"); //��Ӳ�� foreach (Types.AvailablePlugin pluginOn in m_Plugins.AvailablePlugins) { //TreeNode newNode = new TreeNode(pluginOn.Instance.CName); TreeNode newNode = new TreeNode(System.IO.Path.GetFileNameWithoutExtension(pluginOn.AssemblyPath)); newNode.Tag = pluginOn.AssemblyPath; this.tvwPlugins.Nodes.Add(newNode); newNode = null; } if (!String.IsNullOrWhiteSpace(m_config.SyncServerName)) { this.Text += " - " + m_config.SyncServerName; notifyIcon1.Text = m_config.SyncServerName + "������"; } }