コード例 #1
0
        private void UpdateTabControl()
        {
            if (_component.VolumeGraphics == null)
            {
                return;
            }

            int i = 0;

            foreach (Graphic layer in _component.VolumeGraphics)
            {
                VolumeGraphic volumeLayer = layer as VolumeGraphic;

                if (volumeLayer != null)
                {
                    TabPage       page    = _tabControl.TabPages[i];
                    TissueControl control = page.Controls[0] as TissueControl;

                    if (control != null)
                    {
                        control.TissueSettings = volumeLayer.TissueSettings;
                    }
                }

                i++;
            }
        }
コード例 #2
0
 void AddDefaultTabs()
 {
     for (int i = 0; i < 2; i++)
     {
         TabPage       tabPage = new TabPage("Tissue");
         TissueControl control = new TissueControl();
         tabPage.Controls.Add(control);
         control.Dock = DockStyle.Fill;
         _tabControl.TabPages.Add(tabPage);
     }
 }