Esempio n. 1
0
        /// <summary>
        /// LOCAL工具栏按钮“新建文件夹”
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        public void BtnNewFolderLocal_click(object sender, EventArgs e)
        {
            UpYunNewFolder newfolder = new UpYunNewFolder();

            newfolder.Owner     = this;
            newfolder.newstatus = "folder";
            newfolder.Path      = LocalPath;
            newfolder.ShowDialog();
            LocalUrlTextChanged();
        }
Esempio n. 2
0
        /// <summary>
        /// 本地浏览器右键菜单“新建文件”条目事件
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void LocalPopupMenuNewFile_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            UpYunNewFolder newfolder = new UpYunNewFolder();

            newfolder.Owner     = this;
            newfolder.Path      = LocalPath;
            newfolder.newstatus = "newfile";
            newfolder.ShowDialog();
            LocalUrlTextChanged();
        }
Esempio n. 3
0
        /// <summary>
        /// WEB工具栏按钮:新建文件夹
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        public void BtnNewFolderWeb_click(object sender, EventArgs e)
        {
            UpYunNewFolder newfolder = new UpYunNewFolder();

            newfolder.Owner           = this;
            newfolder.Path            = WebPath;
            newfolder.newstatus       = "folder";
            newfolder.userinformation = userInformation;
            newfolder.ShowDialog();
            WebUrlTextChanged();
        }
Esempio n. 4
0
        /// <summary>
        /// 本地浏览器右键菜单“重命名”条目事件
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void LocalPopupMenuRename_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            UpYunNewFolder newfolder = new UpYunNewFolder();

            newfolder.Owner = this;
            newfolder.Path  = LocalPath;
            Point p = this.ListViewLocal.PointToClient(new Point(menutrippoint.X, menutrippoint.Y));

            if (ListViewLocal.GetItemAt(p.X, p.Y).SubItems[1].Text.Equals("      "))
            {
                newfolder.newstatus = "renamefolder";
            }
            else
            {
                newfolder.newstatus = "renamefile";
            }
            newfolder.oldname = ListViewLocal.GetItemAt(p.X, p.Y).Text;
            newfolder.ShowDialog();
            LocalUrlTextChanged();
        }
Esempio n. 5
0
 /// <summary>
 /// 本地浏览器右键菜单“重命名”条目事件
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void LocalPopupMenuRename_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
 {
     UpYunNewFolder newfolder = new UpYunNewFolder();
     newfolder.Owner = this;
     newfolder.Path = LocalPath;
     Point p = this.ListViewLocal.PointToClient(new Point(menutrippoint.X, menutrippoint.Y));
     if (ListViewLocal.GetItemAt(p.X, p.Y).SubItems[1].Text.Equals("      "))
         newfolder.newstatus = "renamefolder";
     else
         newfolder.newstatus = "renamefile";
     newfolder.oldname = ListViewLocal.GetItemAt(p.X, p.Y).Text;
     newfolder.ShowDialog();
     LocalUrlTextChanged();
 }
Esempio n. 6
0
 /// <summary>
 /// 本地浏览器右键菜单“新建文件”条目事件
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void LocalPopupMenuNewFile_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
 {
     UpYunNewFolder newfolder = new UpYunNewFolder();
     newfolder.Owner = this;
     newfolder.Path = LocalPath;
     newfolder.newstatus = "newfile";
     newfolder.ShowDialog();
     LocalUrlTextChanged();
 }
Esempio n. 7
0
 /// <summary>
 /// WEB工具栏按钮:新建文件夹
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 public void BtnNewFolderWeb_click(object sender, EventArgs e)
 {
     UpYunNewFolder newfolder = new UpYunNewFolder();
     newfolder.Owner = this;
     newfolder.Path = WebPath;
     newfolder.newstatus = "folder";
     newfolder.userinformation = userInformation;
     newfolder.ShowDialog();
     WebUrlTextChanged();
 }
Esempio n. 8
0
 /// <summary>
 /// LOCAL工具栏按钮“新建文件夹”
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 public void BtnNewFolderLocal_click(object sender, EventArgs e)
 {
     UpYunNewFolder newfolder = new UpYunNewFolder();
     newfolder.Owner = this;
     newfolder.newstatus = "folder";
     newfolder.Path = LocalPath;
     newfolder.ShowDialog();
     LocalUrlTextChanged();
 }