public FormulasVM()
        {
            //General setup
            Formulas           = new ObservableCollection <Formula>(FormulaQueries.GetFormulas());
            InactiveFormulas   = new ObservableCollection <Formula>(FormulaQueries.GetFormulasInactivas());
            NewFormulaProducts = new ObservableCollection <formulaProduct>(ProductQueries.GetFormulaProducts());

            NuevaFormulaCommand          = new NewFormulaCommand(this);
            AddDetalleNewFormulaDataGrid = new NewFormulaDetalleDatagridCommand(this);
            newFormulaAddInstruction     = new NewFormulaAddInstructionCommand(this);
            editDetalleCommand           = new EditDetalleCommand(this);
            newDetalleCommand            = new NewDetalleCommand(this);
            newInstructionCommand        = new NewInstructionCommand(this);
            editFormulacommand           = new EditFormulaCommand(this);
            Transformations = new ObservableCollection <Formula>(FormulaQueries.GetFormulasTransformaciones());


            UnidadCreada = new ObservableCollection <string> {
                "galones", "kilos"
            };
            FormasFarmaceuticas = new ObservableCollection <string> {
                "jarabe", "tableta", "pildora", "suspension"
            };


            //new formula modal window setup
            NewFormula = new Formula();
            NewFormulaSelectedProduct = new formulaProduct();
            NewFormulaNewDetalle      = new DetalleFormula();
            NewFormulaNewInstruction  = new ProcedimientoDetalle();

            SelectedFormula = Formulas[0];
        }