コード例 #1
0
 public JahreswechselView(HauptFenster mw)
 {
     ConWrLi("---- -xx- JahreswechselView (HauptFenster mw)");
     _mw      = mw;
     _wertpap = (Model.CollWertpapiere)Resources["wertpapiereXXX"];
     InitializeComponent();
 }
コード例 #2
0
 public GridKlick(HauptFenster mw1, string isi1, int nro1, int nwp1)
 {
     ConWrLi("---- -xx- Konstruktor GridKlick(HauptFenster mw1, string isi1, int nro1, int nwp1)");
     InitializeComponent();
     mw  = mw1;
     isi = isi1;
     nro = nro1;
     nwp = nwp1;
 }
コード例 #3
0
 public SplashWindow(HauptFenster mw)
 {
     _mw = mw;
     InitializeComponent();
     showDelegate = new ShowDelegate(this.showText);
     hideDelegate = new HideDelegate(this.hideText);
     Showboard    = this.Resources["showStoryBoard"] as Storyboard;
     Hideboard    = this.Resources["HideStoryBoard"] as Storyboard;
 }
コード例 #4
0
 public SynUrlVerwalten(HauptFenster mw)
 {
     ConWrLi("---- -xx- SynUrlVerwalten");
     _mw             = mw;
     _wertpapsynchro = (CollWertpapSynchro)mw.Resources["wertpapsynchro"];
     InitializeComponent();
     //getxp = new GetFromXpath();
     wb1.ScriptErrorsSuppressed = true;
     wb1.ScrollBarsEnabled      = true;
 }
コード例 #5
0
 public Zahlungen(HauptFenster mw)
 {
     ConWrLi("---- -81- Zahlungen (HauptFenster mw)");
     _mw = mw;
     InitializeComponent();
     ConWrLi("---- -82- Zahlungen nach InitializeComponent()");
     _zahlungen    = (Model.CollZahlungen)Resources["zahlungen"];
     _kontoumsätze = (Model.CollKontoumsätze)mw.Resources["kontoumsätzeXXX"];
     ConWrLi("---- -83- Zahlungen nach Kto Ums holen");
 }
コード例 #6
0
 public Kategorien(View.HauptFenster mw)
 {
     _mw = mw;
     InitializeComponent();
     OCK  = new OCKategorien();
     lika = OCK.maches();
     kat  = lika[0] as Kategorie;
     base.CommandBindings.Add(
         new CommandBinding(
             ApplicationCommands.Undo,
             (sender, e) => // Execute
     {
         e.Handled     = true;
         kat.IsChecked = false;
         treeKategorie.Focus();
     },
             (sender, e) => // CanExecute
     {
         e.Handled    = true;
         e.CanExecute = (kat.IsChecked != false);
     }));
 }
コード例 #7
0
 public HistorieGesamt(HauptFenster mw)
 {
     InitializeComponent();
     _mw = mw;
 }
コード例 #8
0
        // public void Ausführen(Konten_Knotenliste_Erstellen mw) {
        //     _mw = mw;
        //     XPathVerwaltenAusführen();                         // liUrlTeile und liUrlIndices erstellen.
        // }
        private void XPathVerwaltenAusführen()
        {
            // Liste URLTeile.
            // Zu jedem WP zusätzlich n Einträge mit Verweis in die URL-Teile-Tabelle.
            // XPath kommt aus: node = doc.GetElementbyId(uniqueId);
            HauptFenster _mw    = GlobalRef.g_mw;
            string       strUrl = null;

            string[] separators = { "/" };
            string[] strsplit;
            int      n;

            liUrlTeile.Clear();
            liWertpaps = new List <Wertpap>();
            string strIndices;

            _wertpapsynchro = (CollWertpapSynchro)Resources["wertpapsynchro"];
            foreach (WertpapSynchro wps in _wertpapsynchro) // Loop Wertpapiere
            {
                strUrl = wps.WPSURL;                        // https://www.finanzen.net/fonds/sharperatio/spsw_-_whc_global_discovery
                Console.WriteLine("{0,-120} ", strUrl);
                if (strUrl.Length < 31)
                {
                    Console.WriteLine("URL-Länge < 31 !!!");
                    continue;
                }
                strIndices = "";
                strsplit   = strUrl.Split(separators, StringSplitOptions.None);
                foreach (string teil in strsplit)                  // Loop UrlTeile
                {
                    n = SucheInUrl(teil);
                    if (n >= 0)
                    {
                        Console.Write("Drin:{0} {1} ", n, teil);
                    }
                    else
                    {
                        urlteil = new UrlTeil {
                            Index = liUrlTeile.Count.ToString(),
                            Teil  = teil,
                            Color = "3"
                        };
                        liUrlTeile.Add(urlteil);
                        n = SucheInUrl(teil);
                        Console.Write("Add:{0} {1} ", n, teil);
                    }
                    strIndices += n.ToString() + "/";
                }
                wertpap = new Wertpap {
                    WPISIN       = wps.WPSISIN,
                    WPName       = wps.WPSName,
                    WPType       = wps.WPSType.ToString(),
                    WPURL        = strUrl,
                    WPXPathKurs  = wps.WPXPathKurs,
                    WPXPathAend  = wps.WPXPathAend,
                    WPXPathZeit  = wps.WPXPathZeit,
                    WPXPathSharp = wps.WPXPathSharp,
                    WPURLIndices = strIndices,
                    WPColor      = "1"
                };
                liWertpaps.Add(wertpap);
            }
            Console.WriteLine();
            dgvUrls.ItemsSource = liWertpaps;
            Console.WriteLine("liWertpaps an dgvUrls gebunden: {0}", liWertpaps.Count);
            dgvUrls.EnableRowVirtualization = false;
            dgvUrls.UpdateLayout();

            dgvTeile.ItemsSource = liUrlTeile;
            Console.WriteLine("liUrlTeile an dgvTeile gebunden: {0}", liUrlTeile.Count);
            dgvTeile.EnableRowVirtualization = false;
            dgvTeile.UpdateLayout();
        }