//发布智能合约
        private void Button_Click_9(object sender, RoutedEventArgs e)
        {
            var ss = Dialog_Script_Publish.ShowDialog(this, this.labelRPC.Text);

            if (ss != null)
            {
                lastScript    = ss;
                lastFee       = null;
                labelFee.Text = "Fee:";
                updateScript();
            }
        }
Exemplo n.º 2
0
        public static byte[] ShowDialog(Window owner, string apiurl)
        {
            var d = new Dialog_Script_Publish();

            d.Owner  = owner;
            d.apiurl = apiurl;
            if (d.ShowDialog() == true)
            {
                return(d.script);
            }
            return(null);
        }