コード例 #1
0
        private void DailyQuestWindow_Loaded(object sender, RoutedEventArgs e)
        {
            if (FormExecution.ClientConfig.DoTutoQuests)
            {
                BCA_TutoPopup tutopopup = new BCA_TutoPopup();
                maingrid.Children.Add(tutopopup);
                tutopopup.HorizontalAlignment        = HorizontalAlignment.Center;
                tutopopup.VerticalAlignment          = VerticalAlignment.Center;
                tutopopup.tuto_popup.IsOpen          = true;
                tutopopup.tuto_popup.Placement       = System.Windows.Controls.Primitives.PlacementMode.Center;
                tutopopup.tuto_popup.PlacementTarget = maingrid;
                tutopopup.SetText(StartDisclaimer.QuestsTutorial);
                tutopopup.tuto_popup.MaxWidth = FormExecution.GetChat().Width - 200;
                tutopopup.btnNext.Visibility  = Visibility.Hidden;
                tutopopup.btnSkip.ButtonText  = "Fin !";
                tutopopup.btnSkip.Update();

                tutopopup.SkipTuto += SkipTutorial;
                tutopopup.NextStep += Tutopopup_NextStep;
            }
        }
コード例 #2
0
        public void Flash()
        {
            WindowInteropHelper wih = new WindowInteropHelper(FormExecution.GetChat());

            FlashWindow(wih.Handle, true);
        }