private void initVariables() { try { if (getuserPrivilegeStatus() == 1) { //user is only a viewer listOption = 6; } StockGroupDB3.fillGroupValueCombo(cmbGroup1Select, 1); StockGroupDB3.fillGroupValueCombo(cmbGroup2Select, 2); StockGroupDB3.fillGroupValueCombo(cmbGroup3Select, 3); CatalogueValueDB.fillCatalogValueCombo(cmbUnit, "StockUnit"); //fillTypeCombo(cmbGroup); userString = Login.userLoggedInName + Main.delimiter1 + Login.userLoggedIn + Main.delimiter1 + Main.delimiter2; setButtonVisibility("init"); } catch (Exception) { } }