public static void promptLastValueProperrtySet()
{
try
{
object nullObject = null;
if (AAState.lastValueProperties == null)
{
MessageBox.Show(A4LGSharedFunctions.Localizer.GetString("AttributeAssistantEditorMess_2a"));
return;
}
object lstNames;
object lstValues;
AAState.lastValueProperties.GetAllProperties(out lstNames, out lstValues);
LastValueEntry lstVal;
for (int i = 0; i < AAState.lastValueProperties.Count; i++)
{
string strVal = ((object[])lstNames)[i].ToString();
lstVal = AAState.lastValueProperties.GetProperty(strVal) as LastValueEntry;
if (lstVal != null)
{
if (lstVal.Value == null || lstVal.Value == DBNull.Value)
{
nullObject = "<null>";
}
else
{
nullObject = lstVal.Value.ToString();
}
string strRet = Microsoft.VisualBasic.Interaction.InputBox(A4LGSharedFunctions.Localizer.GetString("AttributeAssistantEditorMess_2b") + strVal + "\r\n" + A4LGSharedFunctions.Localizer.GetString("AttributeAssistantEditorMess_2c") + nullObject.ToString() + "\r\n" + A4LGSharedFunctions.Localizer.GetString("AttributeAssistantEditorMess_2d"), A4LGSharedFunctions.Localizer.GetString("AttributeAssistantEditorMess_2b") + strVal, nullObject.ToString());
if (strRet != "")
{
if (strRet.ToString().ToUpper() == "<null>".ToUpper())
{
lstVal.Value = null;
AAState.lastValueProperties.SetProperty(strVal, lstVal);
}
else
{
lstVal.Value = strRet;
AAState.lastValueProperties.SetProperty(strVal, lstVal);
}
}
}
}
}
catch (Exception ex)
{
MessageBox.Show(A4LGSharedFunctions.Localizer.GetString("AttributeAssistantEditorChain2") + ex.Message);
}
}