private void OnMenuItemSel(object sender, MenuItemClickedArgs e) { if(e.Text == "Delete") GameApp.GetGurrentScreen().RemoveSprite(this); else { NameDialog dialog = new NameDialog(); System.Windows.Forms.DialogResult res = dialog.ShowDialog(); if (res == System.Windows.Forms.DialogResult.OK) { LibrarySprite libSprite = GenerateLibSprite(); libSprite.Name = dialog.NameValue; GameApp.GetGurrentScreen().AddLibrarySprite(libSprite); } } }
private void OnMenuItemSel(object sender, MenuItemClickedArgs e) { GameApp.RemoveScreen(this); }
private void OnMenuItemSel(object sender, MenuItemClickedArgs e) { GameApp.GetGurrentScreen().RemoveText(this); }