Exemplo n.º 1
0
        private void Rename_OnClick(object sender, RoutedEventArgs e)
        {
            RenameForm renameForm = new RenameForm();

            renameForm.ShowDialog();
            if (IsOk)
            {
                _currentProtocol.Rename(DataView.SelectedIndex);
            }
            DataView.Items.Refresh();
        }
Exemplo n.º 2
0
 private void NewFolder_OnClick(object sender, RoutedEventArgs e)
 {
     if (_currentProtocol.CurrentTcpClient.Connected)
     {
         RenameForm newFolderForm = new RenameForm();
         newFolderForm.ShowDialog();
         if (IsOk)
         {
             _currentProtocol.MakeDir(NewName);
         }
         DataView.Items.Refresh();
     }
 }