private void DoAddGlossary() { GlossaryTableCellModel glossaryItem = new GlossaryTableCellModel (); glossaryItem.GlossaryText = this.GlossaryItem; glossaryItem.GlossaryDetail = this.DetailContentText; if (DetailContentText.Length >= 500) { //show alert view this.AnAlertView.ShowAlertMessage("Glossary content error","the length of the description should be less than 500"); return; } var message = new GlossaryListMessage (this,glossaryItem); this.ModelMessenger.Publish <GlossaryListMessage>(message); this.Close(this); }
private void ProcessGlossaryListMessage(GlossaryListMessage aMessage) { this.AddAGlossaryEntry (aMessage.NewGlossary); return; }