You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
57 lines
1.2 KiB
C#
57 lines
1.2 KiB
C#
using System;
|
|
using System.ComponentModel;
|
|
using System.Drawing;
|
|
using System.Windows.Forms;
|
|
|
|
|
|
namespace POSV.Component
|
|
{
|
|
[ToolboxItem(true)]
|
|
public partial class ModuleSettings : AbstractSettings
|
|
{
|
|
public ModuleSettings()
|
|
{
|
|
InitializeComponent();
|
|
|
|
}
|
|
|
|
protected override void OnLoad(EventArgs e)
|
|
{
|
|
base.OnLoad(e);
|
|
|
|
if (this.DesignMode) return;
|
|
|
|
|
|
this.BackColor = Color.Transparent;
|
|
|
|
}
|
|
|
|
private void OnButtonOKClick(object sender , EventArgs e)
|
|
{
|
|
var selected = this.superTabControl.SelectedTabIndex;
|
|
|
|
//快捷菜单定义
|
|
if (selected == 0)
|
|
{
|
|
this.shortcutControlDesigner1.SaveChanged();
|
|
}
|
|
|
|
if(selected == 1)
|
|
{
|
|
this.mainControlDesigner1.SaveChanged();
|
|
}
|
|
|
|
}
|
|
|
|
private void OnButtonCloseClick(object sender , EventArgs e)
|
|
{
|
|
var parent = this.FindForm();
|
|
if (parent != null && parent is SettingsForm)
|
|
{
|
|
var settings = parent as SettingsForm;
|
|
settings.FormClose();
|
|
}
|
|
}
|
|
}
|
|
}
|