示例#1
0
        public MainWindow()
        {
            information = new InformationProp();
            //Load Interface
            mwh = new MainWindowhelper();
            mwh.SetWindow(this);
            InitializeComponent();
            HideStartContent();
            text_on_image = new List <LabelHelper>();

            //Initialize Scroller
            cnt_scrollviewer.ScrollChanged             += Oncnt_scrollviewerScrollChanged;
            cnt_scrollviewer.MouseLeftButtonUp         += OnMouseRightButtonUp;
            cnt_scrollviewer.PreviewMouseRightButtonUp += OnMouseRightButtonUp;
            cnt_scrollviewer.PreviewMouseWheel         += OnPreviewMouseWheel;

            cnt_scrollviewer.PreviewMouseRightButtonDown += OnMouseRightButtonDown;
            cnt_scrollviewer.MouseMove += OnMouseMove;

            //Initialize Label Creator
            cnt_image.PreviewMouseLeftButtonDown += ImageLeftMosueButtonDown;
            cnt_image.PreviewMouseLeftButtonUp   += ImageLeftMosueButtonUp;
            cnt_image.MouseLeftButtonUp          += ImageLeftMosueButtonUp;

            cnt_grd_parent.PreviewMouseMove += Label_OnPreviewMouseMove;

            cnt_slider.ValueChanged += OnSliderValueChanged;

            //Initialize Notification Manager
            notificationManager = new NotificationManager();

            //Get all available fonts
            GetFonts();
            StartAnimationofFadeText();
        }
示例#2
0
        public MainWindow()
        {
            InitializeComponent();
            this.mainWindowHelper = MainWindowHelper.Instance;

            //Create a timer with interval of 4 secs
            dispatcherTimer          = new DispatcherTimer();
            dispatcherTimer.Tick    += new EventHandler(DispatcherTimer_Tick);
            dispatcherTimer.Interval = new TimeSpan(0, 0, 4);
        }