public MessageBoxInformation AktualizujZPliku() { return(new MessageBoxInformation(Strings.Str_MsgTitle, Strings.Str_MsgText) { YesHandler = () => QueryContextInformation.Create <NamedStream>(importFile) }); }
public QueryContextInformation QueryContextExample2() { return(QueryContextInformation.Create <WParams>(args => { using (var trans = Kontrahent.Session.Logout(true)) { Kontrahent.Adres.Telefon = args.NowyTelefon; Kontrahent.Adres.Faks = args.NowyFax; trans.CommitUI(); } return null; })); }
public QueryContextInformation QueryContextExample() { return(QueryContextInformation.Create <WParams>(args => new MessageBoxInformation { Text = "Dane zostały zmienione. Potwierdzasz zapis ?", OKHandler = () => { using (var trans = Kontrahent.Session.Logout(true)) { Kontrahent.Adres.Telefon = args.NowyTelefon; Kontrahent.Adres.Faks = args.NowyFax; trans.CommitUI(); } return null; }, CancelHandler = () => null, IsCancelVisible = true, })); }
/// <summary> /// Główna metoda import - wywoływana przez enova do przeprowadzenia wszystkich operacji /// </summary> public override object CreateReader10() { // żądanie odpytania o plik importowy i przekazanie sterowania do metody "Import" po wybraniu pliku return(QueryContextInformation.Create <NamedStream>(Import)); }