コード例 #1
0
ファイル: Program.cs プロジェクト: eldersontc/soft-erp
 static void Main()
 {
     ControllerApp.LoadConfiguration();
     Application.EnableVisualStyles();
     Application.SetCompatibleTextRenderingDefault(false);
     Application.Run(new FrmLogin());
 }
コード例 #2
0
        public static void ModificarEstandar(Object Object)
        {
            Accion        Accion      = (Accion)HelperNHibernate.GetEntityByID("Accion", "93C47EBE-51D9-4509-9CCE-76D2540B15FB");
            ItemAccion    Item        = Accion.ItemByName("Modificar");
            ControllerApp Controlador = (ControllerApp)Factory.InstanceObject(Item.Ensamblado.Ensamblado_, Item.Clase);

            Controlador.m_ObjectFlow = Object;
            Controlador.m_EntidadSF  = (EntidadSF)HelperNHibernate.GetEntityByID("EntidadSF", m_ItemContenedor.Panel.EntidadSF.ID);
            Controlador.Start();
            RefreshView();
        }
コード例 #3
0
        public static void CrearEstandar(Object Object)
        {
            Accion        Accion      = (Accion)HelperNHibernate.GetEntityByID("Accion", "7E35D25A-E84A-4689-8297-9E392D0EC187");
            ItemAccion    Item        = Accion.ItemByName("Crear");
            ControllerApp Controlador = (ControllerApp)Factory.InstanceObject(Item.Ensamblado.Ensamblado_, Item.Clase);

            Controlador.m_ObjectFlow = Object;
            Controlador.m_EntidadSF  = (EntidadSF)HelperNHibernate.GetEntityByID("EntidadSF", m_ItemContenedor.Panel.EntidadSF.ID);
            Controlador.Start();
            RefreshView();
        }
コード例 #4
0
        public static void ModificarPersonalizado(Object Object, Accion Accion)
        {
            ItemAccion Item = Accion.ItemByName("Modificar");

            if (Item != null)
            {
                ControllerApp Controlador = (ControllerApp)Factory.InstanceObject(Item.Ensamblado.Ensamblado_, Item.Clase);
                Controlador.m_ObjectFlow = Object;
                Controlador.m_EntidadSF  = (EntidadSF)HelperNHibernate.GetEntityByID("EntidadSF", m_ItemContenedor.Panel.EntidadSF.ID);
                Controlador.Start();
                RefreshView();
            }
        }
コード例 #5
0
 public void MostrarFormulario(String XML)
 {
     try
     {
         Parent        ObjectFlow    = (Parent)Factory.ToObject(XML, base.m_EntidadSF.EnsambladoClase.Ensamblado_);
         ControllerApp FrmObjectFlow = (ControllerApp)Factory.InstanceObject(base.m_EntidadSF.EnsambladoFormulario.Ensamblado_, base.m_EntidadSF.NombreFormulario);
         FrmObjectFlow.m_ObjectFlow = ObjectFlow;
         FrmObjectFlow.m_EntidadSF  = base.m_EntidadSF;
         FrmObjectFlow.Start();
     }
     catch (Exception)
     {
         throw;
     }
 }
コード例 #6
0
ファイル: MainMenu.cs プロジェクト: daviddw/Kinsky
        public void AwakeFromNib()
        {
            // create the controller for the application - this also creates the model
            iController = new ControllerApp(this, this, this, new Rect(NSScreen.MainScreen.VisibleFrame));

            // create the artwork cache for the application
            ArtworkCacheInstance.Instance = new ArtworkCache();

            // the model has now been created - listen to kompact mode changes
            ModelMain.Instance.Helper.KompactMode.EventValueChanged += KompactModeChanged;
            KompactModeChanged(this, EventArgs.Empty);

            // set up model eventing for the dock menu
            DockMenu.Initialise(ModelMain.Instance.ModelTransport, ModelMain.Instance.ModelVolumeControl, this);
            ModelMain.Instance.ViewMaster.ViewWidgetPlayMode.Add(DockMenu);
        }
コード例 #7
0
 public static void IniciarFlujo()
 {
     if (m_AccionActual != null)
     {
         ItemAccion    ItemAccion  = m_AccionActual.Items[0];
         ControllerApp Controlador = (ControllerApp)Factory.InstanceObject(ItemAccion.Ensamblado.Ensamblado_, ItemAccion.Clase);
         if (m_AccionActual.FilaSeleccionada)
         {
             Controlador.m_ItemsSelecteds = ((FrmDetails)m_ActiveForm).GetIDs();
         }
         Controlador.m_Parameter       = ItemAccion.Parametro;
         Controlador.m_AccionActual    = m_AccionActual;
         Controlador.m_ItemAccionAcual = ItemAccion;
         Controlador.m_ItemContenedor  = m_ItemContenedor;
         Controlador.m_EntidadSF       = (EntidadSF)HelperNHibernate.GetEntityByID("EntidadSF", m_ItemContenedor.Panel.EntidadSF.ID);
         Controlador.Start();
     }
 }