private void AddLevel_Finished(AddLevelEventArgs a) { LevelDescription template = LevelLoader.GetTestLevel(); template.Name = a.Name; LevelManager.WriteLevel(a.Name, template); ListModel.AppendValues(a.Name); }
private void DoneButton_Clicked(object sender, EventArgs e) { if (NameInput.Text.Length == 0) { MessageDialog md = new MessageDialog(this, DialogFlags.Modal, MessageType.Error, ButtonsType.Ok, "Zero length name"); md.Run(); md.Destroy(); return; } if (null != Finished) { AddLevelEventArgs a = new AddLevelEventArgs(); a.Name = NameInput.Text; Finished(a); } this.Destroy(); return; }