public InfoViewModel(Window frmInfo)
        {
            ProgramName = System.Reflection.Assembly.GetExecutingAssembly().GetName().Name;
            ProgramVersion = System.Reflection.Assembly.GetExecutingAssembly().GetName().Version.ToString();
            AssemblyCopyrightAttribute copyright = Assembly.GetExecutingAssembly().GetCustomAttributes(typeof(AssemblyCopyrightAttribute), false)[0] as
                    AssemblyCopyrightAttribute;
            Copyright = copyright.Copyright;

            CloseWindow = new RelayCommand(() => ClosePopupWindow(frmInfo));
        }
        public MainViewModel(MainWindow mainFrm)
        {
            Methods methods = new Methods();
            CheckerMethods checkerMethods = new CheckerMethods();

            ShowInfoWindow = new RelayCommand(() => methods.OpenInfoWindow(mainFrm));

            EncryptText = new RelayCommand(() => methods.EncryptText(CryptographyString),
                                            ()=> checkerMethods.CheckEncryption(CryptographyString.DecryptedString, CryptographyString.Password));
            DecryptText = new RelayCommand(() => methods.DecryptText(CryptographyString),
                                            ()=> checkerMethods.CheckDecryption(CryptographyString.EncryptedString, CryptographyString.Password));
        }