Esempio n. 1
0
 public void Initialize(MessageListBox list)
 {
     ListBox = list;
     if (list != null)
     {
         list.Items.Clear();
         List <Log> logs = GetLogs(string.Empty);
         if (logs.Count > 0)
         {
             int i = 0;
             foreach (Log p in logs)
             {
                 list.Items.Add(new ParseMessageEventArgs((ParseMessageType)p.Type, p.Method, p.Description, "logs" + i, string.Empty));
                 i++;
             }
         }
         list.Invalidate();
     }
 }
Esempio n. 2
0
 public void Initialize(MessageListBox list)
 {
     if (list != null)
     {
         list.Items.Clear();
         List <Archive> profs = GetProfiles();
         if (profs.Count > 0)
         {
             foreach (Archive p in profs)
             {
                 list.Items.Add(new ParseMessageEventArgs(ParseMessageType.Archive, p.Name, p.Comment, "archive" + p.ID, p.LastDateModified));
             }
         }
         else
         {
             list.Items.Add(new ParseMessageEventArgs(ParseMessageType.Info, "No archives found!", "Saved current environment variables to create archive.", "0", string.Empty));
         }
         list.Invalidate();
     }
 }
 public void Initialize(MessageListBox list)
 {
     if (list != null)
     {
         list.Items.Clear();
         List <Workspace> profs = GetProfiles();
         if (profs.Count > 0)
         {
             foreach (Workspace p in profs)
             {
                 list.Items.Add(new ParseMessageEventArgs(ParseMessageType.Profile, p.Name, p.Directory, "workspace" + p.ID, p.LastDateUnbind));
             }
         }
         else
         {
             list.Items.Add(new ParseMessageEventArgs(ParseMessageType.Info, "No workspace found!", "Add folder to create new workspace.", "0", string.Empty));
         }
         list.Invalidate();
     }
 }