private void profileListBox_DoubleClick(object sender, EventArgs e)
        {
            if (archivesListBox.SelectedItemIndices.Count > 0)
            {
                ClearEnvDetails();
                if (archivesListBox.SelectedIndex < 0 || archivesListBox.SelectedItem == null)
                {
                    return;
                }
                if (!_isLoading)
                {
                    tabControlDetails.SelectedIndex = 0;
                    ParseMessageEventArgs item = archivesListBox.SelectedItem as ParseMessageEventArgs;
                    if (item != null)
                    {
                        if (item.LineHeader.Contains("No archive"))
                        {
                            return;
                        }

                        NewProfile();
                        _selectedArchive = _archives.GetProfile(item.LineHeader);
                        if (_selectedArchive != null)
                        {
                            _archiveTable = _selectedArchive.Code;
                        }
                    }
                    else
                    {
                        _selectedArchive = null;
                    }
                }
            }
        }
Esempio n. 2
0
        public int Add(ParseMessageEventArgs pmea)
        {
            var index = messages.Add(pmea);

            messagesInfo.Add(new ItemInfo(pmea));
            OnAdd();
            return(index);
        }
 private void profileListBox_DoubleClick(object sender, EventArgs e)
 {
     if (workspaceListBox.SelectedItemIndices.Count > 0)
     {
         if (workspaceListBox.SelectedIndex < 0 || workspaceListBox.SelectedItem == null)
         {
             return;
         }
         if (!_isLoading)
         {
             ParseMessageEventArgs item = workspaceListBox.SelectedItem as ParseMessageEventArgs;
             if (item != null)
             {
                 NewProfile();
                 _selectedWorkspace = _workspacse.GetProfile(item.LineHeader);
                 if (_selectedWorkspace != null)
                 {
                     _workspaceTable = _selectedWorkspace.WorkspaceTable;
                     _directory      = _selectedWorkspace.Directory;
                     _folder         = _selectedWorkspace.Name;
                     if (!string.IsNullOrEmpty(_directory))
                     {
                         _loadFile = AddFile.FOLDER;
                         StartLoadFiles(false);
                         InitHistory(_workspaceTable);
                     }
                 }
             }
             else
             {
                 _selectedWorkspace = null;
             }
         }
         else
         {
             panelLocked.Visible = panelLockedBody.Visible = true;
             timerLock.Enabled   = true;
         }
     }
 }
Esempio n. 4
0
 public ItemInfo(int height, bool heightValid, ParseMessageEventArgs eventArgs)
 {
     this.height      = height;
     HeightValid      = heightValid;
     eventArgsMessage = eventArgs;
 }
Esempio n. 5
0
 public ItemInfo(ParseMessageEventArgs eventArgs)
 {
     height           = 0;
     HeightValid      = false;
     eventArgsMessage = eventArgs;
 }
Esempio n. 6
0
 public void Insert(int index, ParseMessageEventArgs pmea)
 {
     messages.Insert(index, pmea);
     messagesInfo.Insert(index, new ItemInfo(pmea));
     OnInsert(index);
 }
Esempio n. 7
0
 public int IndexOf(ParseMessageEventArgs pmea)
 {
     return(messages.IndexOf(pmea));
 }
Esempio n. 8
0
 /// <summary>
 /// Constructor.
 /// </summary>
 /// <param name="height"></param>
 /// <param name="heightValid"></param>
 /// <param name="pmea"></param>
 public ItemInfo(int height, bool heightValid, ParseMessageEventArgs pmea)
 {
     _iHeight      = height;
     _bHeightValid = heightValid;
     _pmeaMessage  = pmea;
 }
Esempio n. 9
0
 /// <summary>
 /// Constructor.
 /// </summary>
 public ItemInfo(ParseMessageEventArgs pmea)
 {
     _iHeight      = 0;
     _bHeightValid = false;
     _pmeaMessage  = pmea;
 }