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;
        }
        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,
            };
        }
Exemple #4
0
 public ExtensionLoadResult(Type type, LiteExtension extension)
 {
     this.ExtensionType = type;
     this.Extension     = extension;
     this.FilePath      = type.Assembly.Location;
 }
 public ExtensionLoadResult(Type type, LiteExtension extension)
 {
     this.ExtensionType = type;
     this.Extension = extension;
     this.FilePath = type.Assembly.Location;
 }
 public LiteDocumentContent(LiteExtension parent)
 {
     this._parent = parent;
 }