Exemplo n.º 1
0
        private void editToolStripMenuItem_Click(object sender, EventArgs e)
        {
            if (fileList.SelectedItems.Count == 0)
            {
                return;
            }

            FileListViewItem lvi = fileList.SelectedItems[0] as FileListViewItem;

            EditFile(lvi.FileName);
        }
Exemplo n.º 2
0
        private void fileList_MouseDoubleClick(object sender, MouseEventArgs e)
        {
            if (fileList.SelectedItems.Count == 0)
            {
                return;
            }

            FileListViewItem lvi = fileList.SelectedItems[0] as FileListViewItem;

            EditFile(lvi.FileName);
        }
Exemplo n.º 3
0
        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);
            }
        }
Exemplo n.º 4
0
        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();
        }
Exemplo n.º 5
0
        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();
        }