fCraft.ConfigGUI.MainForm.FillRankList C# (CSharp) Method

FillRankList() private static method

private static FillRankList ( [ box, string firstItem ) : void
box [
firstItem string
return void
        private static void FillRankList( [NotNull] ComboBox box, string firstItem )
        {
            if ( box == null )
                throw new ArgumentNullException( "box" );
            box.Items.Clear();
            box.Items.Add( firstItem );
            foreach ( Rank rank in RankManager.Ranks ) {
                box.Items.Add( ToComboBoxOption( rank ) );
            }
        }
MainForm