Example #1
0
        private void Start_Click(object sender, RoutedEventArgs e)
        {
            // check that settings matches UI
            Debug.Assert(settings.searchPatternAnd == searchPatternAndTB.Text);
            Debug.Assert(settings.searchPatternOr == searchPatternOrTB.Text);
            Debug.Assert(settings.excludePattern == excludePatternTB.Text);
            Debug.Assert(settings.fullScrn == fullScreenRB.IsChecked && settings.fullScrn != resizeRB.IsChecked);

            try
            {
                DisplayImage dispImg = new DisplayImage(settings, Unminimize);

                if (settings.fullScrn)
                {
                    dispImg.Show();
                }
                else
                {
                    ResizeWindow resize = new ResizeWindow(dispImg);
                    resize.Show();
                }
                WindowState = WindowState.Minimized;
            }
            catch
            {
                System.Windows.MessageBox.Show("No matching files were found :(\n please enter another search");
            }
        }
Example #2
0
        public ResizeWindow(DisplayImage in_dispImg)
        {
            InitializeComponent();
            //WindowStyle = WindowStyle.None; // no border

            dispImg = in_dispImg;
        }