private void Add_Btn_Rename_Click(object sender, RoutedEventArgs e)
        {
            //get number of file or folder witch can rename.
            int numOfEntries = GetInfoAdd();
            //check if there is file or folder in directory with the special key if there wasn't codes will stop.
            if (ThereIsNoFileAdd(numOfEntries)) return;

            //send information to the ask form
            AskToReplace askToRename = new AskToReplace
                {
                    IsReplace = false,
                    IsAddToEnd = Add_Cb_AddToFirst.IsChecked == false,
                    AskPath = Path,
                    RenameFileIsChecked = Add_Cb_RenameFile.IsChecked == true,
                    RenameFolderIsChecked = Add_Cb_RenameFolder.IsChecked == true,
                    UseCurrentDirIsChecked = Add_Rb_CurrentDir.IsChecked == true,
                    Tb_Source = Add_Tb_Source.Text,
                };
            askToRename.ShowDialog();
        }
        private void Replace_Btn_Rename_Click(object sender, RoutedEventArgs e)
        {
            //get number of file or folder witch can rename.
            int numOfEntries = GetInfoReplace(Replace_Rb_CurrentDir, Replace_Cb_RenameFile, Replace_Cb_RenameFolder,
                                       Replace_Tb_Source);
            //check if there is file or folder in directory with the special key if there wasn't codes will stop.
            if (ThereIsNoFileReplace(numOfEntries, Replace_Cb_RenameFile, Replace_Cb_RenameFolder, Replace_Tb_Source)) return;

            //send information to the ask form
            AskToReplace askToRename = new AskToReplace();
            askToRename.AskPath = Path;
            askToRename.RenameFileIsChecked = Replace_Cb_RenameFile.IsChecked == true;
            askToRename.RenameFolderIsChecked = Replace_Cb_RenameFolder.IsChecked == true;
            askToRename.UseCurrentDirIsChecked = Replace_Rb_CurrentDir.IsChecked == true;
            askToRename.Tb_Source = Replace_Tb_Source.Text;
            askToRename.Tb_Target = Replace_Tb_Target.Text;
            askToRename.ShowDialog();
        }