void OnActivated(StartEventArgs args) { if (Activated != null) Activated (this, args); }
void OnStartPageActivated(object o, StartEventArgs args) { switch (args.Type) { case StartEventType.Create: OnNewActivated (null, null); break; case StartEventType.Open: if (args.Detail == null) OnOpenActivated (null, null); else OpenProfile (args.Detail); break; case StartEventType.Repeat: StartProfile (args.Config); break; default: throw new NotSupportedException (); } }