Example #1
0
 /// <summary>
 /// Add new file.
 /// </summary>
 private void NewFile_Clicked(object sender, EventArgs e)
 {
     FileItem NewFileItem = new FileItem();
     ActiveFiles.Add(NewFileItem);
     var tmp = new FileListItem(this, NewFileItem,
         ((ActiveFiles.Count - 1)%2 == 0) ? Colors.White : Colors.LightGray);
     FileListContent.PackStart(tmp);
 }
Example #2
0
        /// <summary>
        /// Add new file.
        /// </summary>
        private void NewFile_Clicked(object sender, EventArgs e)
        {
            FileItem NewFileItem = new FileItem();

            ActiveFiles.Add(NewFileItem);
            var tmp = new FileListItem(this, NewFileItem,
                                       ((ActiveFiles.Count - 1) % 2 == 0) ? Colors.White : Colors.LightGray);

            FileListContent.PackStart(tmp);
        }
Example #3
0
        /// <summary>
        /// Refresh file list.
        /// </summary>
        private void RefreshFileList()
        {
            FileListContent.Clear();
            int x = 0;

            foreach (var h in ActiveFiles)
            {
                FileListItem tmp = new FileListItem(this, h, (x % 2 == 0) ? Colors.White : Colors.LightGray);
                FileListContent.PackStart(tmp);
                x++;
            }
        }
Example #4
0
 /// <summary>
 /// Refresh file list.
 /// </summary>
 private void RefreshFileList()
 {
     FileListContent.Clear();
     int x = 0;
     foreach (var h in ActiveFiles)
     {
         FileListItem tmp = new FileListItem(this, h, (x%2 == 0) ? Colors.White : Colors.LightGray);
         FileListContent.PackStart(tmp);
         x++;
     }
 }