Example #1
0
        private void TangramFormWithCtrl_Load(object sender, EventArgs e)
        {
            TangramCLR.TangramCore tangramCore = TangramCLR.TangramCore.GetTangramCore();
            Tangram thisTangram = TangramCore.CreateTangram(this.ChildPanel, this);

            if (thisTangram == null)
            {
                System.Windows.Forms.MessageBox.Show(m_strTangramXML);
            }
            TangramFrame thisFrame = thisTangram.CreateFrame(ChildPanel.Handle, "Default");

            thisFrame.ExtendXml("Default", m_strTangramXML);
        }
Example #2
0
        private void TangramMDIParent_Load(object sender, EventArgs e)
        {
            Text = "Tangram";
            Control      mdiClient   = TangramCore.GetMDIClient(this);
            Tangram      thisTangram = TangramCore.CreateTangram(mdiClient, this);
            TangramFrame thisFrame   = thisTangram.CreateFrame(mdiClient, "Default");

            thisFrame.ExtendXml("Default", m_strTangramXML);

            Form thisForm = new Form();

            thisForm.Text      = "Tangram MDI Child";
            thisForm.MdiParent = this;
            thisForm.Show();
            Panel thisPanel = new Panel();

            thisForm.Controls.Add(thisPanel);
            thisPanel.Dock = DockStyle.Fill;
            Tangram      subTangram = TangramCore.CreateTangram(thisPanel, thisForm);
            TangramFrame subFrame   = subTangram.CreateFrame(thisPanel, "Default");

            subFrame.ExtendXml("Default", m_strTangramXML);
        }