private void OnKeyDownHandler2(object sender, KeyEventArgs e) { if (e.Key == Key.Return) { MainWindowEventHandling.PathWriting(RightTextBox, RightList); } }
private void Button_Click(object sender, RoutedEventArgs e) { int tmp = LeftTextBox.Text.Split('\\').Last().Length; if (LeftTextBox.Text.Length > tmp) { LeftTextBox.Text = LeftTextBox.Text.Substring(0, LeftTextBox.Text.Length - tmp - 1); MainWindowEventHandling.PathWriting(LeftTextBox, LeftList); } else { MessageBox.Show("Exception"); } }