示例#1
0
        private uint Choice(uint id, ChoiceWindow.eType type)
        {
            var dlg = new ChoiceWindow();

            dlg.ID   = id;
            dlg.Type = type;
            dlg.ShowDialog();
            return(dlg.ID);
        }
示例#2
0
        private void ItemChoice(Item item, ChoiceWindow.eType type)
        {
            if (item == null)
            {
                return;
            }
            ChoiceWindow dlg = new ChoiceWindow();

            dlg.Type = type;
            dlg.ID   = item.ID;
            dlg.ShowDialog();

            if (dlg.ID == item.ID)
            {
                return;
            }

            item.Count = 0;
            item.ID    = dlg.ID;
            item.Count = 1;
        }