public void EditAdjective(Adjective adj) { edited = adj; if (adj == null) { this.eRoot.Text = ""; this.eRootHigher.Text = ""; this.eRootHighest.Text = ""; this.checkConstant.Checked = false; this.checkOnlyEqualLevel.Checked = false; } else { RefreshFields(); } }
private void SetEdited(Panel targetPanel, Adjective adj, GrammaticalGender genre) { foreach (Control ctrl in targetPanel.Controls) { if (!(ctrl is ControlAdjectiveCaseEdit)) continue; ControlAdjectiveCaseEdit edit = ctrl as ControlAdjectiveCaseEdit; if (adj == null) edit.Value = ""; else { string form = AdjectiveDecliner.Decliner.MakeWord( adj, genre, edit.InflectionCase, edit.DecliantionNumber, edit.Level); edit.Value = form; } } }
private void RandomAdjective() { this.adj = AdjectiveCollection.Collection.GetRandomAdjective(); }