private static void CheckIfTextBoxIsEmpty(string textBoxText, RenameFile RenameFileForm, RenameFileBindingModel bindingModel)
        {
            //uses string textBoxText to get user input for a name of a file
            //uses RenameFile Form to check if user has done everything properly on that form.
            //uses RenameFileBindingModel to set its properties.

            if (textBoxText != "")
            {
                SetRenameFileBindingModelNewName(textBoxText, bindingModel);
                RenameFileForm.Close();
            }
            else
            {
                ShowMessageBox();
            }
        }
        public static async void CheckIfTextBoxIsEmptyAsync(string textBoxText, RenameFile RenameFileForm, RenameFileBindingModel bindingModel)
        {
            //uses string textBoxText to get user input for a name of a file
            //uses RenameFile Form to check if user has done everything properly on that form.
            //uses RenameFileBindingModel to set its properties.

            if (textBoxText != "")
            {
                await Task.Run(() => SetRenameFileBindingModelNewName(textBoxText, bindingModel));

                RenameFileForm.Close();
            }
            else
            {
                await Task.Run(() => ShowMessageBox());
            }
        }