Exemple #1
0
        public void Activity_ListLoader(object[,] li, ListView listView)
        {
            List <string> szolista = db.langWordList(db.languageAsker());
            int           i        = 0;

            List <ActivityItems> items = new List <ActivityItems>();
            int hossz = li.Length / 7;

            while (i != hossz)
            {
                string allapot = "";
                if (li[i, 2].ToString() == "1")
                {
                    allapot = szolista[5];
                }
                else if (li[i, 2].ToString() == "0")
                {
                    allapot = szolista[4];
                }
                items.Add(new ActivityItems()
                {
                    col1 = li[i, 0].ToString(), col2 = li[i, 1].ToString(), col3 = allapot, col4 = li[i, 3].ToString(), col5 = li[i, 4].ToString(), col6 = li[i, 5].ToString(), col7 = li[i, 6].ToString()
                });
                i++;
            }
            listView.ItemsSource = items;
        }
Exemple #2
0
        public admin(Grid mainGrid)
        {
            InitializeComponent();
            this.mainGrid = mainGrid;
            session.admin_execution_popper(admin_execution_btn, session.UserData[7], session.UserData[4]);
            listLoader.userListLoader(lv_admin_userlist);
            listLoader.szallitokListLoader(listView_szallitok);
            listLoader.adminMeasureLoader(db.admin_listviewLoader(tbx_cikk_tab3.Text, tbx_charge_tab3.Text, tbx_kw_tab3.Text, tbx_beerk_tab3.Text), lv_admin);
            activityLister();

            try
            {
                legendChanger_Admin(db.langWordList(db.languageAsker()));
            }
            catch (Exception)
            {
            }
        }
 public testMain(Grid grid)
 {
     InitializeComponent();
     //session.pageLoadByAuthority(mainpageToAdmin, save_btn2, tab3, tab2, session.UserData[7], session.UserData[4]);
     legendChanger_Mainpage(db.langWordList(db.languageAsker()));
     searched_cikk_listView_loader();
     onlyViewModeInputClose();
     szallitokListazo();
     welcomeSign();
 }
Exemple #4
0
 public registrationpage(Grid mainGrid)
 {
     InitializeComponent();
     this.mainGrid = mainGrid;
     legendChanger_Registration(db.langWordList(db.languageAsker()));
 }
        public welcomepage(Grid mainGrid)
        {
            InitializeComponent();
            this.mainGrid = mainGrid;
            db.lastDbOpenUrl();
            db.dbConncetionValider();
            connectionValider();

            try
            {
                legendChanger_Welcome(db.langWordList(db.languageAsker()));
            }
            catch (Exception)
            {
                MessageBox.Show("Adja meg a szójegyzék helyét. (xls)");
                ex.langListRead();
                legendChanger_Welcome(db.langWordList(db.languageAsker()));
            }
        }