private void bRunSingle_Click(object sender, System.EventArgs e) { if (!EnsureConditions()) { return; } RandomTilesList tileset = cmbTileSet.SelectedItem as RandomTilesList; HuesCollection hues = cmbHues.SelectedItem as HuesCollection; TheBox.BoxServer.RandomItem msg = null;; if (rNoHue.Checked) { msg = new TheBox.BoxServer.RandomItem(tileset); } else if (rSelectedHue.Checked) { msg = new TheBox.BoxServer.RandomItem(tileset, Pandora.Profile.Hues.SelectedIndex); } else { msg = new TheBox.BoxServer.RandomItem(tileset, hues); } Pandora.BoxConnection.SendToServer(msg); }
private void bRunSingle_Click(object sender, System.EventArgs e) { if ( ! EnsureConditions() ) return; RandomTilesList tileset = cmbTileSet.SelectedItem as RandomTilesList; HuesCollection hues = cmbHues.SelectedItem as HuesCollection; TheBox.BoxServer.RandomItem msg = null;; if ( rNoHue.Checked ) { msg = new TheBox.BoxServer.RandomItem( tileset ); } else if ( rSelectedHue.Checked ) { msg = new TheBox.BoxServer.RandomItem( tileset, Pandora.Profile.Hues.SelectedIndex ); } else { msg = new TheBox.BoxServer.RandomItem( tileset, hues ); } Pandora.BoxConnection.SendToServer(msg); }