Exemplo n.º 1
0
        private void runScreen_ObjMouseUp(object sender, EventArgs e)
        {
            List<byte[]> bts = new List<byte[]>();
            HmiObjectEdit objedit = (HmiObjectEdit)sender;
            if ((m_app != null) && (m_page != null))
            {
                if (objedit != null)
                {
                    m_objEdit = objedit;
                    m_obj = m_objEdit.HmiObject;
                    textBox3.Text = Utility.ToStrings(m_obj.GetCodes());
                    m_obj.CompileCodes(bts);
                    textBox1.Text = Utility.ToStrings(bts);
                }
                else
                    m_obj = m_page.HmiObjects[0];

                m_compiler.RefreshObject(m_app, m_page, m_obj);
                m_attributeEdit.RefreshObject(m_app, m_page, m_obj);
                mi_Copy.Enabled = true;
            }
        }
Exemplo n.º 2
0
 private void listBox2_SelectedIndexChanged(object sender, EventArgs e)
 {
     List<byte[]> bts = new List<byte[]>();
     m_obj = m_page.HmiObjects[int.Parse(listBox2.SelectedItem.ToString())];
     textBox3.Text = Utility.ToStrings(m_obj.GetCodes());
     m_obj.CompileCodes(bts);
     textBox1.Text = Utility.ToStrings(bts);
     m_compiler.RefreshObject(m_app, m_page, m_page.HmiObjects[int.Parse(listBox2.SelectedItem.ToString())]);
 }