|
@@ -170,16 +170,6 @@ public class Runnable : View, IRunnable
|
|
|
/// <inheritdoc/>
|
|
/// <inheritdoc/>
|
|
|
public void RaiseIsModalChangedEvent (bool newIsModal)
|
|
public void RaiseIsModalChangedEvent (bool newIsModal)
|
|
|
{
|
|
{
|
|
|
- // CWP Phase 3: Post-notification (work already done by Application)
|
|
|
|
|
- OnIsModalChanged (newIsModal);
|
|
|
|
|
-
|
|
|
|
|
- EventArgs<bool> args = new (newIsModal);
|
|
|
|
|
- IsModalChanged?.Invoke (this, args);
|
|
|
|
|
-
|
|
|
|
|
- // Layout may need to change when modal state changes
|
|
|
|
|
- SetNeedsLayout ();
|
|
|
|
|
- SetNeedsDraw ();
|
|
|
|
|
-
|
|
|
|
|
if (newIsModal)
|
|
if (newIsModal)
|
|
|
{
|
|
{
|
|
|
// Set focus to self if becoming modal
|
|
// Set focus to self if becoming modal
|
|
@@ -194,6 +184,16 @@ public class Runnable : View, IRunnable
|
|
|
App?.Driver?.UpdateCursor ();
|
|
App?.Driver?.UpdateCursor ();
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+ // CWP Phase 3: Post-notification (work already done by Application)
|
|
|
|
|
+ OnIsModalChanged (newIsModal);
|
|
|
|
|
+
|
|
|
|
|
+ EventArgs<bool> args = new (newIsModal);
|
|
|
|
|
+ IsModalChanged?.Invoke (this, args);
|
|
|
|
|
+
|
|
|
|
|
+ // Layout may need to change when modal state changes
|
|
|
|
|
+ SetNeedsLayout ();
|
|
|
|
|
+ SetNeedsDraw ();
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
/// <inheritdoc/>
|
|
/// <inheritdoc/>
|