This commit is contained in:
chi
2023-08-11 10:23:58 +09:00
parent c34372e262
commit 940b51b2e8
12 changed files with 1423 additions and 877 deletions

View File

@@ -12,9 +12,21 @@ namespace FCOMMON
{
public partial class fSFI : Form
{
public fSFI()
public fSFI(string sfi_type, float time, float cnt)
{
InitializeComponent();
if (sfi_type == "M")
{
radM.Checked = true;
nudMsavetime.Value = (decimal)time;
}
else
{
radO.Checked = true;
nudOsavetime.Value= (decimal)time;
}
nudMSaveCnt.Value = (decimal)cnt;
}
private void label1_Click(object sender, EventArgs e)
@@ -24,7 +36,7 @@ namespace FCOMMON
private void radioButton1_CheckedChanged(object sender, EventArgs e)
{
panel1.Enabled = radioButton1.Checked;
panel1.Enabled = radO.Checked;
panel2.Enabled = !panel1.Enabled;
}
@@ -70,7 +82,7 @@ namespace FCOMMON
private void button1_Click(object sender, EventArgs e)
{
this.Invalidate();
if (radioButton1.Checked)
if (radO.Checked)
this.Value = (double)numericUpDown3.Value;
else
this.Value = (double)numericUpDown4.Value;