Beispiel #1
0
        private Task OnSMStartingEventAsync(object sender, SMEventArgs eventArgs)
        {
            SMA.Core.SM.UI.ElementWdw.OnAvailableInternal += ElementWdw_OnAvailable;

            SMAUI.Initialize();

            return(Task.CompletedTask);
        }
Beispiel #2
0
        public async Task OnSMStarted()
        {
            try
            {
                await SaveConfig(false).ConfigureAwait(false);

                SMAUI.Initialize();

                if (OnSMStartedEvent != null)
                {
                    await OnSMStartedEvent.InvokeAsync(
                        this,
                        new SMProcessArgs(_sm, SMProcess.Native)).ConfigureAwait(false);
                }
            }
            catch (Exception ex)
            {
                LogTo.Error(ex, "Exception while notifying started");

                throw;
            }
        }