private void cmbGroups_SelectedIndexChanged(object sender, System.EventArgs e) { SelectedGroup = cmbGroups.SelectedItem as HuesCollection; }
private void bNew_Click(object sender, System.EventArgs e) { HuesCollection c = new HuesCollection(); c.Name = txNew.Text; txNew.Text = ""; c.Hues.Add( 1 ); m_Groups.Groups.Add( c ); cmbGroups.Items.Add( c ); cmbGroups.SelectedItem = c; }
/// <summary> /// Creates the message that will perform the brush using a random hue /// </summary> /// <param name="tileset">The tileset to choose items from</param> /// <param name="hues">The hues list to choose hues from</param> /// <param name="fill">The percentage of the area to fill</param> /// <returns>A message that can be sent to the server</returns> public RandomBrushMessage CreateMessage(RandomTilesList tileset, HuesCollection hues, double fill) { return(CreateMessage(tileset, hues.Hues, fill)); }
/// <summary> /// Creates the message that will perform the brush using a random hue /// </summary> /// <param name="tileset">The tileset to choose items from</param> /// <param name="hues">The hues list to choose hues from</param> /// <param name="fill">The percentage of the area to fill</param> /// <returns>A message that can be sent to the server</returns> public RandomBrushMessage CreateMessage( RandomTilesList tileset, HuesCollection hues, double fill ) { return CreateMessage( tileset, hues.Hues, fill ); }
public RandomItem( RandomTilesList tileset, HuesCollection hues ) : this() { m_Hues.AddRange( hues.Hues ); m_Items.AddRange( tileset.Tiles ); }