Exemplo n.º 1
0
        void controller_CustomizeWindowStatusMessages(object sender,
                                                      CustomizeWindowStatusMessagesEventArgs e)
        {
            string aux = string.Empty;

            emp = Application.CreateObjectSpace().FindObject <Empresa>(null);

            if (emp != null && emp.Compania != null)
            {
                e.StatusMessages.Add(emp.Compania.Nombre);
                if (emp.ConCfdi)
                {
                    aux = "CFDI";
                }
                else
                {
                    aux = "CBB";
                }
            }
            e.StatusMessages.Add(aux);


            if (emp != null && emp.ConCfdi)
            {
                aux = NegocioAdmin.Acabarse(Application.CreateObjectSpace());
                if (!string.IsNullOrEmpty(aux))
                {
                    e.StatusMessages.Add(aux);
                }
            }


            // Viene null Connection
            // e.StatusMessages.Add(Window.Application.Connection.Database);
            IObjectSpace obsp = Application.CreateObjectSpace();

            e.StatusMessages.Add(obsp.Database);
        }