コード例 #1
0
        private void btn_GroupStatusUpdate_GetGroups_Click_1(object sender, RoutedEventArgs e)
        {
            GroupStatus objGroupStatus = new GroupStatus();
            Thread      objThread      = new Thread(objGroupStatus.ThreadStartGroupStatus);

            objThread.Start();
        }
コード例 #2
0
ファイル: GroupsManager.cs プロジェクト: thinhtp/liteweb.info
        public void UpdateGroupStatus(int groupId, GroupStatus Status)
        {
            var group = GetGroup(groupId);

            group.Status = (int)Status;
            DataContext.SubmitChanges();
        }
コード例 #3
0
        public override void Deserialize(GenericReader reader)
        {
            base.Deserialize(reader);

            int version = reader.ReadInt();

            switch (version)
            {
            case 1:
                m_Credits = reader.ReadInt();
                goto case 0;

            case 0:
                // version 0
                verboseMobFactions = reader.ReadBool();
                int count    = reader.ReadInt();
                int newcount = (int)GroupTypes.End_Unused;;

                // prepare the new faction status list
                FactionList = new GroupStatus[newcount];

                // initialize the faction status list with the default grouptypes
                for (int j = 0; j < newcount; j++)
                {
                    FactionList[j] = new GroupStatus((GroupTypes)j);
                }

                // now read in the serialized FactionList entries and cross reference to the current GroupTypes
                for (int i = 0; i < count; i++)
                {
                    string gname = reader.ReadString();
                    int    gfac  = reader.ReadInt();

                    // look up the enum by name
                    GroupTypes gtype = GroupTypes.End_Unused;
                    try{
                        gtype = (GroupTypes)Enum.Parse(typeof(GroupTypes), gname);
                    } catch {}

                    // try to find the matching entry in the recently constructed faction status list
                    if (gtype != GroupTypes.End_Unused)
                    {
                        for (int j = 0; j < newcount; j++)
                        {
                            GroupStatus g = FactionList[j];
                            if (g.GroupType == gtype)
                            {
                                g.FactionLevel = gfac;
                                break;
                            }
                        }
                    }
                }

                Refractory = reader.ReadTimeSpan();
                TimeSpan remaining = reader.ReadTimeSpan();
                m_EndTime = DateTime.Now + remaining;
                break;
            }
        }
コード例 #4
0
        //Old Solution, Called many times in widgets moving process
        private void MoveSelectedWidgets(object sender, DragDeltaEventArgs e)
        {
            //Get X/Y  Move Offset
            double deltaHorizontal = 0;
            double deltaVertical   = 0;

            GetMoveOffset(e, ref deltaHorizontal, ref deltaVertical);

            if (this.designerItem.ParentID == Guid.Empty)
            {
                MoveExternalElements(deltaHorizontal, deltaVertical);
            }
            else
            {
                IGroupOperation pageVM      = designerCanvas.DataContext as IGroupOperation;
                GroupStatus     groupStatus = pageVM.GetGroupStatus(this.designerItem.ParentID);
                if (groupStatus == GroupStatus.Edit)
                {
                    MoveEditedGroup(pageVM, deltaHorizontal, deltaVertical);
                }
                else if (groupStatus == GroupStatus.Selected)
                {
                    MoveSelectedGroup(pageVM, deltaHorizontal, deltaVertical);
                }
            }
        }
コード例 #5
0
        public void SetCardsStatus(GroupStatus status)
        {
            if (CardsStatus != null)
            {
                if (!CardsStatus.activeSelf)
                {
                    CardsStatus.SetActive(true);
                }
            }

            if (StatusName != null)
            {
                switch (status)
                {
                case GroupStatus.Look:
                    StatusName.text = "已看牌";
                    break;

                case GroupStatus.GiveUp:
                    StatusName.text = "已弃牌";
                    break;

                case GroupStatus.CompareOut:
                    StatusName.text = "比牌失败";
                    break;
                }
            }
        }
コード例 #6
0
ファイル: Group.cs プロジェクト: randyammar/Hubby.Backend
        private void When(MergeStarted e)
        {
            var otherBlacklistIds = e.BlackListedIds.Except(_buddyIdsBlackList);

            _buddyIdsBlackList.AddRange(otherBlacklistIds);
            Status = GroupStatus.Merging;
        }
