private void AddPartTimeSettingPage()
        {
            foreach (var equip in Equipment.EquipmentManager.Instance.EquipmentList)
            {
                PageTimeSetting page = new PageTimeSetting();

                foreach (Equipment.EquipmentBase.PartInfo partInfo in equip.Value.PartList)
                {
                    System.Reflection.PropertyInfo[] propList = partInfo.Part.GetType().GetProperties();
                    foreach (System.Reflection.PropertyInfo info in propList)
                    {
                        if (info.PropertyType == typeof(FALibrary.Utility.FATime))
                        {
                            PageTimeSetting.FANamedTime time = new PageTimeSetting.FANamedTime();
                            time.Name = partInfo.Part.Name + " " + info.Name;
                            time.Time = (FALibrary.Utility.FATime)info.GetValue(partInfo.Part, null);
                            page.TimeList.Add(time);
                        }
                    }
                }

                UIUtility.AddPage(tabControlPartTimeSetting, equip.Value.Name, page);
                page.Initialize();
            }
        }
        private PageTimeSetting AddModuleTimeSettingPage(string name, FAFramework.Module.FAModule module, bool initialize)
        {
            PageTimeSetting page = new PageTimeSetting();
            UIUtility.AddPage(tabControlModuleTimeSetting, name, page);

            foreach (KeyValuePair<string, FALibrary.Utility.FATime> item in module.TimeList)
            {
                PageTimeSetting.FANamedTime time = new PageTimeSetting.FANamedTime();
                time.Name = item.Key;
                time.Time = item.Value;
                page.TimeList.Add(time);
            }

            if (initialize)
                page.Initialize();

            return page;
        }
        private void AddPartTimeSettingPage()
        {
            PageTimeSetting page = new PageTimeSetting();

            page.Width = double.NaN;
            page.Height = double.NaN;
            page.HorizontalAlignment = System.Windows.HorizontalAlignment.Stretch;
            page.VerticalAlignment = System.Windows.VerticalAlignment.Stretch;

            foreach (Equipment.SubEquipment.PartInfo partInfo in Equipment.EquipmentManager.Instance.MainEquip.PartList)
            {
                System.Reflection.PropertyInfo[] propList = partInfo.Part.GetType().GetProperties();
                foreach (System.Reflection.PropertyInfo info in propList)
                {
                    if (info.PropertyType == typeof(FALibrary.Utility.FATime))
                    {
                        PageTimeSetting.FANamedTime time = new PageTimeSetting.FANamedTime();
                        time.Name = partInfo.Part.Name + " " + info.Name;
                        time.Time = (FALibrary.Utility.FATime)info.GetValue(partInfo.Part, null);
                        page.TimeList.Add(time);
                    }
                }
            }

            page.Initialize();
            framePartTimeSetting.Content = page;
        }
        private PageTimeSetting AddModuleTimeSettingPage(string name, FAFramework.Module.FAModule module, bool initialize)
        {
            PageTimeSetting page = new PageTimeSetting();

            page.Width = double.NaN;
            page.Height = double.NaN;
            page.HorizontalAlignment = System.Windows.HorizontalAlignment.Stretch;
            page.VerticalAlignment = System.Windows.VerticalAlignment.Stretch;

            Frame frame = new Frame();
            frame.Width = double.NaN;
            frame.Height = double.NaN;
            frame.HorizontalAlignment = System.Windows.HorizontalAlignment.Stretch;
            frame.VerticalAlignment = System.Windows.VerticalAlignment.Stretch;
            frame.Content = page;

            TabItem tabItem = new TabItem();
            tabItem.Height = 50;
            tabItem.Header = name;
            tabItem.Content = frame;
            tabControlModuleTimeSetting.Items.Add(tabItem);

            foreach (KeyValuePair<string, FALibrary.Utility.FATime> item in module.TimeList)
            {
                PageTimeSetting.FANamedTime time = new PageTimeSetting.FANamedTime();
                time.Name = item.Key;
                time.Time = item.Value;
                page.TimeList.Add(time);
            }

            if (initialize)
                page.Initialize();

            return page;
        }