private void CtrlExtButton_OnExtButtonClicked(object sender, RoutedEventArgs e)
        {
            CtrlCardBrowser cb = new CtrlCardBrowser();

            cb.Init(SearchResults);
            wndMainWindow.PresentContent(cb);
        }
예제 #2
0
        void PresentPendingCards(string CardGroupPath)
        {
            string[] paths = null;
            if (CardGroupPath == "[ALL]")
            {
                paths = Globals.GetPathOfEachPendingCard();
            }
            else
            {
                paths = Globals.GetPathOfEachPendingCard(CardGroupPath);
            }

            var             cards = Globals.GetListOfCards(paths);
            CtrlCardBrowser cb    = new CtrlCardBrowser();

            cb.Init(cards);
            wndMainWindow.PresentContent(cb);
        }
예제 #3
0
        void grdCards_Drop(object sender, DragEventArgs drg_event)
        {
            drg_event.Handled = true;


            // Check that the data being dragged is a set of folders
            if (drg_event.Data.GetDataPresent(DataFormats.FileDrop))
            {
                // Get an array with the filenames of the files being dragged
                string[]    paths = (string[])drg_event.Data.GetData(DataFormats.FileDrop);
                List <Card> cards = Globals.GetListOfCards(paths);

                CtrlCardBrowser cb = new CtrlCardBrowser();
                cb.Init(cards);

                wndMainWindow.PresentContent(cb);

                drg_event.Effects = DragDropEffects.Copy;
            }
            else
            {
                drg_event.Effects = DragDropEffects.None;
            }
        }