예제 #1
0
        void HandleRowActivated(object o, RowActivatedArgs args)
        {
            TreeIter it;

            _tv.Selection.GetSelected(out it);
            object ob = _store.GetValue(it, 1);

            if (ob is ValueKey)
            {
                ValueKeyInfo info = new ValueKeyInfo(ob as ValueKey);
                info.Show();
            }
            else if (ob is NodeKey)
            {
                NodeKeyInfo info = new NodeKeyInfo(ob as NodeKey);
                info.Show();
            }
            else
            {
                throw new Exception("Don't know type: " + ob.GetType().ToString());
            }
        }
예제 #2
0
        void HandleRowActivated(object o, RowActivatedArgs args)
        {
            TreeIter it;
            _tv.Selection.GetSelected(out it);
            object ob = _store.GetValue(it, 1);

            if (ob is ValueKey)
            {
                ValueKeyInfo info = new ValueKeyInfo(ob as ValueKey);
                info.Show();
            }
            else if (ob is NodeKey)
            {
                NodeKeyInfo info = new NodeKeyInfo(ob as NodeKey);
                info.Show();
            }
            else
                throw new Exception("Don't know type: " + ob.GetType().ToString());
        }