コード例 #1
0
        private void TangramFormWithCtrl_Load(object sender, EventArgs e)
        {
            TangramCLR.Tangram tangramCore = TangramCLR.Tangram.GetTangram();
            WndPage            thisTangram = Tangram.CreateWndPage(this.ChildPanel, this);

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

            thisFrame.ExtendXml("Default", m_strTangramXML);
        }
コード例 #2
0
        private void TangramMDIParent_Load(object sender, EventArgs e)
        {
            Text = "Tangram";
            Control  mdiClient   = Tangram.GetMDIClient(this);
            WndPage  thisTangram = Tangram.CreateWndPage(mdiClient, this);
            WndFrame 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;
            WndPage  subTangram = Tangram.CreateWndPage(thisPanel, thisForm);
            WndFrame subFrame   = subTangram.CreateFrame(thisPanel, "Default");

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