예제 #1
0
        public static byte[] ShowDialog(Window owner, string apiurl)
        {
            var d = new Dialog_Script_Upgrade();

            d.Owner  = owner;
            d.apiurl = apiurl;
            if (d.ShowDialog() == true)
            {
                return(d.script);
            }
            return(null);
        }
        private void Button_Click_11(object sender, RoutedEventArgs e)
        {
            var ss = Dialog_Script_Upgrade.ShowDialog(this, this.labelApi.Text);

            if (ss != null)
            {
                lastScript    = ss;
                lastFee       = null;
                labelFee.Text = "Fee:";
                updateScript();
            }
        }