Added new components are unlocked - preparation, tests.

This commit is contained in:
Milan Hanajik 2015-08-13 08:36:28 +02:00
parent faeb940134
commit 289e06ce65
3 changed files with 8 additions and 1 deletions

View File

@ -66,6 +66,11 @@ namespace TBF
ComponentCfgCtrl.Unlock();
}
public void UnlockEx()
{
sharedButtons.unlockBtn_Click(null, null);
}
public CfgUpdateFlags VerifyCfg(ref string message)
{
if (ComponentCfgCtrl == null) return CfgUpdateFlags.None; /// Nothing to verify -> OK

View File

@ -1,5 +1,6 @@
///
/// Copyright (c) 2013-2015 Sensus Metering Systems
/// Author: Milan Hanajík
///
using System;
using System.Collections.Generic;
@ -253,6 +254,7 @@ namespace TBF
ComponentParametersDlg cfgForm = new ComponentParametersDlg();
cfgForm.TbfComponents = cmpntEntities;
cfgForm.ComponentCfgCtrl = cfgControl;
//cfgForm.UnlockEx(); /// Works somehow but UI has to be refreshed (???)
dr = cfgForm.ShowDialog();
if (dr != DialogResult.OK) return;

View File

@ -224,7 +224,7 @@ namespace TBF.UiControls
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void unlockBtn_Click(object sender, EventArgs e)
public void unlockBtn_Click(object sender, EventArgs e)
{
if (lockState == LockState.Locked)
{