コード例 #7
0
        public override void That <T>(T del, IResolveConstraint expr, string description)
        {
            var constraint = expr.Resolve();
            var result     = constraint.ApplyTo(del);

            if (result.IsSuccess)
            {
                if (_shouldRecordEveryCheck)
                {
                    _results.Add(new CheckResult()
                    {
                        Name   = description ?? "",
                        Status = CheckStatus.Success
                    });
                }
            }
            else
            {
                _status = GroupStatus.Failure;
                if (_shouldRecordEveryCheck)
                {
                    _results.Add(new CheckResult()
                    {
                        Name   = description ?? "",
                        Status = CheckStatus.Failure
                    });
                }
            }
        }
コード例 #8
0
        public ReviewAccountListViewModel(IReviewAccountsService reviewAccountsService,
                                          ISelectFinancialYearsService selectFinancialYearsService, IAppContextService appContextService, ICompanyInformationsService companyInformationsService)
        {
            _companyInformationsService = companyInformationsService;
            CompanyInformationModel     = _companyInformationsService.GetCompanyInformationModel();
            _reviewAccountsService      = reviewAccountsService;
            _appContextService          = appContextService;
            AccDocumentHeaderFilter     = new AccDocumentHeaderFilter
            {
            };
            _selectFinancialYearsService = selectFinancialYearsService;

            GLGroupedCommand  = new RelayCommand(OnGLGrouped);
            TLGroupedCommand  = new RelayCommand(OnTLGrouped);
            SLGroupedCommand  = new RelayCommand(OnSLGrouped);
            DL1GroupedCommand = new RelayCommand(OnDL1Grouped);
            DL2GroupedCommand = new RelayCommand(OnDL2Grouped);
            FromYearsDropDownOpenedCommand = new RelayCommand(OnFromYearsDropDownOpened);
            ToYearsDropDownOpenedCommand   = new RelayCommand(OnToYearsDropDownOpened);

            CurrencyGroupedCommand = new RelayCommand(OnCurrencyGrouped);
            TrackingGroupedCommand = new RelayCommand(OnTrackingGrouped);

            GLDetailedCommand       = new RelayCommand <string>(OnGLDetailed, (s) => { return(GroupStatus.HasFlag(GroupStatusEnum.DetailedGL)); });
            TLDetailedCommand       = new RelayCommand <string>(OnTLDetailed, (s) => { return(GroupStatus.HasFlag(GroupStatusEnum.DetailedTL)); });
            SLDetailedCommand       = new RelayCommand <string>(OnSLDetailed, (s) => { return(GroupStatus.HasFlag(GroupStatusEnum.DetailedSL)); });
            DL1DetailedCommand      = new RelayCommand <string>(OnDL1Detailed, (s) => { return(GroupStatus.HasFlag(GroupStatusEnum.DetailedDL1)); });
            DL2DetailedCommand      = new RelayCommand <string>(OnDL2Detailed, (s) => { return(GroupStatus.HasFlag(GroupStatusEnum.DetailedDL2)); });
            CurrencyDetailedCommand = new RelayCommand <string>(OnCurrencySLDetailed, (s) => { return(GroupStatus.HasFlag(GroupStatusEnum.DetailedCurrency)); });
            TrackingDetailedCommand = new RelayCommand <string>(OnTrackingDetailed, (s) => { return(GroupStatus.HasFlag(GroupStatusEnum.DetailedTracking)); });
            UndoCommand             = new RelayCommand(Undo, () => { return(GroupStatus.HasFlag(GroupStatusEnum.Undo)); });

            ApplyFilterCommand = new RelayCommand(OnApplyFilter, () => AccDocumentHeaderFilter != null);
            _accessUtility     = SmObjectFactory.Container.GetInstance <AccessUtility>();
        }
コード例 #9
0
ファイル: XmlMobFactions.cs プロジェクト: pallop/Servuo
        public override void Serialize(GenericWriter writer)
        {
            base.Serialize(writer);

            writer.Write((int)1);

            // version 2
            // version 1
            writer.Write(m_Credits);
            // version 0
            writer.Write(verboseMobFactions);
            if (FactionList != null)
            {
                writer.Write(FactionList.Length);
                for (int i = 0; i < FactionList.Length; i++)
                {
                    GroupStatus g = FactionList[i];
                    // by saving the group type as a string, it allows proper deserialization even if the list of faction group types change
                    writer.Write(g.GroupType.ToString());
                    writer.Write(g.FactionLevel);
                }
            }
            else
            {
                writer.Write((int)0);
            }
            writer.Write(m_Refractory);
            writer.Write(m_EndTime - DateTime.UtcNow);
        }
