Beispiel #1
0
        //tests
        //copy function in models
        private void CopyExecute(object obj)
        {
            //tests
            //Console.WriteLine("From : " + LeftSide.SelectedPath);
            //Console.WriteLine("Where : " + RightSide.SelectedPath)

            string source = "";
            string target = "";

            //LEFT SIDE
            if (LeftSide.SelectedPath != null)
            {
                source = Path.Combine(LeftSide.CurrentPath, LeftSide.GetSelectedPath());
                target = Path.GetFullPath(RightSide.CurrentPath);
            } // RIGHT SIDE
            else if (RightSide.SelectedPath != null)
            {
                source = Path.Combine(RightSide.CurrentPath, RightSide.GetSelectedPath());
                target = Path.GetFullPath(LeftSide.CurrentPath);
            }


            copyModel.Copy(source, target); // Model -> CopyModel.cs

            UpdateView();                   //UpdateView
        }