コード例 #1
0
ファイル: UpYunMain.cs プロジェクト: wardchan/97world_UpYun
        /// <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();
        }
コード例 #2
0
ファイル: UpYunMain.cs プロジェクト: wardchan/97world_UpYun
        /// <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();
        }
コード例 #3
0
ファイル: UpYunMain.cs プロジェクト: wardchan/97world_UpYun
        /// <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();
        }
コード例 #4
0
ファイル: UpYunMain.cs プロジェクト: wardchan/97world_UpYun
        /// <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();
        }
コード例 #5
0
ファイル: UpYunMain.cs プロジェクト: 97world/97world_UpYun
 /// <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();
 }
コード例 #6
0
ファイル: UpYunMain.cs プロジェクト: 97world/97world_UpYun
 /// <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();
 }
コード例 #7
0
ファイル: UpYunMain.cs プロジェクト: 97world/97world_UpYun
 /// <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();
 }
コード例 #8
0
ファイル: UpYunMain.cs プロジェクト: 97world/97world_UpYun
 /// <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();
 }