Created
September 6, 2014 15:02
-
-
Save simplement-e/a50852461d02f17861da to your computer and use it in GitHub Desktop.
Un controle pour la home page de votre gestion commerciale
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using CPointSoftware.Equihira.Extensibility.UI; | |
| using System; | |
| using System.Collections.Generic; | |
| using System.ComponentModel.Composition; | |
| using System.Linq; | |
| using System.Text; | |
| using System.Threading.Tasks; | |
| using System.Web.UI.WebControls; | |
| namespace Sample | |
| { | |
| [Export(typeof(IHomePageControl))] | |
| public class SampleHomePageControl : WebControl, IHomePageControl | |
| { | |
| protected override void Render(System.Web.UI.HtmlTextWriter writer) | |
| { | |
| base.Render(writer); | |
| writer.Write("<p>Sample content</p>"); | |
| } | |
| int? IHomePageControl.MaxWidth | |
| { | |
| get { return null; } | |
| } | |
| int? IHomePageControl.MinWidth | |
| { | |
| get { return null; } | |
| } | |
| string IHomePageControl.Categorie | |
| { | |
| get { return "Sample"; } | |
| } | |
| string IHomePageControl.Name | |
| { | |
| get { return "Sample Control"; } | |
| } | |
| string IHomePageControl.Description | |
| { | |
| get { return "Sample control to get you started"; } | |
| } | |
| string IHomePageControl.ImageUrl | |
| { | |
| get { return null; } | |
| } | |
| Extensibility.LicenceKind IHomePageControl.Licences | |
| { | |
| get { return Extensibility.LicenceKind.None; } | |
| } | |
| bool IHomePageControl.DispoMagasin | |
| { | |
| get { return false; } | |
| } | |
| bool IHomePageControl.DispoPartenaires | |
| { | |
| get { return false; } | |
| } | |
| string[] IHomePageControl.Modules | |
| { | |
| get { return null; } | |
| } | |
| string IHomePageControl.InstanciationUrl | |
| { | |
| get { return GetType().AssemblyQualifiedName; } | |
| } | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment