private void MenuItem_Click_3(object sender, RoutedEventArgs e)
        {        //edit select witness
            var wit = listWitness.SelectedItem as ThinNeo.Witness;

            if (wit != null)
            {
                var b = Dialog_Witness_Edit.ShowDialog(this, wit);
                if (b != null)
                {
                    wit.InvocationScript = b;
                }
            }
            listWitness.InvalidateVisual();
        }
示例#2
0
        public static byte[] ShowDialog(Window owner, ThinNeo.Witness witness)
        {
            var d = new Dialog_Witness_Edit();

            d.Owner   = owner;
            d.vscript = witness.VerificationScript;
            d.iscript = witness.InvocationScript;
            d.update();
            if (d.ShowDialog() == true)
            {
                return(d.iscript);
            }
            return(null);
        }