Beispiel #1
0
        private void CopyExecute(object obj)
        {
            string source = "";
            string target = "";

            if (LeftPanel.SelectedPath != null)
            {
                source = Path.Combine(LeftPanel.CurrentPath, LeftPanel.GetCorrectSelectedPath());
                target = Path.GetFullPath(RightPanel.CurrentPath);
            }
            else if (RightPanel.SelectedPath != null)
            {
                source = Path.Combine(RightPanel.CurrentPath, RightPanel.GetCorrectSelectedPath());
                target = Path.GetFullPath(LeftPanel.CurrentPath);
            }

            _model.Copy(source, target); // Model usage


            UpdateCurrentPathContents(); // Updating view
        }