Exemple #1
0
 public bool initialize(ICoreInterface coreInterface)
 {
     _CoreInterface       = coreInterface;
     _ClientInfo.ServerId = _CoreInterface.GetLocalServerId();
     _ClientInfo.GameType = (int)_gameType;
     return(true);
 }
Exemple #2
0
 public void Load(ICoreInterface ci, string programPath)
 {
     // Fabrik für die View erstellen
     ActivitiesFactories.ActivitiesViewFactory = new ActivitiesViewFactory();
     ActivitiesFactories.ActivitiesCollectionFactory = new ActivitiesListCollectionFactory();
     controller.Load(ci, programPath);
 }
Exemple #3
0
        /// <summary>
        /// Lädt den Controller.
        /// </summary>
        /// <param name="core">Zugriff auf den Kern</param>
        /// <param name="programPath">Programmpfad</param>
        public void Load(ICoreInterface core, string programPath)
        {
            // Datenspeicher initialisieren
            DaoFactory.Initialize(core.DatabaseConnection);
            // Registrierung initialisieren
            ActivitiesRegistry.Instance.Initialize(core, programPath);

            // Klasse registrieren (HomeVisits)
            core.DatabaseConnection.AddMappingClass(typeof(HomeVisit));

            // Navigation erstellen
            var dataNavigationBar = core.NavigationBar.CreateDataNavigationBar();
            // Navigationsbutton einfügen
            core.NavigationBar.AddButton("activitiesDataButton", "Aktivitäten", null, null, dataNavigationBar, OnNavBarButtonClick);

            // Erstellen eines Buttons zum Hinzufügen von Aktivitäten
            var resourceImages = new ResourceImages();
            dataNavigationBar.AddButton(
                "newActivityButton", "Neue Aktivität hinzufügen", resourceImages.DatasetAdd, null,
                delegate {
                    core.WindowManager.BringWindowToFront<IActivitiesListView>();
                    var view = ((IActivitiesListView) core.WindowManager.ActiveWindow);
                    view.GetModel().UserWantsToAddActivity();
                    }
                );
        }
Exemple #4
0
 public void Load(ICoreInterface ci, string programPath)
 {
     // Fabrik für die View erstellen
     ActivitiesFactories.ActivitiesViewFactory       = new ActivitiesViewFactory();
     ActivitiesFactories.ActivitiesCollectionFactory = new ActivitiesListCollectionFactory();
     controller.Load(ci, programPath);
 }
Exemple #5
0
        /// <summary>
        /// Lädt den Controller.
        /// </summary>
        /// <param name="core">Zugriff auf den Kern</param>
        /// <param name="programPath">Programmpfad</param>
        public void Load(ICoreInterface core, string programPath)
        {
            // Datenspeicher initialisieren
            DaoFactory.Initialize(core.DatabaseConnection);
            // Registrierung initialisieren
            ActivitiesRegistry.Instance.Initialize(core, programPath);

            // Klasse registrieren (HomeVisits)
            core.DatabaseConnection.AddMappingClass(typeof(HomeVisit));

            // Navigation erstellen
            var dataNavigationBar = core.NavigationBar.CreateDataNavigationBar();

            // Navigationsbutton einfügen
            core.NavigationBar.AddButton("activitiesDataButton", "Aktivitäten", null, null, dataNavigationBar, OnNavBarButtonClick);

            // Erstellen eines Buttons zum Hinzufügen von Aktivitäten
            var resourceImages = new ResourceImages();

            dataNavigationBar.AddButton(
                "newActivityButton", "Neue Aktivität hinzufügen", resourceImages.DatasetAdd, null,
                delegate {
                core.WindowManager.BringWindowToFront <IActivitiesListView>();
                var view = ((IActivitiesListView)core.WindowManager.ActiveWindow);
                view.GetModel().UserWantsToAddActivity();
            }
                );
        }
