コード例 #1
0
 public void Init(C2iExpression[] formules, CObjetPourSousProprietes objetAnalyse, IFournisseurProprietesDynamiques fournisseurProps)
 {
     this.SuspendDrawing();
     if (fournisseurProps == null)
     {
         fournisseurProps = new CFournisseurGeneriqueProprietesDynamiques();
     }
     m_fournisseurProps = fournisseurProps;
     m_objetAnalyse     = objetAnalyse;
     foreach (Control ctrl in new ArrayList(m_panelFormules.Controls))
     {
         CTextBoxZoomFormule textBox = ctrl as CTextBoxZoomFormule;
         if (textBox != null)
         {
             textBox.Visible = false;
             m_panelFormules.Controls.Remove(textBox);
             textBox.Dispose();
         }
     }
     m_textBoxSel = null;
     foreach (C2iExpression formule in formules)
     {
         CTextBoxZoomFormule textBox = CreateTextBoxFormule();
         textBox.Formule = formule;
     }
     this.ResumeDrawing();
 }
コード例 #2
0
 private void m_lnkSupprimer_LinkClicked(object sender, EventArgs e)
 {
     if (m_textBoxSel != null)
     {
         m_panelFormules.Controls.Remove(m_textBoxSel);
         m_textBoxSel.Visible = false;
         m_textBoxSel.Dispose();
     }
     m_textBoxSel = null;
 }
コード例 #3
0
 void textBox_Enter(object sender, EventArgs e)
 {
     if (m_textBoxSel != null)
     {
         m_textBoxSel.BackColor = Color.White;
     }
     m_textBoxSel = sender as CTextBoxZoomFormule;
     if (m_textBoxSel != null)
     {
         m_textBoxSel.BackColor = Color.LightGreen;
     }
 }
コード例 #4
0
        private CTextBoxZoomFormule CreateTextBoxFormule()
        {
            CTextBoxZoomFormule textBox = new CTextBoxZoomFormule();

            m_panelFormules.Controls.Add(textBox);
            textBox.Dock   = DockStyle.Top;
            textBox.Height = 44;
            textBox.BringToFront();
            textBox.Init(m_fournisseurProps, m_objetAnalyse);
            textBox.Enter += new EventHandler(textBox_Enter);
            return(textBox);
        }
コード例 #5
0
        public C2iExpression[] GetFormules()
        {
            List <C2iExpression> lstFormules = new List <C2iExpression>();

            foreach (Control ctrl in m_panelFormules.Controls)
            {
                CTextBoxZoomFormule textBox = ctrl as CTextBoxZoomFormule;
                if (textBox != null)
                {
                    if (textBox.Formule != null)
                    {
                        lstFormules.Add(textBox.Formule);
                    }
                }
            }
            return(lstFormules.ToArray());
        }
コード例 #6
0
 /// <summary>
 /// Méthode requise pour la prise en charge du concepteur - ne modifiez pas
 /// le contenu de cette méthode avec l'éditeur de code.
 /// </summary>
 private void InitializeComponent()
 {
     this.m_txtFormule = new sc2i.win32.expression.CTextBoxZoomFormule();
     this.m_txtLibelle = new sc2i.win32.common.C2iTextBox();
     this.m_gestionnaireModeEdition = new sc2i.win32.common.CExtModeEdition();
     this.SuspendLayout();
     //
     // m_txtFormule
     //
     this.m_txtFormule.AllowGraphic     = true;
     this.m_txtFormule.AllowNullFormula = false;
     this.m_txtFormule.AllowSaisieTexte = true;
     this.m_txtFormule.Dock             = System.Windows.Forms.DockStyle.Fill;
     this.m_txtFormule.Formule          = null;
     this.m_txtFormule.Location         = new System.Drawing.Point(160, 0);
     this.m_txtFormule.LockEdition      = false;
     this.m_txtFormule.LockZoneTexte    = false;
     this.m_gestionnaireModeEdition.SetModeEdition(this.m_txtFormule, sc2i.win32.common.TypeModeEdition.EnableSurEdition);
     this.m_txtFormule.Name     = "m_txtFormule";
     this.m_txtFormule.Size     = new System.Drawing.Size(280, 42);
     this.m_txtFormule.TabIndex = 2;
     this.m_txtFormule.Enter   += new System.EventHandler(this.m_txtFormule_Enter);
     //
     // m_txtLibelle
     //
     this.m_txtLibelle.Dock        = System.Windows.Forms.DockStyle.Left;
     this.m_txtLibelle.EmptyText   = "";
     this.m_txtLibelle.Location    = new System.Drawing.Point(0, 0);
     this.m_txtLibelle.LockEdition = false;
     this.m_gestionnaireModeEdition.SetModeEdition(this.m_txtLibelle, sc2i.win32.common.TypeModeEdition.EnableSurEdition);
     this.m_txtLibelle.Name     = "m_txtLibelle";
     this.m_txtLibelle.Size     = new System.Drawing.Size(160, 20);
     this.m_txtLibelle.TabIndex = 1;
     //
     // CControleEditeFormuleNommee
     //
     this.Controls.Add(this.m_txtFormule);
     this.Controls.Add(this.m_txtLibelle);
     this.m_gestionnaireModeEdition.SetModeEdition(this, sc2i.win32.common.TypeModeEdition.Autonome);
     this.Name = "CControleEditeFormuleNommee";
     this.Size = new System.Drawing.Size(440, 42);
     this.ResumeLayout(false);
     this.PerformLayout();
 }
