..
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user