aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Tango.FileSystem/Network/FileUploadResponse.cs
blob: c0af1a7979cb880f2f439a55dfe8580ebac2d1c4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Tango.FileSystem.Network
{
    public class FileUploadResponse
    {
        public String OperationId { get; set; }
    }
}
ariable.Instance */ .highlight .vm { color: #336699 } /* Name.Variable.Magic */ .highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Tango.Core;

namespace Tango.MachineStudio.Common.Notifications
{
    /// <summary>
    /// Represents a Machine Studio "work-bar" item.
    /// </summary>
    /// <seealso cref="Tango.Core.ExtendedObject" />
    /// <seealso cref="System.IDisposable" />
    public class TaskItem : ExtendedObject, IDisposable
    {
        private INotificationProvider _notificationProvider;

        /// <summary>
        /// Initializes a new instance of the <see cref="TaskItem"/> class.
        /// </summary>
        /// <param name="notificationProvider">The notification provider.</param>
        public TaskItem(INotificationProvider notificationProvider)
        {
            _notificationProvider = notificationProvider;
        }

        private String _message;
        /// <summary>
        /// Gets or sets the message.
        /// </summary>
        public String Message
        {
            get { return _message; }
            set { _message = value; RaisePropertyChangedAuto(); }
        }

        /// <summary>
        /// Removed this item from the queue.
        /// </summary>
        public void Pop()
        {
            _notificationProvider.PopTaskItem(this);
        }

        /// <summary>
        /// Pushes this item to the queue.
        /// </summary>
        public void Push()
        {
            _notificationProvider.PushTaskItem(this);
        }

        /// <summary>
        /// Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
        /// </summary>
        public void Dispose()
        {
            Pop();
        }
    }
}