コード例 #10
0
        private void ClickGroupChildInUnselected()
        {
            ClickInitialStatus = GroupStatus.UnSelect;
            DesignerCanvas  designer = VisualTreeHelper.GetParent(VisualTreeHelper.GetParent(VisualTreeHelper.GetParent(this))) as DesignerCanvas;
            IGroupOperation pageVM   = designer.DataContext as IGroupOperation;

            //this is option for the common widget
            if ((Keyboard.Modifiers & (ModifierKeys.Shift | ModifierKeys.Control)) != ModifierKeys.None)
            {
                foreach (BaseWidgetItem item in designer.SelectedItems)
                {
                    if (item.IsSelected == true &&
                        item.ParentID != Guid.Empty)
                    {
                        return;
                    }
                }
                pageVM.SetGroupStatus(ParentID, GroupStatus.Selected);
            }
            else
            {
                designer.DeselectAll();
                pageVM.DeselectAllGroups();
                pageVM.SetGroupStatus(ParentID, GroupStatus.Selected);
            }
        }
コード例 #11
0
ファイル: TaskManager.cs プロジェクト: nek3/NewGame
 /// <summary>
 /// コンストラクタ
 /// </summary>
 /// <param name="isAsync">非同期実行かどうか</param>
 /// <param name="capacity">登録するタスクの数</param>
 /// <param name="priority">優先度</param>
 public TaskGroup(bool isAsync, int capacity, uint priority)
 {
     mIsAsync  = isAsync;
     mStatus   = GroupStatus.Initialized;
     Priority  = priority;
     mTaskList = new List <Task>(capacity);
 }
コード例 #12
0
ファイル: MainForm.cs プロジェクト: andgra/reverse_ray
 private void numericUpDown_ValueChanged(object sender, EventArgs e)//загружаем указанный слайс
 {
     currentSlice   = (int)sliceNumInput.Value;
     curGroupStatus = GroupStatus.none;
     LoadNewSlice(currentSlice);
     //data = KinematicFixes();
     DrawImage();
 }
コード例 #13
0
 private void ClickGroupChildInSelected()
 {
     ClickInitialStatus = GroupStatus.Selected;
     //DesignerCanvas designer = VisualTreeHelper.GetParent(VisualTreeHelper.GetParent(this)) as DesignerCanvas;
     if (IsLocked == true)
     {
         OnGroupChildMouseUp();
     }
 }
コード例 #14
0
ファイル: Group.cs プロジェクト: randyammar/Hubby.Backend
 private void When(GroupCreated e)
 {
     Id                 = e.Id;
     RegionId           = e.RegionId;
     _genreIds          = e.GenreIds.ToList();
     _buddyIds          = new List <string>();
     _buddyIdsBlackList = new List <string>();
     Status             = GroupStatus.Open;
 }
コード例 #15
0
 // //Eager loading
 public List <GroupMember> GetAllGroupMembers(int groupId, GroupStatus status)
 {
     using (var db = new ApplicationDbContext())
     {
         return(db.GroupMembers.Where(x => x.GroupId == groupId && x.Status == status).
                Include(u => u.User).
                Include(g => g.Group).
                ToList());
     }
 }
コード例 #16
0
ファイル: TaskManager.cs プロジェクト: nek3/NewGame
 /// <summary>
 /// タスク実行開始
 /// </summary>
 /// <param name="endAction">全てのタスク実行が終了した時に呼び出される関数。EndActionで登録するのと同じ。</param>
 /// <returns>実行開始出来た場合にtrueを返す</returns>
 public bool Run(Action endAction = null)
 {
     if (mStatus != GroupStatus.Initialized)
     {
         return(false);
     }
     EndAction = endAction;
     mStatus   = GroupStatus.Run;
     return(true);
 }
コード例 #17
0
 public Group(string groupType, string groupName, string ownerId, GroupStatus status, dynamic profile, Dictionary <string, string[]> customPermissions)
 {
     Id                = GroupId;
     GroupType         = groupType;
     GroupName         = groupName;
     OwnerId           = ownerId;
     Status            = status;
     Profile           = profile;
     CustomPermissions = customPermissions;
 }
コード例 #18
0
ファイル: XmlMobFactions.cs プロジェクト: pallop/Servuo
 public XmlMobFactions(string name, double refractory)
 {
     Name        = name;
     Refractory  = TimeSpan.FromSeconds(refractory);
     FactionList = new GroupStatus[(int)GroupTypes.End_Unused];
     for (int i = 0; i < FactionList.Length; i++)
     {
         FactionList[i]           = new GroupStatus();
         FactionList[i].GroupType = (GroupTypes)i;
     }
 }
コード例 #19
0
ファイル: TaskManager.cs プロジェクト: nek3/NewGame
 /// <summary>
 /// 終了処理
 /// </summary>
 private void End()
 {
     if (EndAction != null)
     {
         EndAction();
         EndAction = null;
     }
     mStatus = GroupStatus.End;
     mTaskList.Clear();
     mTaskList = null;
 }
コード例 #20
0
        public void SetGroupStatus(Guid GroupID, GroupStatus status)
        {
            IEnumerable <GroupViewModel> AllGroups = items.OfType <GroupViewModel>().Where(c => c.IsGroup == true);

            foreach (GroupViewModel it in AllGroups)
            {
                if (it.WidgetID == GroupID)
                {
                    it.Status = status;
                    break;
                }
            }
        }
コード例 #21
0
 public Group(string newgroupId, string groupType, string groupName, string ownerId, GroupStatus status, dynamic profile, Dictionary <string, string[]> customPermissions, CommandInformation commandInformation)
 {
     Id                            = newgroupId;
     GroupId                       = newgroupId;
     GroupType                     = groupType;
     GroupName                     = groupName;
     OwnerId                       = ownerId;
     Status                        = status;
     Profile                       = profile;
     CustomPermissions             = customPermissions;
     CreatedCommandInformation     = commandInformation;
     LastChangedCommandInformation = commandInformation;
 }
コード例 #22
0
        private async Task ApplyUpdate(GroupInfo groupInfo)
        {
            List <Group> update = groupInfo.Package;

            if (update == null || update.Count == 0)
            {
                return;
            }

            bool modified = false;

            foreach (var group in update)
            {
                GroupStatus status = group.Status;

                switch (status)
                {
                case GroupStatus.Deleted:
                    modified = this.AllGroups.Remove(group);
                    break;

                case GroupStatus.Modified:
                    this.UpdateGroup(group);
                    modified = true;
                    break;

                case GroupStatus.New:
                    this.AllGroups.Add(group);
                    modified = true;
                    break;
                }
            }

            if (!modified)
            {
                return;
            }

            GroupInfo chamas = new GroupInfo {
                ServerTimeStamp = groupInfo.ServerTimeStamp, Package = this.AllGroups
            };

            await this.SaveChamas(chamas);

            // reset all selections to the starting point
            this.DisplayedGroups = new ObservableCollection <Group>(new List <Group> {
                this.AllGroups[0]
            });
            this.EnableNextButton = false;
        }
コード例 #23
0
        private void RefreshGroupButtonStatus(int group, GroupStatus status)
        {
            var gd         = groupDatas[group - 1];
            var sp_unopen  = gd.UnopenSprite;
            var btn_bet    = gd.Buttons[0];
            var btn_racing = gd.Buttons[1];
            var btn_result = gd.Buttons[2];

            switch (status)
            {
            case GroupStatus.Preview:
            {
                sp_unopen.gameObject.CustomSetActive(true);
                btn_bet.gameObject.CustomSetActive(false);
                btn_racing.gameObject.CustomSetActive(false);
                btn_result.gameObject.CustomSetActive(false);
            }
            break;

            case GroupStatus.Beting:
            {
                sp_unopen.gameObject.CustomSetActive(false);
                btn_bet.gameObject.CustomSetActive(true);
                btn_racing.gameObject.CustomSetActive(false);
                btn_result.gameObject.CustomSetActive(false);
            }
            break;

            case GroupStatus.Racing:
            {
                sp_unopen.gameObject.CustomSetActive(false);
                btn_bet.gameObject.CustomSetActive(false);
                btn_racing.gameObject.CustomSetActive(true);
                btn_result.gameObject.CustomSetActive(false);
            }
            break;

            case GroupStatus.Finished:
            {
                sp_unopen.gameObject.CustomSetActive(false);
                btn_bet.gameObject.CustomSetActive(false);
                btn_racing.gameObject.CustomSetActive(false);
                btn_result.gameObject.CustomSetActive(true);
            }
            break;

            default:
                break;
            }
        }
