Пример #1
0
        private void OnAddFSFormClosed(object sender, FormClosedEventArgs e)
        {
            AddFSForm.Dispose();
            AddFSForm = null;
            // update treeview2
            int selectedId = treeView1.SelectedNode.Index;

            ListofAllFunctionalInterface[selectedId] = ListofFunctionalInterfaceofPart.ToList();
            UpdateTreeview2(ListofFunctionalInterfaceofPart);
        }
Пример #2
0
        // identify FI of a selected part
        private void button2_Click(object sender, EventArgs e)
        {
            int selectedId = treeView1.SelectedNode.Index;
            int partId     = Nodes[selectedId];

            // Open the FI dialogue editor
            for (int i = 0; i < selectedId; i++)
            {
                NumberOfFIs += ListofAllFunctionalInterface[i].Count;
            }
            ListofFunctionalInterfaceofPart.Clear();
            AddFSForm = new PCCDAddFS(NumberOfFIs, partId, ListofFunctionalInterfaceofPart);

            AddFSForm.FormClosed += OnAddFSFormClosed;
            AddFSForm.Show();
            //ListofAllFunctionalInterface.Add(ListofFunctionalInterfaceofPart.ToList());
        }