Added new components are unlocked - preparation, tests.
This commit is contained in:
parent
faeb940134
commit
289e06ce65
@ -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
|
||||
|
||||
@ -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;
|
||||
|
||||
|
||||
@ -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)
|
||||
{
|
||||
|
||||
Loading…
Reference in New Issue
Block a user