public FormForVolumeDetection(FormForControl Parent)
        {
            InitializeComponent();

            this.Parent = Parent;

            //comboBoxExistingSpotsDetected.DataSource = this.Parent.ListDetectedSpots;
            //if (this.Parent.ListDetectedSpots.Count > 0)
            //    comboBoxExistingSpotsDetected.DisplayMember = this.Parent.ListDetectedSpots[0];

            //comboBox1.DataSource = dataSet1.Tables["Suppliers"];
            //comboBox1.DisplayMember = "ProductName";

            //cListObject LObj = new cListObject();
            //LObj.Add("Test1");
            //LObj.Add("Test2");
        }
Example #2
0
        private void loadConfigurationToolStripMenuItem_Click(object sender, EventArgs e)
        {
            OpenFileDialog CurrOpenFileDialog = new OpenFileDialog();
            CurrOpenFileDialog.Filter = "binary files (*.xml)|*.xml";
            System.Windows.Forms.DialogResult Res = CurrOpenFileDialog.ShowDialog();
            if (Res != System.Windows.Forms.DialogResult.OK) return;
            string fileName = CurrOpenFileDialog.FileName;

            GlobalStatus = new FinalGlobalStatus();
               GlobalStatus = GlobalStatus.Load(fileName);

            ListFormForControl.Clear();
            ListCtrl.Clear();
            panelFor3DControls.Controls.Clear();

            for (int IdxNewObj = 0; IdxNewObj < GlobalStatus.GlobalStatus.Count; IdxNewObj++)
            {
                FormForControl CurrentFormFor3DObject = new FormForControl(this, GlobalStatus.GlobalStatus[IdxNewObj]);

                CurrentFormFor3DObject.ImList = imageListForThumbnail;
                CurrentFormFor3DObject.panelGroup.Location = new Point(0, IdxNewObj * CurrentFormFor3DObject.panelGroup.Height /*- panelFor3DControls.VerticalScroll.Value*/);
                CurrentFormFor3DObject.panelGroup.Text = "Object " + IdxNewObj;
                CurrentFormFor3DObject.textBoxName.Text = "Object " + IdxNewObj;

               // CurrentFormFor3DObject.panelGroup.BackgroundImage = ImageToDisp;
                CurrentFormFor3DObject.panelGroup.BackgroundImageLayout = ImageLayout.None;
                CurrentFormFor3DObject.Parent = this;

                ListFormForControl.Push(CurrentFormFor3DObject);
                ListCtrl.Push(CurrentFormFor3DObject.panelGroup);
            }

            panelFor3DControls.Controls.AddRange(ListCtrl.ToArray());
            textBoxNumberOfObjects.Text = panelFor3DControls.Controls.Count.ToString();
            UpDateContainers();
            UpDateSpotList();
        }
Example #3
0
        private void buttonAddObject_Click(object sender, EventArgs e)
        {
            int NewIDx = (int)(int.Parse(textBoxNumberOfObjects.Text) + 1);

            FormForControl CurrentFormFor3DObject = new FormForControl(this,new cPoint3D(50*NewIDx,50,0));

            CurrentFormFor3DObject.ImList = imageListForThumbnail;
            CurrentFormFor3DObject.panelGroup.Location = new Point(0, (NewIDx - 1) * CurrentFormFor3DObject.panelGroup.Height - panelFor3DControls.VerticalScroll.Value);
            CurrentFormFor3DObject.panelGroup.Text = "Object " + NewIDx;
            CurrentFormFor3DObject.textBoxName.Text = "Object " + NewIDx;

              //  CurrentFormFor3DObject.panelGroup.BackgroundImage = ImageToDisp;
            CurrentFormFor3DObject.panelGroup.BackgroundImageLayout = ImageLayout.None;
            CurrentFormFor3DObject.Parent = this;

            ListFormForControl.Push(CurrentFormFor3DObject);
            ListCtrl.Push(CurrentFormFor3DObject.panelGroup);
            panelFor3DControls.Controls.AddRange(ListCtrl.ToArray());
            textBoxNumberOfObjects.Text = panelFor3DControls.Controls.Count.ToString();
            UpDateContainers();
            UpDateSpotList();
        }
Example #4
0
 public void UpDateMasters(FormForControl SenderCtrl)
 {
     foreach (FormForControl CurrentFormForCtrl in ListFormForControl)
     {
         if (CurrentFormForCtrl == SenderCtrl) continue;
         if (CurrentFormForCtrl.radioButtonIsVolumeRendering.Checked) continue;
         CurrentFormForCtrl.SetAsNonMaster();
     }
 }
Example #5
0
        public FormForSpotDetection(FormForControl Parent)
        {
            InitializeComponent();

            this.Parent = Parent;
        }
        public FormFor3DVolumeRendering(FormForControl Parent)
        {
            InitializeComponent();

            this.Parent = Parent;
        }
Example #7
0
 public FormForPreProcessings(FormForControl Parent)
 {
     InitializeComponent();
     this.Parent = Parent;
 }