コード例 #1
0
 public MessageBoxInformation AktualizujZPliku()
 {
     return(new MessageBoxInformation(Strings.Str_MsgTitle, Strings.Str_MsgText)
     {
         YesHandler = () => QueryContextInformation.Create <NamedStream>(importFile)
     });
 }
コード例 #2
0
ファイル: ExampleWorker.cs プロジェクト: tschabowski/Examples
 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;
     }));
 }
コード例 #3
0
ファイル: ExampleWorker.cs プロジェクト: tschabowski/Examples
 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,
     }));
 }
コード例 #4
0
 /// <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));
 }