private void BorderAre_OnPreviewMouseLeftButtonDown(object sender, MouseButtonEventArgs e)
        {
            if (ControlArea == null)
            {
                ControlArea = new UserControlArea();
            }


            ContentControlManageData.Content = ControlArea;
        }
Exemple #2
0
        public MonsterInfo(UserControlArea controlArea, IMonster monster)
        {
            this.monster     = monster;
            this.controlArea = controlArea;
            InitializeComponent();

            Title = monster.Name;

            timer          = new DispatcherTimer();
            timer.Tick    += new EventHandler(timer_Tick);
            timer.Interval = TimeSpan.FromMilliseconds(200);
            timer.Start();
        }