private void SetupRadioButtons()

in DiagManager/fmDiagManager.cs [168:200]


        private void SetupRadioButtons<T> (GroupBox gb,  List<T> mylist)
        {
            Int32 Current_Y = Initial_Y;
            foreach (T item in mylist)
            {
                RadioButton button = new RadioButton();
                DiagItem evt = item as DiagItem;

                Feature ft = item as Feature;

                //we currently don't support public verioin of AS
                if (ft !=null && ft.Name=="AS" && DiagRuntime.IsPublicVersion == true)
                {
                    continue;
                }

                //if this version is not enabled, don't display, for example 2005 is no longer supported
                Version ver = evt as Version;
                if (ver != null && ver.Enabled == false)
                {
                    continue;

                }
                button.Text = evt.FriendlyName;
                button.Width = 120;
                button.Tag = item;
                button.Location = new System.Drawing.Point(X, Current_Y);
                gb.Controls.Add(button);
                Current_Y += Y_Interval;

            }

        }