Exemplo n.º 1
0
        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);
                }
            }
        }
Exemplo n.º 2
0
 private void OnMenuItemSel(object sender, MenuItemClickedArgs e)
 {
     GameApp.RemoveScreen(this);
 }
Exemplo n.º 3
0
 private void OnMenuItemSel(object sender, MenuItemClickedArgs e)
 {
     GameApp.GetGurrentScreen().RemoveText(this);
 }