Esempio n. 1
0
        public static byte[] ShowDialog(Window owner)
        {
            var d = new Dialog_Import_Nep6();

            d.Owner = owner;
            if (d.ShowDialog() == true)
            {
                return(d.prikey);
            }
            return(null);
        }
        private void Button_Click_2(object sender, RoutedEventArgs e)
        {
            var prikey = Dialog_Import_Nep6.ShowDialog(this);

            if (prikey == null || prikey.Length == 0)
            {
                MessageBox.Show("error key set.");
                return;
            }
            var pubkey = ThinNeo.Helper.GetPublicKeyFromPrivateKey(prikey);

            InitMainKey(pubkey, prikey);
        }