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