Exemplo n.º 1
0
        public KiNoteForm(VaultNode node)
        {
            InitializeComponent();

            fTextNode = new VaultTextNode(node);
            IRevert(null, null);
            Text = fTextNode.NoteName;
        }
Exemplo n.º 2
0
        private void ICreateTextNote(object sender, EventArgs e)
        {
            if (fAgeList.FocusedItem == null) return;

            VaultTextNode text = new VaultTextNode();
            text.NoteName = "WhoM Text Note";
            text.NodeType = ENoteType.kNoteGeneric;
            text.Text = "Hello, World!";

            // Save the node, then add it to the age journals on a callback
            uint transID = fParent.AuthCli.CreateVaultNode(text.BaseNode.ToArray());
            fParent.RegisterAuthCB(transID, new Action<ENetError, uint, uint>(IAddUserNode), new object[] { ((VaultNode)fAgeList.FocusedItem.Tag).ID });
        }