コード例 #1
0
ファイル: StateHandler.cs プロジェクト: dkv01/withSIX.Desktop
        private static void HandleChildAction(StatusModel sm, ChildActionState childAction)
        {
            childAction.Details = sm.Info.Text;
            var ac = GetActiveComponent(sm.Info);

            if (ac != null)
            {
                childAction.Progress = ac.Progress;
                childAction.Speed    = ac.Speed;
                childAction.Title    = ac.Title;
            }
            else
            {
                childAction.Title = "Processing";
            }
        }
コード例 #2
0
 private static void HandleChildAction(StatusModel sm, ChildActionState childAction) {
     childAction.Details = sm.Info.Text;
     var ac = GetActiveComponent(sm.Info);
     if (ac != null) {
         childAction.Progress = ac.Progress;
         childAction.Speed = ac.Speed;
         childAction.Title = ac.Title;
     } else
         childAction.Title = "Processing";
 }