Ejemplo n.º 1
0
 private void ATLoadProject(ATProject currentATProject)
 {
     ATBlockListView.Items.Clear();
     foreach (ATBlock block in currentATProject.atBlocks)
     {
         if (!block.blockName.Contains("_Bundle"))
         {
             ListViewItem item = new ListViewItem(block.blockName);
             ATBlockListView.Items.Add(item);
         }
     }
     ATGetBlockStatus();
     ProjectTB.Text = new DirectoryInfo(currentATProject.atDirectory).Name;
 }
Ejemplo n.º 2
0
 private void ATISPMProjectTB_KeyPress(object sender, KeyPressEventArgs e)
 {
     if (e.KeyChar == (char)Keys.Return)
     {
         ATISPMProjectTB.Text = GetUniversalName(ATISPMProjectTB.Text);
         currentATProject = new ATProject(ATISPMProjectTB.Text.Substring(0, ATISPMProjectTB.Text.Length - 8) + @"\photo");
         ATLoadProject(currentATProject);
     }
 }
Ejemplo n.º 3
0
 private void RectifyLoadProject(ATProject currentATProject)
 {
     RectifyListView.Items.Clear();
     foreach (Photo photo in currentATProject.atPhotos)
     {
         ListViewItem item = new ListViewItem();
         item.Text = photo.flight;
         item.SubItems.Add(photo.photoName);
         item.SubItems.Add(photo.filePath);
         RectifyListView.Items.Add(item);
     }
     ProjectTB.Text = new DirectoryInfo(currentATProject.atDirectory).Name;
 }
Ejemplo n.º 4
0
        private void ATISPMProjectBrowse_Click(object sender, EventArgs e)
        {
            // Displays an OpenFileDialog so the user can select a Cursor.
            OpenFileDialog openFileDialog = new OpenFileDialog();
            openFileDialog.Filter = "ISPM Project Files|project";
            openFileDialog.Title = "Select a ISPM Project";

            // Show the Dialog.
            if (openFileDialog.ShowDialog() == DialogResult.OK)
            {
                ATISPMProjectTB.Text = GetUniversalName(openFileDialog.FileName);
                currentATProject = new ATProject(ATISPMProjectTB.Text.Substring(0, ATISPMProjectTB.Text.Length - 8) + @"\photo");
                ATLoadProject(currentATProject);
            }
        }
Ejemplo n.º 5
0
 private void RectifyISPMProjTB_KeyPress(object sender, KeyPressEventArgs e)
 {
     if (e.KeyChar == (char)Keys.Return)
     {
         if (!File.Exists(RectifyISPMProjTB.Text))
         {
             MessageBox.Show("File Not Found");
         }
         else
         {
             RectifyISPMProjTB.Text = GetUniversalName(RectifyISPMProjTB.Text);
             currentATProject = new ATProject(RectifyISPMProjTB.Text.Substring(0, RectifyISPMProjTB.Text.Length - 8) + @"\photo");
             RectifyLoadProject(currentATProject);
         }
     }
 }