parent
df15518a52
commit
c4d7c3c21a
9 changed files with 265 additions and 50 deletions
|
@ -18,6 +18,12 @@ namespace VitaliiGanzha.VsDingExtension
|
|||
|
||||
#region Properties
|
||||
|
||||
public Action OnApplyHandler { get; set; }
|
||||
|
||||
public Action StoreOptionsNotifier { get; set; }
|
||||
|
||||
public Action OnActivateHandler { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets the window an instance of DialogPage that it uses as its user interface.
|
||||
/// </summary>
|
||||
|
@ -46,6 +52,27 @@ namespace VitaliiGanzha.VsDingExtension
|
|||
}
|
||||
}
|
||||
|
||||
protected override void OnApply(DialogPage.PageApplyEventArgs e)
|
||||
{
|
||||
if (this.StoreOptionsNotifier != null)
|
||||
{
|
||||
this.StoreOptionsNotifier();
|
||||
}
|
||||
|
||||
if (this.OnApplyHandler != null)
|
||||
{
|
||||
this.OnApplyHandler();
|
||||
}
|
||||
}
|
||||
|
||||
protected override void OnActivate(CancelEventArgs cancelEventArgs)
|
||||
{
|
||||
if (this.OnActivateHandler != null)
|
||||
{
|
||||
this.OnActivateHandler();
|
||||
}
|
||||
}
|
||||
|
||||
[DesignerSerializationVisibility(DesignerSerializationVisibility.Visible)]
|
||||
public bool OverrideOnBuildSound { get; set; }
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue