@Override
		public void actionPerformed(ActionEvent e) {
			if (e.getSource() == btnSave) {
				saveUpdateSubProcess();
				closedByOk = false;
			}
			if (e.getSource() == btnClose) {
				if (saveUpdateSubProcess()) {
					closedByOk = true;
					SubProcessCUDialog.this.setVisible(false);
				}
			}
			if (e.getSource() == btnCancel) {
				closedByOk = false;
				SubProcessCUDialog.this.setVisible(false);
			}

			if (e.getSource() == btnAllToAssigned) {
				Stock stock = (Stock) lstAllStocks.getSelectedValue();
				Service.assignSubProcessToStock(stock, subProcess);
				fillText(subProcess);
			}
			if (e.getSource() == btnAssignedToAll) {
				Stock stock = (Stock) lstAssignedStocks.getSelectedValue();
				Service.unsignSubProcessFromStock(stock, subProcess);
				fillText(subProcess);
			}
		}