aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Tango.CodeGeneration/ProtoMessageFile.cs
blob: 2bcdac8b4b19d0aa67cc2ad24d242df8ad807921 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Tango.CodeGeneration
{
    public class ProtoMessageFile : CodeObject
    {
        public String Name { get; set; }
        public String Package { get; set; }
        public List<String> Imports { get; set; }

        public List<ProtoProperty> Properties { get; set; }

        public ProtoMessageFile()
        {
            Imports = new List<string>();
            Properties = new List<ProtoProperty>();
        }
    }
}
an class="k">get; set; } public abstract CompletionItemPopupControl PopupControl { get; } public bool IsSelected { get { return (bool)GetValue(IsSelectedProperty); } set { SetValue(IsSelectedProperty, value); } } public static readonly DependencyProperty IsSelectedProperty = DependencyProperty.Register("IsSelected", typeof(bool), typeof(CompletionItem), new PropertyMetadata(false)); public virtual void Complete(ScriptEditor editor) { var word = editor.GetCurrentWord(); int index = editor.GetCurrentWordStartIndex(); int max = editor.GetCurrentLine().EndOffset; editor.Document.Replace(index, word.Length,Text); } public abstract BitmapSource Image { get; } protected static BitmapSource GetImage(String name) { return new BitmapImage(new Uri($"pack://application:,,,/Tango.Scripting.Editors;component/Images/{name}", UriKind.Absolute)); } public override string ToString() { return Text; } } }