Esempio n. 1
0
        public static DialogSHA NewInstace(Bundle bundle)
        {
            var fragment = new DialogSHA();

            sha_crypto         = bundle.GetString("sha_crypto");
            sha_decrypto       = bundle.GetString("sha_decrypto");
            fragment.Arguments = bundle;
            return(fragment);
        }
        private void Show_Dialog_SHA(string file_sha, string new_file_sha)
        {
            var activity = (AppCompatActivity)context;
            var ft       = activity.SupportFragmentManager.BeginTransaction();
            var bundle   = new Bundle();

            bundle.PutString("sha_crypto", file_sha);
            bundle.PutString("sha_decrypto", new_file_sha);
            var dialogFragment = DialogSHA.NewInstace(bundle);

            ft.Add(dialogFragment, "dialog_SHA");
            ft.CommitAllowingStateLoss();
        }