コード例 #7
0
 /// <summary>
 /// Méthode requise pour la prise en charge du concepteur - ne modifiez pas
 /// le contenu de cette méthode avec l'éditeur de code.
 /// </summary>
 private void InitializeComponent()
 {
     this.label2                 = new System.Windows.Forms.Label();
     this.m_txtNomVariable       = new System.Windows.Forms.TextBox();
     this.label3                 = new System.Windows.Forms.Label();
     this.m_cmbType              = new sc2i.win32.common.C2iComboBox();
     this.c2iPanelOmbre3         = new sc2i.win32.common.C2iPanelOmbre();
     this.m_txtValeurDefaut      = new sc2i.win32.expression.CTextBoxZoomFormule();
     this.label8                 = new System.Windows.Forms.Label();
     this.c2iPanelOmbre1         = new sc2i.win32.common.C2iPanelOmbre();
     this.m_panelUnite           = new System.Windows.Forms.Panel();
     this.m_txtFormatUnite       = new sc2i.win32.common.C2iTextBox();
     this.label15                = new System.Windows.Forms.Label();
     this.m_cmbSelectClasseUnite = new sc2i.win32.common.CComboboxAutoFilled();
     this.label14                = new System.Windows.Forms.Label();
     this.m_btnAnnuler           = new System.Windows.Forms.Button();
     this.m_btnOk                = new System.Windows.Forms.Button();
     this.cExtStyle1             = new sc2i.win32.common.CExtStyle();
     this.c2iPanelOmbre3.SuspendLayout();
     this.c2iPanelOmbre1.SuspendLayout();
     this.m_panelUnite.SuspendLayout();
     this.SuspendLayout();
     //
     // label2
     //
     this.label2.Location = new System.Drawing.Point(8, 7);
     this.label2.Name     = "label2";
     this.label2.Size     = new System.Drawing.Size(132, 20);
     this.cExtStyle1.SetStyleBackColor(this.label2, sc2i.win32.common.CExtStyle.EnumCouleurs.None);
     this.cExtStyle1.SetStyleForeColor(this.label2, sc2i.win32.common.CExtStyle.EnumCouleurs.None);
     this.label2.TabIndex = 1;
     this.label2.Text     = "Name|20025";
     //
     // m_txtNomVariable
     //
     this.m_txtNomVariable.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                                                                          | System.Windows.Forms.AnchorStyles.Right)));
     this.m_txtNomVariable.Location = new System.Drawing.Point(112, 7);
     this.m_txtNomVariable.Name     = "m_txtNomVariable";
     this.m_txtNomVariable.Size     = new System.Drawing.Size(392, 20);
     this.cExtStyle1.SetStyleBackColor(this.m_txtNomVariable, sc2i.win32.common.CExtStyle.EnumCouleurs.None);
     this.cExtStyle1.SetStyleForeColor(this.m_txtNomVariable, sc2i.win32.common.CExtStyle.EnumCouleurs.None);
     this.m_txtNomVariable.TabIndex = 0;
     //
     // label3
     //
     this.label3.Location = new System.Drawing.Point(8, 29);
     this.label3.Name     = "label3";
     this.label3.Size     = new System.Drawing.Size(117, 21);
     this.cExtStyle1.SetStyleBackColor(this.label3, sc2i.win32.common.CExtStyle.EnumCouleurs.None);
     this.cExtStyle1.SetStyleForeColor(this.label3, sc2i.win32.common.CExtStyle.EnumCouleurs.None);
     this.label3.TabIndex = 3;
     this.label3.Text     = "Data type|20026";
     //
     // m_cmbType
     //
     this.m_cmbType.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.m_cmbType.Font          = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.m_cmbType.IsLink        = false;
     this.m_cmbType.Location      = new System.Drawing.Point(112, 29);
     this.m_cmbType.LockEdition   = false;
     this.m_cmbType.Name          = "m_cmbType";
     this.m_cmbType.Size          = new System.Drawing.Size(392, 21);
     this.cExtStyle1.SetStyleBackColor(this.m_cmbType, sc2i.win32.common.CExtStyle.EnumCouleurs.None);
     this.cExtStyle1.SetStyleForeColor(this.m_cmbType, sc2i.win32.common.CExtStyle.EnumCouleurs.None);
     this.m_cmbType.TabIndex              = 1;
     this.m_cmbType.SelectedValueChanged += new System.EventHandler(this.m_cmbType_SelectedValueChanged);
     //
     // c2iPanelOmbre3
     //
     this.c2iPanelOmbre3.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(189)))), ((int)(((byte)(189)))), ((int)(((byte)(255)))));
     this.c2iPanelOmbre3.Controls.Add(this.m_txtValeurDefaut);
     this.c2iPanelOmbre3.Controls.Add(this.label8);
     this.c2iPanelOmbre3.Location    = new System.Drawing.Point(11, 121);
     this.c2iPanelOmbre3.LockEdition = false;
     this.c2iPanelOmbre3.Name        = "c2iPanelOmbre3";
     this.c2iPanelOmbre3.Size        = new System.Drawing.Size(528, 104);
     this.cExtStyle1.SetStyleBackColor(this.c2iPanelOmbre3, sc2i.win32.common.CExtStyle.EnumCouleurs.ColorFondPanel);
     this.cExtStyle1.SetStyleForeColor(this.c2iPanelOmbre3, sc2i.win32.common.CExtStyle.EnumCouleurs.None);
     this.c2iPanelOmbre3.TabIndex = 3;
     //
     // m_txtValeurDefaut
     //
     this.m_txtValeurDefaut.AllowGraphic     = true;
     this.m_txtValeurDefaut.AllowNullFormula = false;
     this.m_txtValeurDefaut.AllowSaisieTexte = true;
     this.m_txtValeurDefaut.Formule          = null;
     this.m_txtValeurDefaut.Location         = new System.Drawing.Point(11, 28);
     this.m_txtValeurDefaut.LockEdition      = false;
     this.m_txtValeurDefaut.LockZoneTexte    = false;
     this.m_txtValeurDefaut.Name             = "m_txtValeurDefaut";
     this.m_txtValeurDefaut.Size             = new System.Drawing.Size(493, 51);
     this.cExtStyle1.SetStyleBackColor(this.m_txtValeurDefaut, sc2i.win32.common.CExtStyle.EnumCouleurs.None);
     this.cExtStyle1.SetStyleForeColor(this.m_txtValeurDefaut, sc2i.win32.common.CExtStyle.EnumCouleurs.None);
     this.m_txtValeurDefaut.TabIndex = 4;
     //
     // label8
     //
     this.label8.Location = new System.Drawing.Point(8, 8);
     this.label8.Name     = "label8";
     this.label8.Size     = new System.Drawing.Size(167, 16);
     this.cExtStyle1.SetStyleBackColor(this.label8, sc2i.win32.common.CExtStyle.EnumCouleurs.None);
     this.cExtStyle1.SetStyleForeColor(this.label8, sc2i.win32.common.CExtStyle.EnumCouleurs.None);
     this.label8.TabIndex = 3;
     this.label8.Text     = "Default value|20030";
     //
     // c2iPanelOmbre1
     //
     this.c2iPanelOmbre1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(189)))), ((int)(((byte)(189)))), ((int)(((byte)(255)))));
     this.c2iPanelOmbre1.Controls.Add(this.m_panelUnite);
     this.c2iPanelOmbre1.Controls.Add(this.m_txtNomVariable);
     this.c2iPanelOmbre1.Controls.Add(this.m_cmbType);
     this.c2iPanelOmbre1.Controls.Add(this.label2);
     this.c2iPanelOmbre1.Controls.Add(this.label3);
     this.c2iPanelOmbre1.Location    = new System.Drawing.Point(11, 12);
     this.c2iPanelOmbre1.LockEdition = false;
     this.c2iPanelOmbre1.Name        = "c2iPanelOmbre1";
     this.c2iPanelOmbre1.Size        = new System.Drawing.Size(528, 112);
     this.cExtStyle1.SetStyleBackColor(this.c2iPanelOmbre1, sc2i.win32.common.CExtStyle.EnumCouleurs.ColorFondPanel);
     this.cExtStyle1.SetStyleForeColor(this.c2iPanelOmbre1, sc2i.win32.common.CExtStyle.EnumCouleurs.None);
     this.c2iPanelOmbre1.TabIndex = 0;
     //
     // m_panelUnite
     //
     this.m_panelUnite.Controls.Add(this.m_txtFormatUnite);
     this.m_panelUnite.Controls.Add(this.label15);
     this.m_panelUnite.Controls.Add(this.m_cmbSelectClasseUnite);
     this.m_panelUnite.Controls.Add(this.label14);
     this.m_panelUnite.Location = new System.Drawing.Point(20, 53);
     this.m_panelUnite.Name     = "m_panelUnite";
     this.m_panelUnite.Size     = new System.Drawing.Size(407, 21);
     this.cExtStyle1.SetStyleBackColor(this.m_panelUnite, sc2i.win32.common.CExtStyle.EnumCouleurs.None);
     this.cExtStyle1.SetStyleForeColor(this.m_panelUnite, sc2i.win32.common.CExtStyle.EnumCouleurs.None);
     this.m_panelUnite.TabIndex = 19;
     //
     // m_txtFormatUnite
     //
     this.m_txtFormatUnite.EmptyText   = "";
     this.m_txtFormatUnite.Location    = new System.Drawing.Point(312, 0);
     this.m_txtFormatUnite.LockEdition = false;
     this.m_txtFormatUnite.Name        = "m_txtFormatUnite";
     this.m_txtFormatUnite.Size        = new System.Drawing.Size(92, 20);
     this.cExtStyle1.SetStyleBackColor(this.m_txtFormatUnite, sc2i.win32.common.CExtStyle.EnumCouleurs.None);
     this.cExtStyle1.SetStyleForeColor(this.m_txtFormatUnite, sc2i.win32.common.CExtStyle.EnumCouleurs.None);
     this.m_txtFormatUnite.TabIndex = 22;
     this.m_txtFormatUnite.Text     = "[FormatAffichageUnite]";
     //
     // label15
     //
     this.label15.Location = new System.Drawing.Point(216, 2);
     this.label15.Name     = "label15";
     this.label15.Size     = new System.Drawing.Size(89, 19);
     this.cExtStyle1.SetStyleBackColor(this.label15, sc2i.win32.common.CExtStyle.EnumCouleurs.None);
     this.cExtStyle1.SetStyleForeColor(this.label15, sc2i.win32.common.CExtStyle.EnumCouleurs.None);
     this.label15.TabIndex = 21;
     this.label15.Text     = "Display format|20029";
     //
     // m_cmbSelectClasseUnite
     //
     this.m_cmbSelectClasseUnite.DropDownStyle     = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.m_cmbSelectClasseUnite.Font              = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.m_cmbSelectClasseUnite.FormattingEnabled = true;
     this.m_cmbSelectClasseUnite.IsLink            = false;
     this.m_cmbSelectClasseUnite.ListDonnees       = null;
     this.m_cmbSelectClasseUnite.Location          = new System.Drawing.Point(93, 0);
     this.m_cmbSelectClasseUnite.LockEdition       = false;
     this.m_cmbSelectClasseUnite.Name              = "m_cmbSelectClasseUnite";
     this.m_cmbSelectClasseUnite.NullAutorise      = true;
     this.m_cmbSelectClasseUnite.ProprieteAffichee = null;
     this.m_cmbSelectClasseUnite.Size              = new System.Drawing.Size(121, 21);
     this.cExtStyle1.SetStyleBackColor(this.m_cmbSelectClasseUnite, sc2i.win32.common.CExtStyle.EnumCouleurs.None);
     this.cExtStyle1.SetStyleForeColor(this.m_cmbSelectClasseUnite, sc2i.win32.common.CExtStyle.EnumCouleurs.None);
     this.m_cmbSelectClasseUnite.TabIndex = 20;
     this.m_cmbSelectClasseUnite.TextNull = "(empty)";
     this.m_cmbSelectClasseUnite.Tri      = true;
     //
     // label14
     //
     this.label14.Location = new System.Drawing.Point(3, 2);
     this.label14.Name     = "label14";
     this.label14.Size     = new System.Drawing.Size(89, 19);
     this.cExtStyle1.SetStyleBackColor(this.label14, sc2i.win32.common.CExtStyle.EnumCouleurs.None);
     this.cExtStyle1.SetStyleForeColor(this.label14, sc2i.win32.common.CExtStyle.EnumCouleurs.None);
     this.label14.TabIndex = 19;
     this.label14.Text     = "Unit type|20028";
     //
     // m_btnAnnuler
     //
     this.m_btnAnnuler.Anchor       = System.Windows.Forms.AnchorStyles.Bottom;
     this.m_btnAnnuler.BackColor    = System.Drawing.SystemColors.Control;
     this.m_btnAnnuler.DialogResult = System.Windows.Forms.DialogResult.Cancel;
     this.m_btnAnnuler.Location     = new System.Drawing.Point(293, 224);
     this.m_btnAnnuler.Name         = "m_btnAnnuler";
     this.m_btnAnnuler.Size         = new System.Drawing.Size(80, 24);
     this.cExtStyle1.SetStyleBackColor(this.m_btnAnnuler, sc2i.win32.common.CExtStyle.EnumCouleurs.None);
     this.cExtStyle1.SetStyleForeColor(this.m_btnAnnuler, sc2i.win32.common.CExtStyle.EnumCouleurs.None);
     this.m_btnAnnuler.TabIndex = 5;
     this.m_btnAnnuler.Text     = "Cancel|11";
     this.m_btnAnnuler.UseVisualStyleBackColor = false;
     this.m_btnAnnuler.Click += new System.EventHandler(this.m_btnAnnuler_Click);
     //
     // m_btnOk
     //
     this.m_btnOk.Anchor    = System.Windows.Forms.AnchorStyles.Bottom;
     this.m_btnOk.BackColor = System.Drawing.SystemColors.Control;
     this.m_btnOk.Location  = new System.Drawing.Point(149, 224);
     this.m_btnOk.Name      = "m_btnOk";
     this.m_btnOk.Size      = new System.Drawing.Size(80, 24);
     this.cExtStyle1.SetStyleBackColor(this.m_btnOk, sc2i.win32.common.CExtStyle.EnumCouleurs.None);
     this.cExtStyle1.SetStyleForeColor(this.m_btnOk, sc2i.win32.common.CExtStyle.EnumCouleurs.None);
     this.m_btnOk.TabIndex = 4;
     this.m_btnOk.Text     = "Ok|10";
     this.m_btnOk.UseVisualStyleBackColor = false;
     this.m_btnOk.Click += new System.EventHandler(this.m_btnOk_Click);
     //
     // CFormEditVariableDynamiqueSaisie
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.CancelButton      = this.m_btnAnnuler;
     this.ClientSize        = new System.Drawing.Size(545, 260);
     this.Controls.Add(this.c2iPanelOmbre3);
     this.Controls.Add(this.c2iPanelOmbre1);
     this.Controls.Add(this.m_btnOk);
     this.Controls.Add(this.m_btnAnnuler);
     this.ForeColor     = System.Drawing.Color.Black;
     this.MaximizeBox   = false;
     this.MinimizeBox   = false;
     this.Name          = "CFormEditVariableDynamiqueSaisie";
     this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
     this.cExtStyle1.SetStyleBackColor(this, sc2i.win32.common.CExtStyle.EnumCouleurs.ColorFondFenetre);
     this.cExtStyle1.SetStyleForeColor(this, sc2i.win32.common.CExtStyle.EnumCouleurs.ColorTexteFenetre);
     this.Text  = "Variable|20024";
     this.Load += new System.EventHandler(this.CFormEditVariableDynamiqueSaisie_Load);
     this.c2iPanelOmbre3.ResumeLayout(false);
     this.c2iPanelOmbre3.PerformLayout();
     this.c2iPanelOmbre1.ResumeLayout(false);
     this.c2iPanelOmbre1.PerformLayout();
     this.m_panelUnite.ResumeLayout(false);
     this.m_panelUnite.PerformLayout();
     this.ResumeLayout(false);
 }
