Beispiel #1
0
        public Purchase(PurchaseAdministrator admin, BoosterInfo infos)
        {
            InitializeComponent();
            LoadStyle();
            this.MaxHeight = SystemParameters.MaximizedPrimaryScreenHeight;

            _admin = admin;
            _admin.PurchaseItem += _admin_PurchaseItem;

            this.FontFamily = FormExecution.AppDesignConfig.Font;
            this.MouseDown += Window_MouseDown;

            _infos = infos;

            btn_next.IsEnabled  = false;
            btn_all.IsEnabled   = false;
            btn_next.Visibility = Visibility.Hidden;
            btn_all.Visibility  = Visibility.Hidden;

            btn_next.MouseLeftButtonDown += Btn_next_MouseLeftButtonDown;
            btn_all.MouseLeftButtonDown  += Btn_all_MouseLeftButtonDown;

            img_card.MouseEnter        += Img_card_MouseEnter;
            img_card.MouseLeave        += Img_card_MouseLeave;
            img_card.PreviewMouseWheel += Img_card_PreviewMouseWheel;
            cardinfos_popup.MouseEnter += Cardinfos_popup_MouseEnter;
        }
Beispiel #2
0
        public PurchaseAlternateWindow(PurchaseAdministrator admin, BoosterInfo infos)
        {
            InitializeComponent();
            LoadStyle();
            this.MaxHeight = SystemParameters.MaximizedPrimaryScreenHeight;

            this.label_booster_name.Content = infos.PurchaseTag + " : " + infos.Name;

            _admin = admin;
            _infos = infos;

            this.MouseDown += Window_MouseDown;
            this.Closed    += PurchaseAlternateWindow_Closed;

            _admin.PurchaseItem += _admin_PurchaseItem;
        }