public override string PreOrder() { PreOrder(Root); string aux = OrderPath.ToString(); OrderPath.Clear(); return(aux); }
protected override void WndProc(ref Message m) { if (m.Msg == WM_HOTKEY) { string text = Clipboard.GetText(); OrderPath orderPath = new OrderPath(text); OfferPath offerPath = new OfferPath(text); string path = null; try { try { path = orderPath.CanonicalPath(); } catch (DirectoryNotFoundException) { } try { path = offerPath.CanonicalPath(); } catch (DirectoryNotFoundException) { } if (path != null && path != "") { Process.Start(path); } else { MessageBox.Show("Es konnte kein Ordner ermittelt werden!", text); } } catch (Exception ex) { MessageBox.Show(ex.Message, "Fehler"); } } base.WndProc(ref m); }