コード例 #8
0
 /// <summary>
 /// Méthode requise pour la prise en charge du concepteur - ne modifiez pas
 /// le contenu de cette méthode avec l'éditeur de code.
 /// </summary>
 private void InitializeComponent()
 {
     this.components           = new System.ComponentModel.Container();
     this.m_colorSelect        = new sc2i.win32.common.C2iColorSelect();
     this.m_extModeEdition     = new sc2i.win32.common.CExtModeEdition();
     this.m_txtFormuleCouleur  = new sc2i.win32.expression.CTextBoxZoomFormule();
     this.m_toolTipTraductible = new sc2i.win32.common.CToolTipTraductible(this.components);
     this.label1 = new System.Windows.Forms.Label();
     this.SuspendLayout();
     //
     // m_colorSelect
     //
     this.m_colorSelect.BackColor   = System.Drawing.Color.White;
     this.m_colorSelect.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
     this.m_colorSelect.Cursor      = System.Windows.Forms.Cursors.Hand;
     this.m_colorSelect.Dock        = System.Windows.Forms.DockStyle.Left;
     this.m_colorSelect.Location    = new System.Drawing.Point(0, 0);
     this.m_colorSelect.LockEdition = false;
     this.m_extModeEdition.SetModeEdition(this.m_colorSelect, sc2i.win32.common.TypeModeEdition.EnableSurEdition);
     this.m_colorSelect.Name                   = "m_colorSelect";
     this.m_colorSelect.SelectedColor          = System.Drawing.Color.White;
     this.m_colorSelect.Size                   = new System.Drawing.Size(22, 22);
     this.m_colorSelect.TabIndex               = 0;
     this.m_colorSelect.OnChangeSelectedColor += new System.EventHandler(this.m_colorSelect_OnChangeSelectedColor);
     //
     // m_txtFormuleCouleur
     //
     this.m_txtFormuleCouleur.Dock          = System.Windows.Forms.DockStyle.Fill;
     this.m_txtFormuleCouleur.Formule       = null;
     this.m_txtFormuleCouleur.Location      = new System.Drawing.Point(54, 0);
     this.m_txtFormuleCouleur.LockEdition   = false;
     this.m_txtFormuleCouleur.LockZoneTexte = false;
     this.m_extModeEdition.SetModeEdition(this.m_txtFormuleCouleur, sc2i.win32.common.TypeModeEdition.EnableSurEdition);
     this.m_txtFormuleCouleur.Name     = "m_txtFormuleCouleur";
     this.m_txtFormuleCouleur.Size     = new System.Drawing.Size(188, 22);
     this.m_txtFormuleCouleur.TabIndex = 1;
     this.m_toolTipTraductible.SetToolTip(this.m_txtFormuleCouleur, "Color formula|10000");
     this.m_txtFormuleCouleur.OnChangeTexteFormule += new System.EventHandler(this.m_txtFormuleCouleur_OnChangeTexteFormule);
     //
     // label1
     //
     this.label1.Dock     = System.Windows.Forms.DockStyle.Left;
     this.label1.Font     = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Italic, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.label1.Location = new System.Drawing.Point(22, 0);
     this.m_extModeEdition.SetModeEdition(this.label1, sc2i.win32.common.TypeModeEdition.Autonome);
     this.label1.Name      = "label1";
     this.label1.Size      = new System.Drawing.Size(32, 22);
     this.label1.TabIndex  = 2;
     this.label1.Text      = "f(x) =";
     this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
     //
     // CControlSelectColorByFormule
     //
     this.Controls.Add(this.m_txtFormuleCouleur);
     this.Controls.Add(this.label1);
     this.Controls.Add(this.m_colorSelect);
     this.m_extModeEdition.SetModeEdition(this, sc2i.win32.common.TypeModeEdition.Autonome);
     this.Name = "CControlSelectColorByFormule";
     this.Size = new System.Drawing.Size(242, 22);
     this.ResumeLayout(false);
 }
コード例 #9
0
        private void m_lnkAjouter_LinkClicked(object sender, EventArgs e)
        {
            CTextBoxZoomFormule newTextBox = CreateTextBoxFormule();

            newTextBox.Focus();
        }