private void _CreateDir_Click(object sender, EventArgs e) { NewDir tmp = new NewDir(); tmp.ShowDialog(); if (!string.IsNullOrEmpty(tmp.DirName)) { string fullname = CurrentDir + tmp.DirName; if (CurrentDir[CurrentDir.Length - 1] != '\\') { fullname = CurrentDir + "\\" + tmp.DirName; } PackHandler.NewDir ndir = new PackHandler.NewDir() { DirName = fullname }; SocketManager.Send(BufferFormatV2.FormatFCA(ndir, Deflate.Compress)); } }
private void _CreateDir_Click(object sender, EventArgs e) { NewDir tmp = new NewDir(); tmp.ShowDialog(); if (!string.IsNullOrEmpty(tmp.DirName)) { string fullname = System.IO.Path.Combine(CurrentDir, tmp.DirName); PackHandler.NewDir ndir = new PackHandler.NewDir() { DirName = fullname }; SocketManager.Send(BufferFormatV2.FormatFCA(ndir, Deflate.Compress)); } }