//load custom contract
        private void Button_Click_10(object sender, RoutedEventArgs e)
        {
            var ss = Dialog_Script_Custom.ShowDialog(this, this.labelRPC.Text);

            if (ss != null)
            {
                lastScript    = ss;
                lastFee       = null;
                labelFee.Text = "Fee:";
                updateScript();
            }
        }
        public static byte[] ShowDialog(Window owner)
        {
            var d = new Dialog_Script_Custom();

            d.Owner = owner;

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