Пример #1
0
        /// <summary>
        /// Binds the grid.
        /// </summary>
        private void BindGridData()
        {
            SetRegionsGridDataSource();
            //RegionsGrid.PagerPosition = GridElementPosition.BottomRight;
            //RegionsGrid.AllowPaging = true;
            RegionsGrid.PageSize = 100;

            RegionsGrid.DataBind();
        }
Пример #2
0
        /// <summary>
        /// Initializes all needed world objects.
        /// </summary>
        internal static void StartUp()
        {
            if (m_Initialized)
            {
                Logger.WriteLine(Source.World, "Can't initialize already initialized world.");
                return;
            }

            Logger.WriteLine(Source.World, "Initializing world...");

#if WORLD_PREFOMANCE
            Logger.WriteLine(Source.World, "Working set: {0}", Environment.WorkingSet);
            Stopwatch sw = new Stopwatch();
            sw.Start();
#endif
            if (!Geodata.Initialize())
            {
                return;
            }
            else
            {
                Logger.WriteLine(Source.World, "Geodata files loaded.");
            }

#if WORLD_PREFOMANCE
            sw.Stop();

            Logger.WriteLine(Source.World, "Working set: {0}", Environment.WorkingSet);
            Logger.WriteLine(Source.World, "GLoading time: {0}", sw.GetSplitTimeInMicroseconds());
#endif
            if (!RegionsGrid.Initialize())
            {
                return;
            }

            m_Initialized = true;

            Logger.WriteLine(Source.InnerNetwork, "Setting world as active...");

            CacheServiceConnection.Send(new SetWorldActiveRequest().ToPacket());
        }
Пример #3
0
 /// <summary>
 /// Handles the OnNeedRebind event of the RegionsGrid control.
 /// </summary>
 /// <param name="sender">The source of the event.</param>
 /// <param name="oArgs">The <see cref="System.EventArgs"/> instance containing the event data.</param>
 public void RegionsGrid_OnNeedRebind(object sender, System.EventArgs oArgs)
 {
     RegionsGrid.DataBind();
 }