ImageGlass/frmSetting.cs
(完整代码) 1KBusing System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
namespace ImageGlass
{
public partial class frmSetting : Form
{
public frmSetting()
{
InitializeComponent();
}
private void btnClose_Click(object sender, EventArgs e)
{
Global.Plugins.ClosePlugins();
this.Close();
}
private void frmSetting_Load(object sender, EventArgs e)
{
RenderTheme r = new RenderTheme();
r.ApplyTheme(tvFeature);
Global.Plugins.FindPlugins(Application.StartupPath + @"\Plugins");
foreach (Types.AvailablePlugin p in Global.Plugins.AvailablePlugins)
{
TreeNode n = new TreeNode(p.Instance.Name);
tvFeature.Nodes.Add(n);
n = null;
}
}
private void tvFeature_AfterSelect(object sender, TreeViewEventArgs e)
{
if (tvFeature.SelectedNode != null)
{
Types.AvailablePlugin p = Global.Plugins.AvailablePlugins.Find(
tvFeature.SelectedNode.Text);
if (p != null)
{
panMain.Controls.Clear();
p.Instance.MainInterface.Dock = DockStyle.Fill;
panMain.Controls.Add(p.Instance.MainInterface);
}
}
}
}
}
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。