private void editToolStripMenuItem_Click(object sender, EventArgs e) { if (fileList.SelectedItems.Count == 0) { return; } FileListViewItem lvi = fileList.SelectedItems[0] as FileListViewItem; EditFile(lvi.FileName); }
private void fileList_MouseDoubleClick(object sender, MouseEventArgs e) { if (fileList.SelectedItems.Count == 0) { return; } FileListViewItem lvi = fileList.SelectedItems[0] as FileListViewItem; EditFile(lvi.FileName); }
private void fileList_MouseClick(object sender, MouseEventArgs e) { if (fileList.SelectedItems.Count == 0) { return; } FileListViewItem lvi = fileList.SelectedItems[0] as FileListViewItem; if (e.Button == MouseButtons.Right) { fileMenuStrip.Items[0].Text = "[" + lvi.FileNameShort + "]"; fileMenuStrip.Show(this, e.Location); } }
void RefreshFiles() { DebugLog.AppendText( "Cloud - Refreshing Files..." ); fileList.Items.Clear(); foreach ( var fileInfo in Cloud.GetFiles() ) { FileListViewItem lvi = new FileListViewItem( fileInfo.FileName, fileInfo.Size ); fileList.Items.Add( lvi ); } DebugLog.AppendText( "Done!{0}", Environment.NewLine ); RefreshQuota(); }
void RefreshFiles() { DebugLog.AppendText("Cloud - Refreshing Files..."); fileList.Items.Clear(); foreach (var fileInfo in Cloud.GetFiles()) { FileListViewItem lvi = new FileListViewItem(fileInfo.FileName, fileInfo.Size); fileList.Items.Add(lvi); } DebugLog.AppendText("Done!{0}", Environment.NewLine); RefreshQuota(); }