예제 #1
0
        private void BT_Import_Click(object sender, RoutedEventArgs e)
        {
            DG_ImportMMMORaid DG_ImportMMMORaid = new DG_ImportMMMORaid();

            DG_ImportMMMORaid.Closed += new EventHandler(DG_ImportMMMORaid_Closed);
            DG_ImportMMMORaid.Show();
        }
예제 #2
0
        void DG_ImportMMMORaid_Closed(object sender, EventArgs e)
        {
            DG_ImportMMMORaid DG_ImportMMMORaid = sender as DG_ImportMMMORaid;

            if (DG_ImportMMMORaid.DialogResult.GetValueOrDefault(false))
            {
                foreach (PlayerBuffSet theSet in DG_ImportMMMORaid.toAdds)
                {
                    if (theSet.BuffsToAdd.Keys.Count > 0)
                    {
                        ListBoxItem newAdd = new ListBoxItem();
                        newAdd.Content    = theSet.ToString();
                        newAdd.Background = new SolidColorBrush(theSet.Color);
                        newAdd.Background = new LinearGradientBrush(new GradientStopCollection()
                        {
                            new GradientStop()
                            {
                                Color = Colors.White, Offset = 0
                            },
                            new GradientStop()
                            {
                                Color = theSet.Color, Offset = 1
                            }
                        }, 0);
                        List_Classes.Items.Add(newAdd);
                        TheSets.Add(theSet);
                    }
                }
                // Verify we can add more people after this
                RaidSizeCheck();
            }
        }
 private void BT_Import_Click(object sender, RoutedEventArgs e)
 {
     DG_ImportMMMORaid DG_ImportMMMORaid = new DG_ImportMMMORaid();
     DG_ImportMMMORaid.Closed += new EventHandler(DG_ImportMMMORaid_Closed);
     DG_ImportMMMORaid.Show();
 }