Example #1
0
        void SetAvailableAddTypes()
        {
            string prefix = typeof(SimMemoryType).Namespace + "." + typeof(SimMemoryType).Name + ".";

            SimMemoryType[] sts = Ngbh.AllowedMemoryTypes(st);
            foreach (SimMemoryType mst in sts)
            {
                cbadd.Items.Add(new Data.Alias((uint)mst, SimPe.Localization.GetString(prefix + mst.ToString()), "{name}"));
            }
            if (cbadd.Items.Count > 0)
            {
                cbadd.SelectedIndex = 0;
            }
        }