void createPreview() { newType = Random.Range(0, 7); if (!usingSprite) { newColor = colors[newType]; Preview.Create(newType, newColor); } else { newSprite = sprites[newType]; Preview.Create(newType, newSprite); } }
private void FrmPreview_Load(object sender, EventArgs e) { var setting = SettingController.Setting; controller = PreviewController.Create(setting); InitComboBoxData(setting); }