private void CtrlExtButton_OnExtButtonClicked(object sender, RoutedEventArgs e) { CtrlCardBrowser cb = new CtrlCardBrowser(); cb.Init(SearchResults); wndMainWindow.PresentContent(cb); }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.txtSearch = ((System.Windows.Controls.TextBox)(target)); #line 20 "..\..\..\..\Controls\CtrlSearch.xaml" this.txtSearch.KeyDown += new System.Windows.Input.KeyEventHandler(this.txtSearch_KeyDown); #line default #line hidden return; case 2: this.btnSearch = ((RememberIt.CtrlImageButton)(target)); return; case 3: this.cmbCardGroups = ((System.Windows.Controls.ComboBox)(target)); return; case 4: this.ctrlCardBrowser = ((RememberIt.CtrlCardBrowser)(target)); return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.ctrlCardBrowser = ((RememberIt.CtrlCardBrowser)(target)); return; } this._contentLoaded = true; }
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); }
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; } }