コード例 #1
0
        public string FormatTaskbarToolTip(string s, ActionTabState statusModel)
        {
            var baseText = s + " v" + Consts.ProductVersion;

            return(statusModel == null
                ? baseText
                : baseText + "\n" + (statusModel.ChildAction.Details ?? statusModel.Text));
        }
コード例 #2
0
        static TaskbarItemProgressState ToProgressState(ActionTabState b)
        {
            if (b == null)
            {
                return(TaskbarItemProgressState.None);
            }
            switch (b.Type)
            {
            case ActionType.Fail:
                return(TaskbarItemProgressState.Error);

            default:
                return(b.Progress == null ? TaskbarItemProgressState.Indeterminate : TaskbarItemProgressState.Normal);
            }
        }
コード例 #3
0
ファイル: StateHandler.cs プロジェクト: dkv01/withSIX.Desktop
 private ActionTabStateUpdate GetActionStateUpdate(ActionTabState sm) => new ActionTabStateUpdate
 {
     Progress    = sm.Progress,
     ChildAction = sm.ChildAction
 };
コード例 #4
0
 private Task SetState(ActionTabState x) =>
 Entrypoint.Api.SetState(x.Type == ActionType.Start ? BusyState.On : BusyState.Off,
                         x.ChildAction.Details ?? x.Text, x.Progress);
コード例 #5
0
 public string FormatTaskbarToolTip(string s, ActionTabState statusModel) {
     var baseText = s + " v" + Consts.ProductVersion;
     return statusModel == null
         ? baseText
         : baseText + "\n" + (statusModel.ChildAction.Details ?? statusModel.Text);
 }
コード例 #6
0
 private ActionTabStateUpdate GetActionStateUpdate(ActionTabState sm) => new ActionTabStateUpdate {
     Progress = sm.Progress,
     ChildAction = sm.ChildAction
 };