예제 #1
0
        /// <summary>
        /// Undo Checkout Node
        /// </summary>
        private void ACTION_UndoCheckOutNode()
        {
            bool state = true;

            if (MessageBox.Show("Do you want to Undo CheckOut node?", "Undo CheckOut node", MessageBoxButtons.YesNo) == System.Windows.Forms.DialogResult.Yes)
            {
                cont.Begin();
                try
                {
                    CONTEXT_XML_NODE.UndoChargeOut();
                }
                catch (VXmlException e1)
                {
                    state = false;
                    MessageBox.Show(e1.Message, "Error", MessageBoxButtons.OK);
                }
                cont.Commit();

                if (state)
                {
                    SELECT_Node();
                }
            }
        }