123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104 |
- 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 IControls_FireManager
- {
- public partial class Form_System_Config : Form
- {
- public Form_System_Config()
- {
- InitializeComponent();
-
-
-
-
-
- this.FormClosing += new FormClosingEventHandler(CreateForm_FormClosing);
-
- _Event.WindowStyleSet_SendMessage_Event += new _Event.WindowStyleSet_SendMessage_Handler(_Event_WindowStyleSet_SendMessage_Event);
-
-
-
- UI_Style_Initialize();
-
-
-
- this.editBox_ProjectPath.Text = _Data.Project_Path;
-
- if (_Data.Project_MapGroupIDTypeNumber == "6")
- {
- this.radioButton_6.Checked = true;
- this.radioButton_4.Checked = false;
- }
- else
- {
- this.radioButton_6.Checked = false;
- this.radioButton_4.Checked = true;
- }
- }
-
-
- public void CreateForm_FormClosing(object sender, FormClosingEventArgs e)
- {
-
- _Event.WindowStyleSet_SendMessage_Event -= new _Event.WindowStyleSet_SendMessage_Handler(_Event_WindowStyleSet_SendMessage_Event);
- }
-
- public void _Event_WindowStyleSet_SendMessage_Event()
- {
- UI_Style_Initialize();
- }
-
- private void UI_Style_Initialize()
- {
- }
-
- private void uiButton_ProjectPath_Click(object sender, EventArgs e)
- {
- FolderBrowserDialog folderBrowserDialog = new FolderBrowserDialog();
- if (folderBrowserDialog.ShowDialog() == DialogResult.OK)
- {
- this.editBox_ProjectPath.Text = folderBrowserDialog.SelectedPath;
- }
- }
-
- private void UiButton_Apply_Click(object sender, EventArgs e)
- {
- _Data.Project_Path = this.editBox_ProjectPath.Text;
-
- if (this.radioButton_6.Checked == true)
- _Data.Project_MapGroupIDTypeNumber = "6";
- else
- _Data.Project_MapGroupIDTypeNumber = "4";
-
-
-
-
- _File.Write_ProgramConfiguration();
- this.Close();
- }
- }
- }
|