Esempio n. 1
0
        private void AddButton_Click(object sender, System.Windows.RoutedEventArgs e)
        {
            EnterId EnterId = new EnterId();

            EnterId.Closed += new EventHandler(EnterId_Closed);
            EnterId.Show();
        }
Esempio n. 2
0
        void EnterId_Closed(object sender, EventArgs e)
        {
            EnterId EnterId = sender as EnterId;

            if (EnterId.DialogResult.GetValueOrDefault(false))
            {
                //_changingItemCache = true;
                try
                {
                    //WebRequestWrapper.ResetFatalErrorIndicator();
                    if (EnterId.Values.Count > 0)
                    {
                        foreach (int i in EnterId.Values)
                        {
                            if (i > 0)
                            {
                                AddItemById(i, false, true, true && EnterId.CK_PTR.IsChecked.GetValueOrDefault(false));
                            }
                        }
                    }
                    else
                    {
                        int  itemId     = EnterId.Value;
                        bool useWowhead = EnterId.CK_WH.IsChecked.GetValueOrDefault(false);
                        if (itemId > 0)
                        {
                            AddItemById(EnterId.Value, !useWowhead, useWowhead, useWowhead && EnterId.CK_PTR.IsChecked.GetValueOrDefault(false));
                        }
                        else
                        {
                            AddItemByName(EnterId.ItemName, true /*!useWowhead*/, useWowhead, useWowhead && EnterId.CK_PTR.IsChecked.GetValueOrDefault(false));
                        }
                    }
                }
                finally
                {
                    //_changingItemCache = false;
                }
            }
        }
Esempio n. 3
0
 private void AddButton_Click(object sender, System.Windows.RoutedEventArgs e)
 {
     EnterId EnterId = new EnterId();
     EnterId.Closed += new EventHandler(EnterId_Closed);
     EnterId.Show();
 }