Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: vérification remplissage gap pour soumission formulaire #55

Merged
merged 1 commit into from
Apr 17, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 16 additions & 10 deletions ScadaAdmin/OpenExtensions/ExtImport/Forms/FrmImportFile.cs
Original file line number Diff line number Diff line change
Expand Up @@ -617,18 +617,24 @@ private void button3_Click(object sender, EventArgs e)
/// <param name="e"></param>
private void button1_Click(object sender, EventArgs e)
{

//Then, we generate a device configuration according to imported rows
bool doNext = ImportDeviceConfiguration();

if (doNext)
if (string.IsNullOrEmpty(textBox4.Text))
{
//save the default byte order in project config
string extImportConfigPath = string.Format("{0}\\Instances\\Default\\ExtImport\\extImportConfig.xml", project.ProjectDir);
SaveExtImportConfig(extImportConfigPath);
MessageBox.Show("Please fill the adress gap input", "Attention", MessageBoxButtons.OK, MessageBoxIcon.Error);
}
else
{
//Then, we generate a device configuration according to imported rows
bool doNext = ImportDeviceConfiguration();

if (doNext)
{
//save the default byte order in project config
string extImportConfigPath = string.Format("{0}\\Instances\\Default\\ExtImport\\extImportConfig.xml", project.ProjectDir);
SaveExtImportConfig(extImportConfigPath);

//Finally, we close the form
DialogResult = DialogResult.OK;
//Finally, we close the form
DialogResult = DialogResult.OK;
}
}
}

Expand Down
Loading