@Override
	public void actionPerformed(ActionEvent e) {
		Object src = e.getSource();
		if ( src == getAdviceDayDialog().getBtnClose() )
			adviceDayDialog.dispose();
		
		if  ( src == getAdviceDayDialog().getBtnNextAdvice() ){
			currAdvace++;
			if ( currAdvace > countAdvaces )
				currAdvace = 1;
			changeAdvice();
		}
		
		if ( src == getAdviceDayDialog().getBtnPrevAdvice() ){
			currAdvace--;
			if ( currAdvace < 1 )
				currAdvace = countAdvaces;
			changeAdvice();
		}
		
		if ( src == getAdviceDayDialog().getChkBoxShowStart() ){
			if ( getAdviceDayDialog().getChkBoxShowStart().isSelected() )
				localProperties.put("advice.show", "true");
			else
				localProperties.put("advice.show", "false");
			try{
				localProperties.store(new FileOutputStream(INI_LOCAL_PATH), "");
			} catch (Exception ex) {
				Logger.getLogger(getClass().getName()).log(Level.WARNING, null, ex);
			} 
		}
	}