ScoobyRom.ChecksumWindow.Init C# (CSharp) Method

Init() private method

private Init ( ) : void
return void
        void Init()
        {
            // index, (start, end, tableSum), icon, calcSum
            store = new ListStore (typeof(int), typeof(int), typeof(int), typeof(int), typeof(Gdk.Pixbuf), typeof(int));

            treeviewCSums.RulesHint = true;
            treeviewCSums.Model = store;

            cellRendererText = new CellRendererText ();
            Pango.FontDescription fontDesc = new Pango.FontDescription ();
            fontDesc.Family = MainClass.MonospaceFont;

            cellRendererText.FontDesc = fontDesc;

            cellRendererPixbuf = new CellRendererPixbuf ();

            AddColumn (new TreeViewColumn ("#", cellRendererText, "text", ColNr.Index), ColNr.Index);

            AddColumn (AddHexColumn ("Start", ColNr.Start), ColNr.Start);
            AddColumn (AddHexColumn ("Last", ColNr.End), ColNr.End);
            AddColumn (AddHexColumn ("Checksum", ColNr.SumTable), ColNr.SumTable);

            AddColumn (new TreeViewColumn (null, cellRendererPixbuf, "pixbuf", ColNr.Icon), ColNr.Icon);

            AddColumn (AddHexColumn ("Calculated", ColNr.SumCalc), ColNr.SumCalc);

            InitIcons ();
        }