mirror of
https://github.com/token2/pgina.git
synced 2026-03-13 11:14:19 -07:00
- Separate directories for core/contrib plugins. - Installer installs to separate directories within Plugins - PluginLoader loads plugins from plugin directory and subdirs.
40 lines
1.1 KiB
C#
40 lines
1.1 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel;
|
|
using System.Data;
|
|
using System.Drawing;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Windows.Forms;
|
|
|
|
using pGina.Shared.Settings;
|
|
|
|
namespace pGina.Plugin.Sample
|
|
{
|
|
public partial class Configuration : Form
|
|
{
|
|
dynamic m_settings = new pGinaDynamicSettings(SimplePlugin.SimpleUuid);
|
|
|
|
public Configuration()
|
|
{
|
|
InitializeComponent();
|
|
txtDescription.Text = m_settings.Description;
|
|
chkShowDescription.Checked = m_settings.ShowDescription;
|
|
}
|
|
|
|
private void btnOk_Click(object sender, EventArgs e)
|
|
{
|
|
this.DialogResult = System.Windows.Forms.DialogResult.OK;
|
|
m_settings.Description = txtDescription.Text;
|
|
m_settings.ShowDescription = chkShowDescription.Checked;
|
|
this.Close();
|
|
}
|
|
|
|
private void btnCancel_Click(object sender, EventArgs e)
|
|
{
|
|
this.DialogResult = System.Windows.Forms.DialogResult.Cancel;
|
|
this.Close();
|
|
}
|
|
}
|
|
}
|