aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.Common/Web/LatestVersionRequest.cs
blob: 59bb71db4c5e6c75b8bdf25d3db99d90bc8ac5c3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.Text;
using System.Threading.Tasks;
using Tango.Transport.Web;

namespace Tango.MachineStudio.Common.Web
{
    public class LatestVersionRequest : WebRequestMessage
    {
        
    }
}
pan class="p">; using Tango.Scripting.Editors.Utils; namespace Tango.Scripting.Editors.Editing { /// <summary> /// <see cref="IReadOnlySectionProvider"/> that has no read-only sections; all text is editable. /// </summary> sealed class NoReadOnlySections : IReadOnlySectionProvider { public static readonly NoReadOnlySections Instance = new NoReadOnlySections(); public bool CanInsert(int offset) { return true; } public IEnumerable<ISegment> GetDeletableSegments(ISegment segment) { if (segment == null) throw new ArgumentNullException("segment"); // the segment is always deletable return ExtensionMethods.Sequence(segment); } } /// <summary> /// <see cref="IReadOnlySectionProvider"/> that completely disables editing. /// </summary> sealed class ReadOnlyDocument : IReadOnlySectionProvider { public static readonly ReadOnlyDocument Instance = new ReadOnlyDocument(); public bool CanInsert(int offset) { return false; } public IEnumerable<ISegment> GetDeletableSegments(ISegment segment) { return Enumerable.Empty<ISegment>(); } } }