Exemple #6
0
 public bool initialize(ICoreInterface coreInterface)
 {
     CoreInterface       = coreInterface;
     ClientInfo.ServerId = CoreInterface.GetLocalServerId();
     ClientInfo.GameType = (int)GameTypes.TianTi;
     return(true);
 }
Exemple #7
0
 public bool initialize(ICoreInterface coreInterface)
 {
     this.CoreInterface       = coreInterface;
     this.ClientInfo.PTID     = GameManager.PTID;
     this.ClientInfo.ServerId = GameManager.ServerId;
     this.ClientInfo.GameType = 8;
     return(true);
 }
Exemple #8
0
 /// <summary>
 /// Lädt das Plugin
 /// </summary>
 /// <param name="ci">Schnittstelle zum Kern</param>
 /// <param name="programPath">Programmpfad</param>
 public void Load(ICoreInterface ci, string programPath)
 {
     // Fabrik erstellen
     SettingFactories.SettingsControllerFactory = new SettingsControllerFactory();
     SettingFactories.SettingsViewFactory = new SettingsViewFactory();
     ci.FactoryManager.RegisterFactory(SettingFactories.SettingsControllerFactory);
     controller.Load(ci, programPath);
 }
 public bool initialize(ICoreInterface coreInterface)
 {
     CoreInterface       = coreInterface;
     ClientInfo.ServerId = CoreInterface.GetLocalServerId();
     ClientInfo.GameType = (int)GameTypes.YongZheZhanChang;
     ClientInfo.Token    = CoreInterface.GetLocalAddressIPs();
     return(true);
 }
Exemple #10
0
 /// <summary>
 /// Lädt das Plugin
 /// </summary>
 /// <param name="ci">Schnittstelle zum Kern</param>
 /// <param name="programPath">Programmpfad</param>
 public void Load(ICoreInterface ci, string programPath)
 {
     // Fabrik erstellen
     SettingFactories.SettingsControllerFactory = new SettingsControllerFactory();
     SettingFactories.SettingsViewFactory       = new SettingsViewFactory();
     ci.FactoryManager.RegisterFactory(SettingFactories.SettingsControllerFactory);
     controller.Load(ci, programPath);
 }
Exemple #11
0
 public bool initialize(ICoreInterface coreInterface)
 {
     this.CoreInterface       = coreInterface;
     this.ClientInfo.PTID     = GameManager.PTID;
     this.ClientInfo.ServerId = GameManager.ServerId;
     this.ClientInfo.GameType = 5;
     this.ClientInfo.Token    = this.CoreInterface.GetLocalAddressIPs();
     return(true);
 }
Exemple #12
0
        public void Load(ICoreInterface ci, string programPath)
        {
            coreInterface = ci;

            StartupRegistry.Instance.Initialize(ci, programPath);

            IDataNavigationBar navigationBar = ci.NavigationBar.CreateDataNavigationBar();
            ci.NavigationBar.AddButton("navbarStartCenterBtn", "Start", "Startfenster", null,
                                       navigationBar, OnStartCenterButtonClick);
        }
