private void ProjectWasReadEventProc(ObjectLibrary.Project theProject)
        {
            ListViewItem.ListViewSubItem projectNameItem = new ListViewItem.ListViewSubItem();
            projectNameItem.Text = "Unkown";

            if (theProject != null)
            {
                projectNameItem.Text = theProject.ProjectName;
            }

            ListViewItem.ListViewSubItem objectName = new ListViewItem.ListViewSubItem();
            objectName.Text = "0";

            if (theProject.Objects != null)
            {
                objectName.Text = theProject.Objects.Count.ToString();
            }

            ListViewItem.ListViewSubItem nbOfFunctions = new ListViewItem.ListViewSubItem();
            nbOfFunctions.Text = "0";

            ListViewItem.ListViewSubItem nbOfVariable = new ListViewItem.ListViewSubItem();
            nbOfVariable.Text = "0";

            ListViewItem nextAddedItem = new ListViewItem(new string[] { theProject.ProjectName, "", "0", "0" });

            listView_ProjectInfo.Items.Add(nextAddedItem);

            label_NbProjectValue.Text = m_UIManager.NumberOfProjectFound.ToString();
        }
Example #2
0
        private void ProjectWasReadEventProc(ObjectLibrary.Project theProject)
        {
            string projectName = "Unkown";
            string nbObjects   = "0";
            string langage     = "Unkown";

            if (theProject != null)
            {
                projectName = theProject.ProjectName;
                langage     = theProject.UsedLangage.ToString();
            }

            if (theProject.Objects != null)
            {
                nbObjects = theProject.Objects.Count.ToString();
            }

            ListViewItem nextAddedItem = new ListViewItem(new string[] { projectName, langage, nbObjects, "0", "0" });

            listView_ProjectInfo.Items.Add(nextAddedItem);

            label_NbProjectValue.Text = m_UIManager.NumberOfProjectFound.ToString();
        }
Example #3
0
 private void OnProjectWasReadEvent(ObjectLibrary.Project theProject)
 {
     object[] parameters = { theProject };
     BeginInvoke(new ProjectWasRead(ProjectWasReadEventProc), parameters);
 }