Example #1
0
        public MainWindowBak()
        {
            LogCenter logCenter = new LogCenter();

            this.Language           = System.Windows.Markup.XmlLanguage.GetLanguage(System.Threading.Thread.CurrentThread.CurrentUICulture.IetfLanguageTag);
            mSSqlRep                = new MSSqlRep();
            mSSqlRep.newLogMessage += logCenter.AddMessage;
            mSSqlRep.newLogMessage += scrollLogView;

            InitializeComponent();
            lst_log.ItemsSource = logCenter.records;

            logCenter.AddMessage("Репозитарий создан");
            cbx_ClientType.DataContext = mSSqlRep.DtClientsTypes.DefaultView;
            dtg_Clients.DataContext    = mSSqlRep.dt_clients.DefaultView;
            dtg_Accaunts.DataContext   = mSSqlRep.dt_Accaunts.DefaultView;


            //repository.Generate(15);
        }