Esempio n. 1
0
        public BoutonBase()
        {
            MdlBase               = App.ModelDoc2;
            TitreModule           = this.GetModuleTitre();
            NomModule             = this.GetModuleNom();
            DescriptionModule     = this.GetModuleDescription();
            AideModule            = this.GetModuleAide();
            TypeDocContexteModule = this.GetModuleTypeDocContexte();

            _Config = new ConfigModule(this);
        }
Esempio n. 2
0
        public OngletParametres(SldWorks sw)
        {
            _Sw = sw;

            InitializeComponent();

            _DicParam      = new DicParam(ListBoxParams);
            _DicPropModele = new DicProp(ListBoxPropMdl);
            _DicPropCfg    = new DicProp(ListBoxPropCfg);

            ToolStripMenuItem ParamMenuItem = new ToolStripMenuItem {
                Text = "Supprimer"
            };

            ParamMenuItem.Click += SupprimerParam;

            ParamContextMenuListBox = new ContextMenuStrip();
            ParamContextMenuListBox.Items.AddRange(new ToolStripItem[] { ParamMenuItem });
            ListBoxParams.MouseDown       += ListBoxParams_MouseDown;
            ListBoxParams.ContextMenuStrip = ParamContextMenuListBox;

            ToolStripMenuItem PropMenuItem = new ToolStripMenuItem {
                Text = "Supprimer"
            };

            PropMenuItem.Click += SupprimerProp;

            PropContextMenuListBox = new ContextMenuStrip();
            PropContextMenuListBox.Items.AddRange(new ToolStripItem[] { PropMenuItem });
            ListBoxPropMdl.MouseDown       += ListBoxProp_MouseDown;
            ListBoxPropMdl.ContextMenuStrip = PropContextMenuListBox;
            ListBoxPropCfg.MouseDown       += ListBoxProp_MouseDown;
            ListBoxPropCfg.ContextMenuStrip = PropContextMenuListBox;

            String       NomModule   = GetType().GetModuleNom();
            String       TitreModule = GetType().GetModuleTitre();
            ConfigModule _Config     = new ConfigModule(NomModule, TitreModule);

            Parametre pListePropExclu = _Config.AjouterParam("ListePropExclu", "Adresse,Client,Description,Designation,Dessinateur,Empreinte,ExcluNomenclature,LierConfigs,MasseModele,Matériau,NoClient,NoCommande,PrefixeEmpreinte,Quantite,TarauderEmpreinte", "Liste des proprietes à exclure");

            HashPropExclu = new HashSet <string>(pListePropExclu.GetValeur <String>().Split(new char[] { ',' }, StringSplitOptions.RemoveEmptyEntries));

            ResizeControl();
        }