Example #1
0
        private void BoolCellEdited(object o, EditedArgs args)
        {
            TreePath        path    = new TreePath(args.Path);
            PairingTreeNode changed = (PairingTreeNode)dataGridPairing.NodeStore.GetNode(path);

            try {
                changed.ResultEdited = args.NewText;
                activePairings[Int32.Parse(args.Path)] = changed.GetPairing;
            } catch (Exception e) {
                return;
            }
        }
Example #2
0
        private void NumberCellEditedScore2(object o, EditedArgs args)
        {
            TreePath        path    = new TreePath(args.Path);;
            PairingTreeNode changed = (PairingTreeNode)dataGridPairing.NodeStore.GetNode(path);

            try {
                changed.Player2Score = Int32.Parse(args.NewText);
                activePairings[Int32.Parse(args.Path)] = changed.GetPairing;
            } catch (Exception e) {
                return;
            }
        }