private void ButtonKindleToggle_Click(object sender, RoutedEventArgs e) { if (!kindleDisplayed) { kindleDisplayed = true; currentOnHold = currentDisplay; this.Dispatcher.Invoke(new Action(() => { this.Cursor = Cursors.Wait; })); SetDisplayContent(KindleLibrarian.KindleObjects(currentDisplay)); this.Dispatcher.Invoke(new Action(() => { this.Cursor = Cursors.Arrow; })); buttonKindleToggle.Background = ExTools.ConvertColorFromHexString(Constants.GreenClr); } else { kindleDisplayed = false; SetDisplayContent(currentOnHold); currentOnHold = null; buttonKindleToggle.Background = ExTools.ConvertColorFromHexString(Constants.RedClr); } }
private void KindleInit() { if (KindleLibrarian.DetectKindle()) { } else { } }
public LibWindow() { // HRT.XmlToLdb(); // GenXml(); LibInit(); KindleInit(); // TODO load in the background... LoadFicsToCache(); kindleFiles = KindleLibrarian.GetKindleList(); InitializeComponent(); SetDisplayContent(ficList); }