예제 #1
0
        public static string ShowDialog(Window owner, string label, string defvalue = "")
        {
            var d = new Dialog_Input();

            d.Owner    = owner;
            d.showtext = label;
            d.text     = defvalue;
            if (d.ShowDialog() == true)
            {
                return(d.text);
            }
            return(null);
        }
예제 #2
0
        private void Button_Click_1(object sender, RoutedEventArgs e)
        {//import wif string
            string wif = Dialog_Input.ShowDialog(this, "type wif here.");

            try
            {
                var privatekey = ThinNeo.Helper.GetPrivateKeyFromWIF(wif);
                AddSimpleKey(privatekey);
            }
            catch (Exception err)
            {
                MessageBox.Show("error:" + err.Message);
            }
        }