示例#1
0
    public void SetMainActivity(MainActivity activity)
    {
        var lastActivity = currentMainActivity;

        currentMainActivity = activity;
        if (!currentMainActivity.Equals(lastActivity))
        {
            if (lastActivity == MainActivity.Work)
            {
                workProgress = 0;
            }
            activityChangedEvent.Publish(currentMainActivity);
        }
    }