public projectViewWindow()
        {
            InitializeComponent();
            //thisProject = new ProjectClass();
            proj = new ProjectClass_2();

            textFieldsDataGrid.Items.Add(proj.log.entries[0]);
            //textFieldsDataGrid.Items = proj.log.entries

            //thisProject.addNoteLine();
            //thisProject.notes.updateContent[0] = "test";
            //textFieldsDataGrid.Items.Add(thisProject.notes);
        }
        public projectViewWindow(int ind)
        {
            InitializeComponent();

            fromScratch = false;
            index       = ind;
            proj        = _global.projects[index];

            if (proj.log.entries.Count > 0)
            {
                for (int i = 0; i < proj.log.entries.Count; i++)
                {
                    textFieldsDataGrid.Items.Add(proj.log.entries[i]);
                }
            }

            desigTextBox.Text       = proj.basics.designation;
            desigTextBox.IsReadOnly = true;

            //openProjectCheckBox.IsChecked
            switch (proj.basics.open)
            {
            case 0:
                openProjectCheckBox.IsChecked = false;
                break;

            case 1:
                openProjectCheckBox.IsChecked = true;
                break;

            case 2:
                openProjectCheckBox.IsChecked = null;
                break;
            }

            dateStartedTextBox.Text = proj.basics.dateStartedString;
            if (openProjectCheckBox.IsChecked == true)
            {
                dateClosedTextBox.Text = proj.basics.dateClosedString;
            }
            revTextBlock.Text    = proj.basics.currentRev;
            projNameTextBox.Text = proj.basics.projectName;
            partNoTextBox.Text   = proj.basics.partNum;
            descTextBox.Text     = proj.basics.description;
        }