private void button1_UserRename_Click(object sender, EventArgs e) { try { //string Adress = Directory.GetCurrentDirectory() + "\\" + listBox1_User.SelectedItem.ToString().Replace("\\", ""); var Temp = new UserMove(listBox1_User.SelectedItem.ToString()); Temp.ShowDialog(); UpdateUserBox(); } catch (Exception err) { //MessageBox.Show(err.Message); } }
private void button1_ServerRename_Click(object sender, EventArgs e) { if (ServerIsOn) { string Adress = listBox1_Server.SelectedItem.ToString().Replace("\\", ""); try { var Temp = new UserMove(Adress, true, ftpClient, ServerPath); Temp.ShowDialog(); } catch (Exception err) { MessageBox.Show(err.Message); } UpdateServerBoxList(); } }