private void AddExtensionNode(LiteExtension extension)
        {
            Assembly assembly = extension.GetType().Assembly;
            TreeNode node     = GetAssemblyNode(assembly);

            node.Checked = true;
            node.Expand();
            node.Nodes.Add(string.Format("{0} ({1})", extension.Name, extension.Version));
        }
        public string GetSettingsDirectory(LiteExtension extension)
        {
            string path = Path.Combine(Constants.ExtensionSettingsDirectory, string.Format("{0} by {1}", extension.Name, extension.Author));

            if (!Directory.Exists(path))
            {
                Directory.CreateDirectory(path);
            }

            return(path);
        }
Example #3
0
        public ResourceEditorContent(LiteExtension parent, OpenedFile file)
            : base(parent)
        {
            AssociatedFile = file;
            this.Text      = file.FilePath.FileName + file.FilePath.Extension;

            Control = _editorControl = new ResourceEditorControl(file)
            {
                Dock = System.Windows.Forms.DockStyle.Fill,
            };
        }
Example #4
0
 public LiteDocumentContent(LiteExtension parent)
 {
     this._parent = parent;
 }
Example #5
0
 public ExtensionLoadResult(Type type, LiteExtension extension)
 {
     this.ExtensionType = type;
     this.Extension     = extension;
     this.FilePath      = type.Assembly.Location;
 }