/// <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); }
/// <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); }
/// <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++; } }
/// <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++; } }