1234567891011121314151617181920212223242526272829303132333435363738394041 |
- using ComponentFactory.Krypton.Toolkit;
- using NXWMS.Client.Code.Config;
- 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;
- namespace NXWMS
- {
- public partial class frmLocSetting : KryptonForm
- {
- public frmLocSetting()
- {
- InitializeComponent();
- this.kryptonCmbPaletteMode.Text = AppConfig._GlobalPaletteMode;
- this.txtWebApiURL.Text = AppConfig._WebApiURL;
- this.kryptonNumCount.Value = AppConfig._MaxFormCount;
- }
- private void kryptonButtonSave_Click(object sender, EventArgs e)
- {
- AppConfig._GlobalPaletteMode = kryptonCmbPaletteMode.Text;
- AppConfigHelper.Update("WebApiUrl", txtWebApiURL.Text);
- AppConfigHelper.Update("GlobalPaletteMode", kryptonCmbPaletteMode.Text);
- AppConfigHelper.Update("MaxFormCount", kryptonNumCount.Value.ToString());
- kryptonManager.GlobalPaletteMode = (PaletteModeManager)Enum.Parse(typeof(PaletteModeManager), AppConfig._GlobalPaletteMode);
- this.DialogResult = DialogResult.OK;
- }
- private void kryptonButton_Click(object sender, EventArgs e)
- {
- AppConfig._GlobalPaletteMode = kryptonCmbPaletteMode.Text;
- kryptonManager.GlobalPaletteMode = (PaletteModeManager)Enum.Parse(typeof(PaletteModeManager), AppConfig._GlobalPaletteMode);
- }
- }
- }
|