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