Message 1 of 2
Item.Id "Synchronize and modify settings"
Not applicable
07-06-2016
12:35 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello everyone !!
I have a little problem.
Y want to add an event listener witch will react when you click on "Synchronize and modify settings". But I don't know how to do it. I have tried to add it to an existing ComponentManager_UIElementActivated(), but the second part is not working !
Don't know if it's not the right item.id or if it's the all thing witch is not possible.
Here is my code :
void ComponentManager_UIElementActivated(
object sender,
adWin.UIElementActivatedEventArgs e)
{
if (e != null
&& e.Item != null
&& e.Item.Id != null
&& e.Item.Id == "ID_TBC_BUTTON")
{
// Perform the button action
ClassLibrary3.Form2 form = new ClassLibrary3.Form2();
if (form.ShowDialog() == DialogResult.OK)
{
resultat = form.resultat;
workerObject.Str(resultat);
System.Windows.Forms.MessageBox.Show(resultat);
}
}
else if (e != null
&& e.Item != null
&& e.Item.Id != null
&& e.Item.Id == "HID_FILE_SAVE_TO_MASTER")
{
// Perform the button action
ClassLibrary3.Form2 form = new ClassLibrary3.Form2();
if (form.ShowDialog() == DialogResult.OK)
{
resultat = form.resultat;
workerObject.Str(resultat);
System.Windows.Forms.MessageBox.Show(resultat);
}
}
}