private void fFTToolStripMenuItem1_Click(object sender, EventArgs e) { ObjectFFT OFFT = new ObjectFFT(); //OFFT.ParentWindow = MainForm; //OFFT.ParentUserControl = this; OFFT.TbControlPanelAssignment = tbControlPanelAssignment; OFFT.VGridMainForm = MainForm.vGridControlProperties; OFFT.TreeViewSolutionList = MainForm.treeViewSolutionList; OFFT.PanelIndicator = panelIndicator; OFFT.PanelSequence = panelSequence; OFFT.TbLineSequence = TbLineSequence; OFFT.ShapeContainer = shapeContainer; OFFT.ObjectClickedEvent += new ObjectSignal.ObjectClick(ObjectControlClick); OFFT.ObjectMouseDownEvent += new ObjectSignal.ObjectMouseDown(ObjectControlMouseDown); OFFT.ControlTypeName = ControlTypeNames.FFT; OFFT.ControlName = WorkingEnvironmentFunction.CreateControlName("FFT", "sequence", tbControlPanelAssignment); SubscribeSequence(OFFT); OFFT.SequenceTextbox.Text = OFFT.ControlName; SubscribeObjectTreeview(OFFT, "sequence"); OFFT.InitFormFFT(); }
//public void RearrangeIndexDatatable(DataTable tbArrange) //{ // for (int i = 0; i < tbArrange.Rows.Count; i++) // { // tbArrange.Rows[i]["index"] = i; // } //} //public void RemoveItemDatatableProperties(int index, DataTable tbRemove) //{ // tbRemove.Rows.RemoveAt(index); // RearrangeIndexDatatable(tbRemove); //} private ControlTypeNames? CheckObjectFFTHasSequence(ObjectFFT oFFT) { if (oFFT.SequenceSource != null) { switch (oFFT.SequenceSource.ControlTypeName) { case ControlTypeNames.AudioIn: return oFFT.SequenceSource.ControlTypeName; break; case ControlTypeNames.DeviceNI: return oFFT.SequenceSource.ControlTypeName; break; } } else { return null; } return null; }