Esempio n. 1
0
        private static void OnScrollOffsetChanged(DependencyObject obj, DependencyPropertyChangedEventArgs args)
        {
            SpinerWindow myObj = obj as SpinerWindow;

            if (myObj != null)
            {
                myObj.scroll.ScrollToHorizontalOffset(myObj.ScrollOffset);
            }
        }
Esempio n. 2
0
        private void Worker_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e)
        {
            if (String.IsNullOrEmpty(bgPath))
            {
                return;
            }
            List <String> data = e.Result as List <String>;
            SpinerWindow  wd   = new SpinerWindow(logoPath, bgPath, data, imgSize);

            wd.Show();
            this.Close();
        }