protected override void MenCreate_Click(object sender, EventArgs e)
 {
     using (CreateVariableForm createForm = new CreateVariableForm())
     {
         if (createForm.ShowDialog(OwnerDefinition, FirstSelectedItem) == DialogResult.OK)
         {
             OwnerDefinition.Body.InitLocals = OwnerDefinition.Body.Variables.Count > 0;
             RaiseGridUpdated();
         }
     }
 }
Esempio n. 2
0
        //Evento de click do botão de criar variáveis
        private void m_BtnCreateVar_Click(object sender, EventArgs e)
        {
            CreateVariableForm v_Form = new CreateVariableForm();

            v_Form.ShowDialog();

            if (v_Form.NewProperty != null)
            {
                Globals.m_Properties.Add(v_Form.NewProperty);
                m_TvBlocks.Nodes[3].Nodes.Add(v_Form.NewProperty.Name, v_Form.NewProperty.propertyToString());

                printToLog(String.Format("Criada variável {0}", v_Form.NewProperty.propertyToString()));
            }
        }