Beispiel #1
0
 private void tv_formulas_NodeMouseDoubleClick(object sender, TreeNodeMouseClickEventArgs e)
 {
     if (e.Node.Tag != null)
     {
         var info = e.Node.Tag.ToString();
         if (info.Length > 0)
         {
             var infoType = info.Substring(0, 4);
             if (infoType == "@FH=")
             {
                 m_formulaName = "Hide";
                 string formula = info.Substring(4);
                 if (m_editor.showEditFormula(ref formula))
                 {
                     e.Node.Tag = "@FH=" + formula;
                 }
             }
             else if (infoType == "@FV=")
             {
                 m_formulaName = "Value";
                 string formula = info.Substring(4);
                 if (m_editor.showEditFormula(ref formula))
                 {
                     e.Node.Tag = "@FV=" + formula;
                 }
             }
         }
     }
 }
Beispiel #2
0
 private void cmd_formulaHide_Click(object sender, EventArgs e)
 {
     m_formulaName = "Ocultar";
     if (m_editor.showEditFormula(ref m_formulaHide))
     {
         m_formulaHideChanged = true;
         lb_formulaHide.Text  = m_formulaHide;
     }
 }