Exemple #13
0
        public void Load(ICoreInterface ci, string programPath)
        {
            coreInterface = ci;

            StartupRegistry.Instance.Initialize(ci, programPath);

            IDataNavigationBar navigationBar = ci.NavigationBar.CreateDataNavigationBar();

            ci.NavigationBar.AddButton("navbarStartCenterBtn", "Start", "Startfenster", null,
                                       navigationBar, OnStartCenterButtonClick);
        }
 public bool initialize(ICoreInterface coreInterface)
 {
     try
     {
         this.CoreInterface = coreInterface;
         if (!this.InitConfig())
         {
             return(false);
         }
         RemotingConfiguration.Configure(Process.GetCurrentProcess().MainModule.FileName + ".config", false);
         if (!HuanYingSiYuanClient.getInstance().initialize(coreInterface))
         {
             return(false);
         }
         if (!TianTiClient.getInstance().initialize(coreInterface))
         {
             return(false);
         }
         if (!YongZheZhanChangClient.getInstance().initialize(coreInterface))
         {
             return(false);
         }
         if (!KFCopyRpcClient.getInstance().initialize(coreInterface))
         {
             return(false);
         }
         if (!SpreadClient.getInstance().initialize(coreInterface))
         {
             return(false);
         }
         if (!AllyClient.getInstance().initialize(coreInterface))
         {
             return(false);
         }
         if (!IPStatisticsClient.getInstance().initialize(coreInterface))
         {
             return(false);
         }
         if (!JunTuanClient.getInstance().initialize(coreInterface))
         {
             return(false);
         }
         if (!KuaFuWorldClient.getInstance().initialize(coreInterface))
         {
             return(false);
         }
         GlobalEventSource.getInstance().registerListener(12, KuaFuManager.getInstance());
     }
     catch (Exception ex)
     {
         return(false);
     }
     return(true);
 }
Exemple #15
0
        /// <summary>
        /// Lädt den Controller für das Reporting.
        /// </summary>
        /// <param name="core">Kern</param>
        /// <param name="programPath">Programmpfad</param>
        public void Load(ICoreInterface core, string programPath)
        {
            // Datenspeicher initialisieren
            DaoFactory.Initialize(core.DatabaseConnection);
            // Registrierung aktivieren
            ReportingRegistry.Instance.Initialize(core, programPath);

            // Navigation erstellen
            var navigationBar = core.NavigationBar.CreateDataNavigationBar();
            // Button einfügen
            core.NavigationBar.AddButton("reportingButton", "Berichte", null, null, navigationBar, OnNavBarButtonClick);
        }
Exemple #16
0
        /// <summary>
        /// Lädt den Controller für das Reporting.
        /// </summary>
        /// <param name="core">Kern</param>
        /// <param name="programPath">Programmpfad</param>
        public void Load(ICoreInterface core, string programPath)
        {
            // Datenspeicher initialisieren
            DaoFactory.Initialize(core.DatabaseConnection);
            // Registrierung aktivieren
            ReportingRegistry.Instance.Initialize(core, programPath);

            // Navigation erstellen
            var navigationBar = core.NavigationBar.CreateDataNavigationBar();

            // Button einfügen
            core.NavigationBar.AddButton("reportingButton", "Berichte", null, null, navigationBar, OnNavBarButtonClick);
        }
Exemple #17
0
        /// <summary>
        /// Lädt den Controller
        /// </summary>
        /// <param name="coreInterface">Core</param>
        /// <param name="programPath">Pfad</param>
        public void Load(ICoreInterface coreInterface, string programPath)
        {
            core = coreInterface;

            // Initialize the registry in order to save the CoreInterface and program path
            // there.
            SettingsDataRegistry.Instance.Initialize(coreInterface, programPath);

            // Dao initialisieren
            DaoFactory.Initialize(coreInterface.DatabaseConnection);
            // Einstellungsklasse registrieren
            coreInterface.DatabaseConnection.AddMappingClass(typeof(Model.Setting));

            ResourceImages resourceImages = new ResourceImages();

            ResourceManager resourceManager = new ResourceManager("MyBiaso.Core.Customer.Properties.Resources", this.GetType().Assembly);

            var dataNavigationBar = core.NavigationBar.CreateDataNavigationBar();

            core.NavigationBar.AddButton("settingsButton", "Einstellungen", null, null, dataNavigationBar, OnNavBarButtonClick);
        }
