Ejemplo n.º 1
0
        public void cargarmembresias()
        {
            PNFlowMemb.Controls.Clear();

            SqlDataReader Reader = Conn.ObtenerDatosSinParametros("SP_T09_MEMBRESIA_MOSTRAR");

            if (Reader.HasRows)
            {
                while (Reader.Read())
                {
                    Panel Membresia = new Panel()
                    {
                        Width                 = 100,
                        Height                = 100, //334; 170
                        BorderStyle           = BorderStyle.None,
                        BackColor             = Color.Transparent,
                        BackgroundImage       = Rafit.Face.Properties.Resources.Boton_Transparente,
                        BackgroundImageLayout = ImageLayout.Stretch,
                        Font = new Font("Century Gothic", 10F),
                        Name = Reader["F09_MEMB_NOMB"].ToString(),
                    };
                    //No esta Mostrando Tooltip Bien
                    ToolTipName.SetToolTip(Membresia, "Mensaje Loco");

                    Membresia.Click += new EventHandler(Seleccion);
                    PNFlowMemb.Controls.Add(Membresia);
                }
                Reader.Close();
            }
            else
            {
                PNFlowMemb.BackgroundImage = Rafit.Face.Properties.Resources.Imagen_no_Encontrada;
            }
        }
Ejemplo n.º 2
0
 /// <summary>
 ///     Sets the text and Tooltips to localized string, because Visual studio keeps resetting them
 /// </summary>
 private void SetDesigner()
 {
     //Buttons
     CancelButton.Text           = Resources.tl_Cancel;
     ConfirmButton.Text          = Resources.tl_RuleEditor_Confirm;
     ChooseCellButton.Text       = Resources.tl_RuleEditor_CellPicker;
     NewConditionButton.Text     = Resources.tl_RuleEditor_NewCondition;
     NewConditionButton.Location = new Point(13, 13);
     //Labels
     ConditionLabel.Text   = Resources.tl_RuleEditor_Condition;
     RuleNameLabel.Text    = "Name";
     RuleAreaLabel.Text    = Resources.tl_RuleEditor_RuleArea;
     DescriptionLabel.Text = Resources.tl_RuleEditor_RuleDescription;
     //Tooltips
     ToolTipName.SetToolTip(TooltipLabelName, Resources.tl_RuleEditor_ToolTip_Name);
     ToolTipCellArea.SetToolTip(ToolTipLabelCellArea, Resources.tl_RuleEditor_ToolTip_CellArea);
     ToolTipDescription.SetToolTip(ToolTipLabelDescription, Resources.tl_RuleEditor_ToolTip_Description);
     ToolTipCondition.SetToolTip(TooltipLabelCondition, Resources.tl_RuleEditor_ToolTip_Condition);
 }