Esempio n. 1
0
 private void SetActiveExpression(Expression expr = null)
 {            
     if (expr != null)
     {
         m_currentExpression = expr;
         m_exprLabelTxt.Text = expr.Label;
         m_exprIdTxt.Text = expr.Id;
         m_exprTxt.Text = expr.Script;
     }
     else
     {
         m_currentExpression = null;
         m_exprTxt.Text = string.Empty;
         m_exprLabelTxt.Text = string.Empty;
         m_exprIdTxt.Text = string.Empty;
     }
 }
Esempio n. 2
0
 private void DeleteExpression(Expression expr)
 {
     if (expr == null) return;
     m_mgr.As<ITransactionContext>().DoTransaction(delegate
        {
            m_mgr.Expressions.Remove(expr);
        }, "Delete Expression");
     m_numOfOperation++;
     UpdateActiveTabPage();
 }