Esempio n. 1
0
        public SeriesListForm(HauliDBHandler dbHandler)
        {
            InitializeComponent();

            // TODO: Complete member initialization
            this.dbHandler = dbHandler;

               // seuraList = new List<SeuraListLine>();

            seuraList = dbHandler.getSeuraList();

            idColumn.AspectGetter = delegate(object x) { return ((SeuraListLine)x).Id; };

            lyhenneColumn.AspectGetter = delegate(object x) { return ((SeuraListLine)x).Lyhenne; };
            lyhenneColumn.AspectPutter = delegate(object x, object newValue) { ((SeuraListLine)x).Lyhenne = newValue.ToString(); };

            kokoNimiColumn.AspectGetter = delegate(object x) { return ((SeuraListLine)x).KokoNimi; };
            kokoNimiColumn.AspectPutter = delegate(object x, object newValue) { ((SeuraListLine)x).KokoNimi = newValue.ToString(); };

            alueColumn.AspectGetter = delegate(object x) { return ((SeuraListLine)x).Alue; };
            alueColumn.AspectPutter = delegate(object x, object newValue) { ((SeuraListLine)x).Alue = newValue.ToString(); };

            buttonColumn.DisplayIndex = 4;
            buttonColumn.ImageGetter = delegate(object row)
            {
                    return 1;
            };
            buttonColumn.Tag = "buttonColumn";

            refresSeriesListView();
        }