コード例 #24
0
 public void SetGroupRequestStatus(string userId, int groupId, GroupStatus status)
 {
     using (var db = new ApplicationDbContext())
     {
         db.Configuration.ValidateOnSaveEnabled = false;
         var groupmember = new GroupMember
         {
             GroupId        = groupId,
             MemberId       = userId,
             Status         = status,
             MembershipTime = DateTime.Now
         };
         db.GroupMembers.Add(groupmember);
         db.SaveChanges();
     }
 }
コード例 #25
0
        public void ChangeMemberStatus(int memberId, GroupStatus status)
        {
            using (var db = new ApplicationDbContext())
            {
                db.Configuration.ValidateOnSaveEnabled = false;
                var groupmember = db.GroupMembers.Find(memberId);

                if (groupmember != null)
                {
                    groupmember.Status          = status;
                    groupmember.MembershipTime  = DateTime.Now;
                    db.Entry(groupmember).State = EntityState.Modified;
                    db.SaveChanges();
                }
            }
        }
コード例 #26
0
ファイル: GroupsManager.cs プロジェクト: thinhtp/liteweb.info
        /// <summary>
        /// Create A Group
        /// </summary>
        ///

        public int CreateGroup(int memberId, string Name, string City, int?Region, int?Country, int?University, System.Web.HttpPostedFile Picture,
                               int?Privacy, bool MembershipApproval, string Description, string Mission, int?Security, GroupType Type, string LegalStatus,
                               GroupStatus Status, string Phone, string Address)
        {
            var test = TestIfGroupUnique(Name, Type);

            if (test != null)
            {
                return(-1);
            }

            Group g = new Group
            {
                Guid               = System.Guid.NewGuid(),
                CreatorID          = memberId,
                Name               = Name,
                UniqueName         = StringUtils.ToURL(Name),
                Phone              = Phone,
                Address            = Address,
                City               = City,
                Region             = Region,
                Country            = Country,
                University         = University,
                Privacy            = Privacy,
                MembershipApproval = MembershipApproval,
                Description        = Description,
                Mission            = Mission,
                Security           = Security,
                Type               = (int)Type,
                LegalStatus        = LegalStatus,
                Status             = (int)Status,
                DateCreated        = DateTime.Now,
                DateModified       = DateTime.Now
            };

            DataContext.Groups.InsertOnSubmit(g);
            DataContext.SubmitChanges();
            if (Picture != null)
            {
                updateGroupPicture(g.ID, Picture, false);
            }

            UpdateGroupUniqueName(g.ID, StringUtils.ToURL(string.Format("{0}-{1}", Name, g.ID)));

            return(g.ID);
        }
コード例 #27
0
        protected void OnPreviewMouseDown2222(MouseButtonEventArgs e)
        {
            base.OnPreviewMouseDown(e);
            _isSelectedDone = false;
            e.Handled       = false;

            if (IsInEditModel == false)
            {
                Focus();
            }
            //return;

            BaseWidgetItem wdg = e.Source as BaseWidgetItem;

            if (wdg == null)
            {
                return;
            }

            if (wdg.ParentID == Guid.Empty)
            {
                ClickPageWidget();
            }
            else
            {
                DesignerCanvas  designer    = VisualTreeHelper.GetParent(VisualTreeHelper.GetParent(VisualTreeHelper.GetParent(this))) as DesignerCanvas;
                IGroupOperation pageVM      = designer.DataContext as IGroupOperation;
                GroupStatus     groupStatus = pageVM.GetGroupStatus(this.ParentID);
                if (groupStatus == GroupStatus.UnSelect)
                {
                    ClickGroupChildInUnselected();
                }
                else if (groupStatus == GroupStatus.Selected)
                {
                    ClickGroupChildInSelected();
                }
                else if (groupStatus == GroupStatus.Edit)
                {
                    ClickGroupChildInEdited();
                }
            }
        }