Exemple #18
0
        /// <summary>
        /// Lädt den Controller
        /// </summary>
        /// <param name="coreInterface">Core</param>
        /// <param name="programPath">Pfad</param>
        public void Load(ICoreInterface coreInterface, string programPath)
        {
            core = coreInterface;


            // Initialize the registry in order to save the CoreInterface and program path
            // there.
            SettingsDataRegistry.Instance.Initialize(coreInterface, programPath);

            // Dao initialisieren
            DaoFactory.Initialize(coreInterface.DatabaseConnection);
            // Einstellungsklasse registrieren
            coreInterface.DatabaseConnection.AddMappingClass(typeof(Model.Setting));

            ResourceImages resourceImages = new ResourceImages();

            ResourceManager resourceManager = new ResourceManager("MyBiaso.Core.Customer.Properties.Resources", this.GetType().Assembly);

            var dataNavigationBar = core.NavigationBar.CreateDataNavigationBar();

            core.NavigationBar.AddButton("settingsButton", "Einstellungen", null, null, dataNavigationBar, OnNavBarButtonClick);
        }
Exemple #19
0
        public void Load(ICoreInterface ci, string programPath)
        {
            // Save the CoreInterface
            _ci = ci;

            // Initialize DaoFactory.
            DaoFactory.Initialize(ci.DatabaseConnection);

            // Initialize the registry in order to save the CoreInterface and program path
            // there.
            CustomerDataRegistry.Instance.Initialize(ci, programPath);

            // Register the customer class.
            ci.DatabaseConnection.AddMappingClass(typeof(Model.Customer));

            ResourceImages resourceImages = new ResourceImages();

            ResourceManager resourceManager = new ResourceManager("MyBiaso.Core.Customer.Properties.Resources", this.GetType().Assembly);

            // Create a new data navigation bar.
            var dataNavigationBar = ci.NavigationBar.CreateDataNavigationBar();

            dataNavigationBar.AddButton("newCustomerButton", "Neuen Kunden hinzufügen", resourceImages.DatasetAdd, null,
                                        delegate {
                ci.WindowManager.BringWindowToFront <ICustomerDataView>();
                var view = ((ICustomerDataView)ci.WindowManager.ActiveWindow);
                view.GetModel().UserWantsToAddCustomer();
            });

            ci.NavigationBar.AddButton("customerDataButton", "Kundenverwaltung", null, (Image)resourceManager.GetObject("customers"), dataNavigationBar, OnNavBarButtonClick);

            // Register menu items.
            //object menuItem = ci.MainMenu.AddMainMenuItem("Customers", "customerDataMenuItem", "Customers",
            //                                              (object)null, null);
            //ci.MainMenu.AddMainMenuItem("Add new customer...", "newCustomerMenuItem", "Add new customer", menuItem,
            //                            OnNewCustomerMenuItemClick);
        }
        public void Load(ICoreInterface ci, string programPath)
        {
            // Save the CoreInterface
            _ci = ci;

            // Initialize DaoFactory.
            DaoFactory.Initialize(ci.DatabaseConnection);

            // Initialize the registry in order to save the CoreInterface and program path
            // there.
            CustomerDataRegistry.Instance.Initialize(ci, programPath);

            // Register the customer class.
            ci.DatabaseConnection.AddMappingClass(typeof(Model.Customer));

            ResourceImages resourceImages = new ResourceImages();

            ResourceManager resourceManager = new ResourceManager("MyBiaso.Core.Customer.Properties.Resources", this.GetType().Assembly);

            // Create a new data navigation bar.
            var dataNavigationBar = ci.NavigationBar.CreateDataNavigationBar();
            dataNavigationBar.AddButton("newCustomerButton", "Neuen Kunden hinzufügen", resourceImages.DatasetAdd, null,
                delegate {
                    ci.WindowManager.BringWindowToFront<ICustomerDataView>();
                    var view = ((ICustomerDataView) ci.WindowManager.ActiveWindow);
                    view.GetModel().UserWantsToAddCustomer();
                });

            ci.NavigationBar.AddButton("customerDataButton", "Kundenverwaltung", null, (Image)resourceManager.GetObject("customers"), dataNavigationBar, OnNavBarButtonClick);

            // Register menu items.
            //object menuItem = ci.MainMenu.AddMainMenuItem("Customers", "customerDataMenuItem", "Customers",
            //                                              (object)null, null);
            //ci.MainMenu.AddMainMenuItem("Add new customer...", "newCustomerMenuItem", "Add new customer", menuItem,
            //                            OnNewCustomerMenuItemClick);
        }
