Exemplo n.º 1
0
 protected void OnStageSelected(Stage item)
 {
     if (StageSelected != null)
     {
         StageSelected(this, item);
     }
 }
Exemplo n.º 2
0
        private void ToggleEnableAssignBarns(Stage stage)
        {
            if (CurrentStageSelected != stage && !ucAssignBarns.BarnsAssigned.Any())
            {
                CurrentStageSelected = stage;
                ucAssignBarns.Enabled = true;
            }
            else if (CurrentStageSelected != stage && ucAssignBarns.BarnsAssigned.Any())
            {
                MessageBoxDisplayService
                    .ShowConfirmationDialog(
                        "Si cambia el estado del batch perdera todos las asignaciones de galpones cargadas en este formulario. Desea Continuar?",
                        "Cambiar Estado",
                        () =>
                        {
                            ucAssignBarns.ClearAsignations();

                            CurrentStageSelected = stage;
                        });
            }
            else if (stage == null && !ucAssignBarns.BarnsAssigned.Any())
            {
                ucAssignBarns.Enabled = false;
            }
        }
Exemplo n.º 3
0
 private void StageSelected(object sender, Stage stage)
 {
     ToggleEnableAssignBarns(stage);
 }