mirror of
https://github.com/R-YaTian/TinkeDSi.git
synced 2025-06-18 16:45:43 -04:00

Revert #5b6afa1 Update changelog, compile batch and translations [WIP] Basic command line support
74 lines
1.9 KiB
C#
74 lines
1.9 KiB
C#
using System;
|
|
using System.Xml.Linq;
|
|
using System.Windows.Forms;
|
|
|
|
namespace Tinke.Dialog
|
|
{
|
|
public partial class SaveOptions : Form
|
|
{
|
|
public SaveOptions()
|
|
{
|
|
InitializeComponent();
|
|
ReadLanguage();
|
|
}
|
|
private void ReadLanguage()
|
|
{
|
|
try
|
|
{
|
|
XElement xml = Tools.Helper.GetTranslation("Dialog");
|
|
|
|
this.Text = xml.Element("S07").Value;
|
|
btn_OK.Text = xml.Element("S01").Value;
|
|
btn_Cancel.Text = xml.Element("S1C").Value;
|
|
checkBox1.Text = xml.Element("S1E").Value;
|
|
checkBox2.Text = xml.Element("S1F").Value;
|
|
checkBox3.Text = xml.Element("S20").Value;
|
|
checkBox4.Text = xml.Element("S21").Value;
|
|
}
|
|
catch { throw new NotImplementedException("There was an error reading the language file"); }
|
|
}
|
|
|
|
public bool IsKeepSignature
|
|
{
|
|
get { return checkBox1.Checked; }
|
|
}
|
|
|
|
public bool IsSafeTrim
|
|
{
|
|
get { return checkBox2.Checked; }
|
|
}
|
|
|
|
public bool IsReCompress
|
|
{
|
|
get { return checkBox3.Checked; }
|
|
}
|
|
|
|
public bool IsBetterCompress
|
|
{
|
|
get { return checkBox4.Checked; }
|
|
}
|
|
|
|
private void btn_OK_Click(object sender, EventArgs e)
|
|
{
|
|
this.Close();
|
|
}
|
|
|
|
private void btn_Cancel_Click(object sender, EventArgs e)
|
|
{
|
|
this.Close();
|
|
}
|
|
|
|
private void checkBox3_CheckedChanged(object sender, EventArgs e)
|
|
{
|
|
if (checkBox3.Checked)
|
|
{
|
|
checkBox4.Enabled = true;
|
|
} else
|
|
{
|
|
checkBox4.Checked = false;
|
|
checkBox4.Enabled= false;
|
|
}
|
|
}
|
|
}
|
|
}
|