Exemple #21
0
 /// <summary>
 /// Lädt das Plugin.
 /// </summary>
 /// <param name="ci">Core-Interface</param>
 /// <param name="programPath">Programmpfad</param>
 public void Load(ICoreInterface ci, string programPath)
 {
     // Fabrik für die View setzen
     CustomerFactories.CustomerDataViewFactory = new CustomerDataViewFactory();
     controller.Load(ci, programPath);
 }
Exemple #22
0
        public bool initialize(ICoreInterface coreInterface)
        {
            try
            {
                CoreInterface = coreInterface;
                if (!InitConfig())
                {
                    return(false);
                }

                System.Runtime.Remoting.RemotingConfiguration.Configure(Process.GetCurrentProcess().MainModule.FileName + ".config", false);
                if (!HuanYingSiYuanClient.getInstance().initialize(coreInterface))
                {
                    return(false);
                }

                if (!TianTiClient.getInstance().initialize(coreInterface))
                {
                    return(false);
                }

                if (!YongZheZhanChangClient.getInstance().initialize(coreInterface))
                {
                    return(false);
                }

                if (!KFCopyRpcClient.getInstance().initialize(coreInterface))
                {
                    return(false);
                }

                /*
                 * if (!MoRiJudgeClient.getInstance().initialize(coreInterface))
                 * {
                 *  return false;
                 * }
                 *
                 * if (!ElementWarClient.getInstance().initialize(coreInterface))
                 * {
                 *  return false;
                 * }*/

                if (!SpreadClient.getInstance().initialize(coreInterface))
                {
                    return(false);
                }

                if (!AllyClient.getInstance().initialize(coreInterface))
                {
                    return(false);
                }

                GlobalEventSource.getInstance().registerListener((int)EventTypes.PlayerLogout, getInstance());
            }
            catch (System.Exception ex)
            {
                return(false);
            }

            return(true);
        }
Exemple #23
0
 public void Load(ICoreInterface ci, string programPath)
 {
     ReportingFactories.ReportingCollectionFactory = new ReportingCollectionFactory();
     ReportingFactories.ReportingViewFactory       = new ReportingViewFactory();
     controller.Load(ci, programPath);
 }
 public bool initialize(ICoreInterface coreInterface)
 {
     ScheduleExecutor2.Instance.scheduleExecute(new NormalScheduleTask("YongZheZhanChangManager.TimerProc", TimerProc), 15000, 5000);
     return(true);
 }
Exemple #25
0
 public bool initialize(ICoreInterface coreInterface)
 {
     return(true);
 }
Exemple #26
0
 public void Load(ICoreInterface ci, string programPath)
 {
     ReportingFactories.ReportingCollectionFactory = new ReportingCollectionFactory();
     ReportingFactories.ReportingViewFactory = new ReportingViewFactory();
     controller.Load(ci, programPath);
 }
Exemple #27
0
 public bool initialize(ICoreInterface coreInterface)
 {
     ScheduleExecutor2.Instance.scheduleExecute(new NormalScheduleTask("KuaFuBossManager.TimerProc", new EventHandler(this.TimerProc)), 15000, 5000);
     return(true);
 }
Exemple #28
0
 /// <summary>
 /// Lädt das Plugin.
 /// </summary>
 /// <param name="ci">Core-Interface</param>
 /// <param name="programPath">Programmpfad</param>
 public void Load(ICoreInterface ci, string programPath)
 {
     // Fabrik für die View setzen
     CustomerFactories.CustomerDataViewFactory = new CustomerDataViewFactory();
     controller.Load(ci, programPath);
 }