コード例 #28
0
 private void btn_GroupStatusUpdate_GetGroups_Click(object sender, RoutedEventArgs e)
 {
     try
     {
         if (!string.IsNullOrEmpty(GlobalsGroups.selectedAccount))
         {
             GroupStatus objGroupStatus            = new GroupStatus();
             Thread      thrThreadStartGroupStatus = new Thread(objGroupStatus.ThreadStartGroupStatus);
             thrThreadStartGroupStatus.Start();
         }
         else
         {
             GlobusLogHelper.log.Info("Please select Account first.");
             MessageBox.Show("Please select Account first.");
         }
     }
     catch (Exception ex)
     {
     }
 }
コード例 #29
0
        public static string FormatString(this GroupStatus groupStatus)
        {
            switch (groupStatus)
            {
            case GroupStatus.NotSelected:
                return("Nog niet gekozen");

            case GroupStatus.Locked:
                return("Vergrendeld");

            case GroupStatus.Selected:
                return("Gekozen");

            case GroupStatus.Blocked:
                return("Geblokkeerd");

            default:
                return(null);
            }
        }
コード例 #30
0
 //New Solution, Called only one time after adorner moving is over
 private void MoveSeleteedWidgets()
 {
     if (this.designerItem.ParentID == Guid.Empty)
     {
         MoveExternalElements(_totalHorizonOffset, _totaVerticalOffset);
     }
     else
     {
         IGroupOperation pageVM      = designerCanvas.DataContext as IGroupOperation;
         GroupStatus     groupStatus = pageVM.GetGroupStatus(this.designerItem.ParentID);
         if (groupStatus == GroupStatus.Edit)
         {
             MoveEditedGroup(pageVM, _totalHorizonOffset, _totaVerticalOffset);
         }
         else if (groupStatus == GroupStatus.Selected)
         {
             MoveSelectedGroup(pageVM, _totalHorizonOffset, _totaVerticalOffset);
         }
     }
 }
コード例 #31
0
		public XmlMobFactions(string name, double refractory)
		{
			Name = name;
			Refractory = TimeSpan.FromSeconds(refractory);
			FactionList = new GroupStatus[(int)GroupTypes.End_Unused];
			for(int i = 0;i<FactionList.Length;i++)
			{
				FactionList[i] = new GroupStatus();
				FactionList[i].GroupType = (GroupTypes)i;
			}
		}
コード例 #32
0
        public GroupStatus GetGroupStatus(string group)
        {
            GroupStatus groupStatus = new GroupStatus();

            foreach (Contact contact in _realContacts.Values)
            {
                if (contact.Group == group)
                {
                    if (contact.IsAvailable)
                    {
                        groupStatus._online++;
                    }
                    else
                    {
                        groupStatus._offline++;
                    }
                }
            }

            groupStatus._total = groupStatus._online + groupStatus._offline;

            return groupStatus;
        }
コード例 #33
0
		public override void Deserialize(GenericReader reader)
		{
			base.Deserialize(reader);

			int version = reader.ReadInt();
			switch(version)
			{
				case 1:
					m_Credits = reader.ReadInt();
					goto case 0;
				case 0:
					// version 0
					verboseMobFactions = reader.ReadBool();
					int count = reader.ReadInt();
					int newcount = (int)GroupTypes.End_Unused;;

					// prepare the new faction status list
					FactionList = new GroupStatus[newcount];

					// initialize the faction status list with the default grouptypes
					for(int j = 0;j<newcount;j++)
					{
						FactionList[j] = new GroupStatus((GroupTypes)j);
					}

					// now read in the serialized FactionList entries and cross reference to the current GroupTypes
					for(int i = 0;i<count;i++)
					{
						string gname = reader.ReadString();
						int gfac = reader.ReadInt();

						// look up the enum by name
						GroupTypes gtype = GroupTypes.End_Unused;
						try
						{
							gtype = (GroupTypes)Enum.Parse(typeof(GroupTypes), gname);
						} 
						catch{}
                    
						// try to find the matching entry in the recently constructed faction status list
						if(gtype != GroupTypes.End_Unused)
						{
							for(int j = 0;j<newcount;j++)
							{
								GroupStatus g = FactionList[j];
								if(g.GroupType == gtype)
								{
									g.FactionLevel = gfac;
									break;
								}
							}
						}
					}

					Refractory = reader.ReadTimeSpan();
					TimeSpan remaining = reader.ReadTimeSpan();
					m_EndTime = DateTime.Now + remaining;
					break;
			}
		}