Click here to Skip to main content
15,893,644 members
Articles / Programming Languages / C#

NextUI Meter Panel

Rate me:
Please Sign up or sign in to vote.
4.85/5 (15 votes)
23 Oct 2007CPOL3 min read 41.3K   3K   61  
A speedometer like control
// *****************************************************************************
// 
//  (c) NextWave Software  2007
//  All rights reserved. The software and associated documentation 
//  supplied hereunder are the proprietary information of NextWave Software 
//	Limited, Kuala Lumpur , Malaysia and are supplied subject to 
//	licence terms.
// 
//  Version 0.9 	www.nextwavesoft.com
// *****************************************************************************
using System;
using System.Collections;

namespace NextUI.Collection
{
    public delegate void OnInsert(object sender, int index);
    public delegate void OnSet(object sender, int index);
    public delegate void OnRemove(object sender, int index);
    public class BaseStack : CollectionBase
    {
        public event OnInsert Insert;
        public event OnRemove Delete;
        public event OnSet Set;


        protected override void OnInsertComplete(int index, object value)
        {
            if (Insert != null)
                Insert(value, index);
        }

        protected override void OnRemoveComplete(int index, object value)
        {
            if (Delete != null)
                Delete(value, index);
        }

        protected override void OnSetComplete(int index, object oldValue, object newValue)
        {
            if (Set != null)
                Set(newValue, index);
        }

        protected override void OnValidate(Object value)
        {
        }

    }
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer (Senior) www.nextwavesoft.com
United States United States
Senior Software Developer at nextwavesoft

Comments and Discussions