public RecognitionInformation(string pattern, string title, TitleType titleType = TitleType.Unknown, ItemType itemTypeFlags = ItemType.Directory)
 {
     Pattern = pattern;
     Title = title;
     TitleType = titleType;
     ItemTypeFlags = itemTypeFlags;
 }
Example #2
0
        internal AxisElement(GanttView view, XPathNavigator node)
            : base(view, node)
        {
            _scale = (ScaleLevel)Enum.Parse(typeof(ScaleLevel), Attributes[ScaleName].Value);
            _interval = int.Parse(Attributes[IntervalName].Value, CultureInfo.InvariantCulture);
            _format = Attributes[FormatName].Value;
            if(_scale == ScaleLevel.Week)
                _firstDay = (DayOfWeek)Enum.Parse(typeof(DayOfWeek), Attributes[FirstDayName].Value);

            if (Attributes.ContainsKey(TitleTypeName))
            {
                string titleTypeValue = Attributes[TitleTypeName].Value;
                if (!string.IsNullOrEmpty(titleTypeValue))
                {
                    _titleType = (TitleType)Enum.Parse(typeof(TitleType), titleTypeValue);
                }
            }

            if (Attributes.ContainsKey(WidthName))
            {
                string widthValue = Attributes[WidthName].Value;
                if (!string.IsNullOrEmpty(widthValue))
                {
                    this.Width = int.Parse(widthValue, NumberStyles.Integer, CultureInfo.InvariantCulture);
                }
            }
        }
Example #3
0
        public TitlesGump(PlayerMobile pm, TitleType type = TitleType.None, TitleCategory cat = TitleCategory.None, bool description = false)
            : base(50, 50)
        {
            User = pm;
            TitleType = type;
            Category = cat;

            AddPage(0);

            ButtonCallbacks = new Dictionary<GumpButton, Action<GumpButton>>();

            AddGumpLayout();
        }
Example #4
0
 public RegisterMember(Guid messageId, int customerId, string salutation, TitleType title, string firstName, string middleName, string lastName, DateTime dob,
                       GenderType gender, string email,
                       string mobile, string phone)
 {
     CustomerId = customerId;
     Salutation = salutation;
     Title      = title;
     FirstName  = firstName;
     MiddleName = middleName;
     LastName   = lastName;
     DoB        = dob;
     Gender     = gender;
     Email      = email;
     Mobile     = mobile;
     Phone      = phone;
 }
        private List <TitleType> DataTableToList(DataTable dt)
        {
            List <TitleType> list = new List <TitleType>();

            if (dt != null)
            {
                foreach (DataRow dr in dt.Rows)
                {
                    TitleType info = new TitleType();
                    info.TiteTypeId    = dr["TiteTypeId"] == DBNull.Value ? -100 : Convert.ToInt32(dr["TiteTypeId"]);
                    info.TitleTypeName = dr["TitleTypeName"] == DBNull.Value ? "" : dr["TitleTypeName"].ToString();
                    list.Add(info);
                }
            }
            return(list);
        }
Example #6
0
        public static string GenerateTitle(TitleType titleType, string text, string fieldName = null)
        {
            string ret;
            string titleTypeString;

            switch ((Int32)titleType)
            {
            case 2:
                titleTypeString = Properties.Resources.ErrorTitle;
                break;

            case 3:
                titleTypeString = Properties.Resources.HandTitle;
                break;

            case 4:
                titleTypeString = Properties.Resources.StopTitle;
                break;

            case 5:
                titleTypeString = Properties.Resources.QuestionTitle;
                break;

            case 6:
                titleTypeString = Properties.Resources.ExclamationTitle;
                break;

            case 7:
                titleTypeString = Properties.Resources.WarningTitle;
                break;

            case 8:
                titleTypeString = Properties.Resources.AsteriskTitle;
                break;

            case 9:
                titleTypeString = Properties.Resources.InformationTitle;
                break;

            default:
                titleTypeString = "";
                break;
            }

            ret = String.Concat(titleTypeString, String.IsNullOrEmpty(titleTypeString) ? "(" : " (", text, String.IsNullOrEmpty(fieldName) ? ")" : " - " + fieldName + ")");
            return(ret);
        }
        public Option <string> SelectTitle(AniListTitleData titleData, TitleType preferredTitleType,
                                           string metadataLanguage)
        {
            _log.Debug(
                $"Selecting title from {titleData} available, preference for {preferredTitleType}, metadata language '{metadataLanguage}'");

            var preferredTitle = FindPreferredTitle(titleData, preferredTitleType, metadataLanguage);

            preferredTitle.IfSome(t => _log.Debug($"Found title '{t}'"));

            if (preferredTitle.IsNone)
            {
                _log.Debug("No title found");
            }

            return(preferredTitle);
        }
        private static Option <PersonInfo> ToPersonInfo(IAniListNameSelector nameSelector,
                                                        TitleType preferredTitleType, string language, AniListCharacterData aniListCharacterData)
        {
            var voiceActor = aniListCharacterData.VoiceActors.Find(va =>
                                                                   string.Equals(va.Language, "JAPANESE", StringComparison.InvariantCultureIgnoreCase));

            var characterName  = nameSelector.SelectName(aniListCharacterData.Name, preferredTitleType, language);
            var voiceActorName = voiceActor.Bind(va => nameSelector.SelectName(va.Name, preferredTitleType, language));

            return(characterName.Bind(c => voiceActor.Bind(va => voiceActorName.Map(van => new PersonInfo
            {
                Name = van,
                Type = PersonType.Actor,
                Role = c,
                ImageUrl = va.Image.Large
            }))));
        }
Example #9
0
        private Option <ItemTitleData> FindPreferredTitle(IEnumerable <ItemTitleData> titles,
                                                          TitleType preferredTitleType, string metadataLanguage)
        {
            switch (preferredTitleType)
            {
            case TitleType.Localized:
                return(this.FindTitle(titles, metadataLanguage));

            case TitleType.Japanese:
                return(this.FindTitle(titles, "ja"));

            case TitleType.JapaneseRomaji:
                return(this.FindTitle(titles, "x-jat"));
            }

            return(Option <ItemTitleData> .None);
        }
        private Option <string> SelectTitle(Option <AniListTitleData> titleData, TitleType preference)
        {
            return(titleData.Map(t =>
            {
                switch (preference)
                {
                case TitleType.Localized:
                    return t.English;

                case TitleType.Japanese:
                    return t.Native;

                case TitleType.JapaneseRomaji:
                    return t.Romaji;

                default:
                    throw new ArgumentOutOfRangeException(nameof(preference), preference, null);
                }
            }).Bind(NoneIfNullOrWhitespace));
        }
Example #11
0
        public override void SetMenuData(object param)
        {
            base.SetMenuData(param);

            Hashtable table   = (Hashtable)param;
            TitleType type    = (TitleType)table["titleType"];
            string    _id     = (string)table["_id"];
            string    name    = (string)table["name"];
            int       level   = (int)table["level"];
            int       score   = (int)table["score"];
            int       worldId = (int)table["worldId"];

            ranking = (int)table["ranking"];
            int m_CombatPower = (int)table["m_CombatPower"];

            if (type == TitleType.Info_Title)
            {
                LTUIUtil.SetText(titleLabel, Info_Title);
                scoreLabel.transform.parent.gameObject.SetActive(true);
                LTUIUtil.SetText(scoreLabel, score.ToString());
                levelLabel.text = level.ToString();
                LTUIUtil.SetText(nameLabel, string.Format("{0}【{1}{2}】", name, worldId, EB.Localizer.GetString("ID_LOGIN_SERVER_NAME")));
                LTUIUtil.SetText(combatPowerLabel, m_CombatPower.ToString());
            }
            else if (type == TitleType.Enemy_Title)
            {
                LTUIUtil.SetText(titleLabel, Enemy_Title);
                scoreLabel.transform.parent.gameObject.SetActive(false);
            }

            List <OtherPlayerPartnerData> partnerDataList = null;

            if (dict.TryGetValue(_id, out partnerDataList))
            {
                Fill(partnerDataList);
            }
            else
            {
                ShowOtherPlayerData(_id);
            }
        }
Example #12
0
        /// <summary>
        /// Get anime title as specified by preference. Order matters. if nothing found, preferred title is returned
        /// </summary>
        /// <param name="anime">IAnime object representing the Anime the title has to be searched for</param>
        /// <param name="type">TitleType, eg. TitleType.Official or TitleType.Short </param>
        /// <param name="langs">Arguments Array taking in the TitleLanguages that should be search for.</param>
        /// <returns>string representing the Anime Title for the first language a title is found for</returns>
        private string GetTitleByPref(IAnime anime, TitleType type, params TitleLanguage[] langs)
        {
            //get all titles
            var titles = (List <AnimeTitle>)anime.Titles;

            //iterate over the given TitleLanguages in langs
            foreach (TitleLanguage lang in langs)
            {
                //set title to the first found title of the defined language. if nothing found title will stay null
                string title = titles.FirstOrDefault(s => s.Language == lang && s.Type == type)?.Title;

                //if title is found, aka title not null, return it
                if (title != null)
                {
                    return(title);
                }
            }

            //no title found for the preferred languages, return the preferred title as defined by shoko
            return(anime.PreferredTitle);
        }
Example #13
0
        public Provider GetByUserId(int userId)
        {
            ProfessionalDetail professionalDetail = null;
            TitleType          titleType          = null;
            GenderType         genderType         = null;
            Provider           provider           = null;
            UserProfile        userProfile        = null;
            string             procName           = "[dbo].[Users_UserProfiles_Providers_Join_Select_ByUserId_V2]";

            _data.ExecuteCmd(procName, inputParamMapper : delegate(SqlParameterCollection parameterCollection)
            {
                parameterCollection.AddWithValue("@UserId", userId);
            },
                             singleRecordMapper : delegate(IDataReader reader, short set)
            {
                provider = MapProvider(reader, professionalDetail, titleType, genderType, provider, userProfile);
            },
                             returnParameters: null);

            return(provider);
        }
Example #14
0
        private void TM(string msg, TitleType pTitleType)
        {
            if (this.InvokeRequired)
            {
                TitleMessageHandler d = new TitleMessageHandler(TM);
                this.Invoke(d, new object[] { msg, pTitleType });
                d = null;
            }
            else
            {
                this.lblTitleMessage.Text = msg;
                switch (pTitleType)
                {
                case TitleType.Content:
                    this.lblTitleMessage.ForeColor = Color.Black;
                    this.lblTitleMessage.BackColor = Color.White;
                    break;

                case TitleType.Success:
                    this.lblTitleMessage.ForeColor = Color.White;
                    this.lblTitleMessage.BackColor = Color.Green;
                    break;

                case TitleType.Important:
                    this.lblTitleMessage.ForeColor = Color.White;
                    this.lblTitleMessage.BackColor = Color.Blue;
                    break;

                case TitleType.Abnormal:
                    this.lblTitleMessage.ForeColor = Color.Black;
                    this.lblTitleMessage.BackColor = Color.Red;
                    break;

                case TitleType.Warning:
                    this.lblTitleMessage.ForeColor = Color.Black;
                    this.lblTitleMessage.BackColor = Color.Yellow;
                    break;
                }
            }
        }
Example #15
0
        public Title promptTitle(UInt64 rentalCode)
        {
            Console.WriteLine("Instanciating a new Title object:\n");
            Console.Write("\tName:\t");
            String name = Console.ReadLine();

            Console.Write("\tDescription:\t");
            String    description = Console.ReadLine();
            TitleType type        = promptTitleType();

            Console.WriteLine("Please review the information you have input:");
            Console.WriteLine("Title:");
            Console.WriteLine("\tName:\t" + name);
            Console.WriteLine("\tDescription:\t" + description);
            if (type == TitleType.NewRelease)
            {
                Console.WriteLine("\tTitle Type:\tNew Release");
            }
            if (type == TitleType.Promotional)
            {
                Console.WriteLine("\tTitle Type:\tPromotional");
            }
            if (type == TitleType.Normal)
            {
                Console.WriteLine("\tTile Type:\tNormal");
            }
            Console.WriteLine("Input \"y\" to confirm, or any other character to start over");
            String confirmation = Console.ReadLine().ToLower();

            if (confirmation == "y")
            {
                return(promptContent(rentalCode, name, description, type));
            }
            else
            {
                return(promptTitle(rentalCode));
            }
        }
Example #16
0
        private static Provider MapProvider(IDataReader reader, ProfessionalDetail professionalDetail, TitleType titleType, GenderType genderType, Provider provider, UserProfile userProfile)
        {
            int startingIndex = 0;

            provider          = new Provider();
            provider.Id       = reader.GetSafeInt32(startingIndex++);
            provider.Phone    = reader.GetSafeString(startingIndex++);
            provider.Fax      = reader.GetSafeString(startingIndex++);
            provider.Networks = reader.GetSafeString(startingIndex++);


            professionalDetail             = new ProfessionalDetail();
            provider.ProfessionalDetail    = professionalDetail;
            professionalDetail.Id          = reader.GetSafeInt32(startingIndex++);
            professionalDetail.NPI         = reader.GetSafeString(startingIndex++);
            professionalDetail.IsAccepting = reader.GetSafeBool(startingIndex++);

            titleType          = new TitleType();
            provider.TitleType = titleType;
            titleType.Id       = reader.GetSafeInt32(startingIndex++);
            titleType.Name     = reader.GetSafeString(startingIndex++);

            userProfile              = new UserProfile();
            provider.UserProfile     = userProfile;
            userProfile.Id           = reader.GetSafeInt32(startingIndex++);
            userProfile.FirstName    = reader.GetSafeString(startingIndex++);
            userProfile.LastName     = reader.GetSafeString(startingIndex++);
            userProfile.Mi           = reader.GetSafeString(startingIndex++);
            userProfile.AvatarUrl    = reader.GetSafeString(startingIndex++);
            userProfile.DateCreated  = reader.GetSafeDateTime(startingIndex++);
            userProfile.DateModified = reader.GetSafeDateTime(startingIndex++);

            genderType          = new GenderType();
            provider.GenderType = genderType;
            genderType.Id       = reader.GetSafeInt32(startingIndex++);
            genderType.Name     = reader.GetSafeString(startingIndex++);
            return(provider);
        }
        private Option <string> FindPreferredTitle(AniListTitleData titleData,
                                                   TitleType preferredTitleType, string metadataLanguage)
        {
            if (preferredTitleType == TitleType.Localized &&
                "ja".Equals(metadataLanguage, StringComparison.InvariantCultureIgnoreCase))
            {
                preferredTitleType = TitleType.Japanese;
            }

            switch (preferredTitleType)
            {
            case TitleType.Localized:
                return(SelectTitle(titleData, new[]
                {
                    TitleType.Localized,
                    TitleType.JapaneseRomaji,
                    TitleType.Japanese
                }));

            case TitleType.Japanese:
                return(SelectTitle(titleData, new[]
                {
                    TitleType.Japanese,
                    TitleType.JapaneseRomaji,
                    TitleType.Localized
                }));

            case TitleType.JapaneseRomaji:
                return(SelectTitle(titleData, new[]
                {
                    TitleType.JapaneseRomaji,
                    TitleType.Localized,
                    TitleType.Japanese
                }));
            }

            return(Option <string> .None);
        }
Example #18
0
 /// <summary>
 /// 插入标题
 /// </summary>
 /// <param name="Inner_objlist">标题填充内容List</param>
 /// <param name="Style">标题单元格样式</param>
 /// <param name="TitleType">标题类型 1列标题 2行标题</param>
 /// <param name="FillModel">(0,0)单元格填充模式</param>
 public void InsertTitle(IList <object> Inner_objlist, CellStyle Style, TitleType TitleType = TitleType.列标题, FillModel FillModel = FillModel.空出第一个单元格)
 {
     if (FillModel == FillModel.没有标题)
     {
         return;
     }
     for (int i = 0; i < Inner_objlist.Count; i++)
     {
         SCell scell = new SCell();
         scell.CStyle  = Style;
         scell.Txt_Obj = Inner_objlist[i];
         if (TitleType == ExcelFormat.TitleType.列标题)
         {
             if (FillModel == FillModel.列标题填充)
             {
                 scell.Y = i;
             }
             else
             {
                 scell.Y = i + 1;
             }
             this.SCells.Add(scell);
         }
         else if (TitleType == ExcelFormat.TitleType.行标题)
         {
             if (FillModel == FillModel.行标题填充)
             {
                 scell.X = i;
             }
             else
             {
                 scell.X = i + 1;
             }
             this.SCells.Add(scell);
         }
     }
 }
Example #19
0
        protected string GetTitle(TitleType type)
        {
            var r          = GetTitleTableName();
            var suffixName = "";

            if (type == TitleType.List)
            {
                r         += "_ListTitle";
                suffixName = UI.TitleList;
            }
            else if (type == TitleType.Create)
            {
                r         += "_EditorTitle";
                suffixName = UI.TitleCreate;
            }
            else if (type == TitleType.Editor)
            {
                r         += "_EditorTitle";
                suffixName = UI.TitleEdit;
            }
            else if (type == TitleType.Show)
            {
                r         += "_EditorTitle";
                suffixName = UI.TitleShow;
            }

            if (ResourceMan != null)
            {
                var rsm = ResourceMan.GetString(r);
                return((rsm.IsEmpty() ? r : rsm) + suffixName);
            }
            else
            {
                var rsm = XmlLangHtmlExtender.L(r);
                return((rsm.IsEmpty() ? r : rsm) + suffixName);
            }
        }
Example #20
0
                /// <summary>
                /// 获取等级文本
                /// </summary>
                /// <param name="titleType">文本类型</param>
                /// <param name="title">文本</param>
                /// <returns></returns>
                private static string GetContentGrade(TitleType titleType, string title)
        {
            switch (titleType)
            {
            case TitleType.默认:
                break;

            case TitleType.一级:
                title = "# " + title;
                break;

            case TitleType.二级:
                title = "## " + title;
                break;

            case TitleType.级:
                title = "### " + title;
                break;

            case TitleType.四级:
                title = "#### " + title;
                break;

            case TitleType.五级:
                title = "##### " + title;
                break;

            case TitleType.六级:
                title = "###### " + title;
                break;

            default:
                break;
            }
            return(title);
        }
        private DataTable GetDataTableFromRepeater()
        {
            DataRow   row;
            DataTable dataTable = new DataTable();

            dataTable.Columns.Add("FieldName");
            dataTable.Columns.Add("FieldValue");
            dataTable.Columns.Add("FieldType");
            dataTable.Columns.Add("FieldLevel");
            foreach (RepeaterItem item in this.RepModel.Items)
            {
                FieldControl control = (FieldControl)item.FindControl("Field");
                switch (control.ControlType)
                {
                case FieldType.PictureType:
                {
                    PictureType type2 = (PictureType)control.FindControl("EasyOne2007");
                    row = dataTable.NewRow();
                    row["FieldName"]  = control.FieldName;
                    row["FieldValue"] = type2.FieldValue;
                    row["FieldType"]  = control.ControlType;
                    row["FieldLevel"] = control.FieldLevel;
                    dataTable.Rows.Add(row);
                    if ((control.Settings.Count > 7) && DataConverter.CBoolean(control.Settings[7]))
                    {
                        DataRow row2 = dataTable.NewRow();
                        row2["FieldName"]  = "UploadFiles";
                        row2["FieldValue"] = type2.UploadFiles;
                        row2["FieldType"]  = FieldType.TextType;
                        row2["FieldLevel"] = 0;
                        dataTable.Rows.Add(row2);
                    }
                    continue;
                }

                case FieldType.FileType:
                {
                    FileType type3 = (FileType)control.FindControl("EasyOne2007");
                    row = dataTable.NewRow();
                    row["FieldName"]  = control.FieldName;
                    row["FieldValue"] = type3.FieldValue;
                    row["FieldType"]  = control.ControlType;
                    row["FieldLevel"] = control.FieldLevel;
                    dataTable.Rows.Add(row);
                    if (DataConverter.CBoolean(control.Settings[3]))
                    {
                        DataRow row3 = dataTable.NewRow();
                        row3["FieldName"]  = control.Settings[4];
                        row3["FieldValue"] = type3.FileSize;
                        row3["FieldType"]  = FieldType.TextType;
                        row3["FieldLevel"] = control.FieldLevel;
                        dataTable.Rows.Add(row3);
                    }
                    continue;
                }

                case FieldType.NodeType:
                {
                    EasyOne.WebSite.Controls.FieldControl.NodeType type5 = (EasyOne.WebSite.Controls.FieldControl.NodeType)control.FindControl("EasyOne2007");
                    row = dataTable.NewRow();
                    row["FieldName"]  = control.FieldName;
                    row["FieldValue"] = type5.FieldValue;
                    row["FieldType"]  = control.ControlType;
                    row["FieldLevel"] = control.FieldLevel;
                    dataTable.Rows.Add(row);
                    row = dataTable.NewRow();
                    row["FieldName"]  = "infoid";
                    row["FieldValue"] = type5.InfoNodeId;
                    row["FieldType"]  = FieldType.InfoType;
                    row["FieldLevel"] = control.FieldLevel;
                    dataTable.Rows.Add(row);
                    continue;
                }

                case FieldType.InfoType:
                {
                    continue;
                }

                case FieldType.AuthorType:
                {
                    if ((control.Settings.Count > 1) && DataConverter.CBoolean(control.Settings[1]))
                    {
                        this.Session["AuthorValue"] = control.Value;
                    }
                    row = dataTable.NewRow();
                    row["FieldName"]  = control.FieldName;
                    row["FieldValue"] = control.Value;
                    row["FieldType"]  = control.ControlType;
                    row["FieldLevel"] = control.FieldLevel;
                    dataTable.Rows.Add(row);
                    continue;
                }

                case FieldType.SourceType:
                {
                    if ((control.Settings.Count > 1) && DataConverter.CBoolean(control.Settings[1]))
                    {
                        this.Session["SourceValue"] = control.Value;
                    }
                    row = dataTable.NewRow();
                    row["FieldName"]  = control.FieldName;
                    row["FieldValue"] = control.Value;
                    row["FieldType"]  = control.ControlType;
                    row["FieldLevel"] = control.FieldLevel;
                    dataTable.Rows.Add(row);
                    continue;
                }

                case FieldType.KeywordType:
                {
                    row = dataTable.NewRow();
                    row["FieldName"]  = control.FieldName;
                    row["FieldValue"] = StringHelper.ReplaceChar(control.Value.Trim(), ' ', '|');
                    row["FieldType"]  = control.ControlType;
                    row["FieldLevel"] = control.FieldLevel;
                    dataTable.Rows.Add(row);
                    continue;
                }

                case FieldType.ContentType:
                {
                    ContentType type = (ContentType)control.FindControl("EasyOne2007");
                    row = dataTable.NewRow();
                    row["FieldName"]  = control.FieldName;
                    row["FieldValue"] = type.Content;
                    row["FieldType"]  = control.ControlType;
                    row["FieldLevel"] = control.FieldLevel;
                    dataTable.Rows.Add(row);
                    if (type.SaveRemotePic)
                    {
                        if (string.IsNullOrEmpty(this.m_ContentFieldName))
                        {
                            break;
                        }
                        this.m_ContentFieldName = this.m_ContentFieldName + "$" + control.FieldName;
                    }
                    continue;
                }

                case FieldType.TitleType:
                {
                    TitleType type6 = (TitleType)control.FindControl("EasyOne2007");
                    row = dataTable.NewRow();
                    row["FieldName"]  = control.FieldName;
                    row["FieldValue"] = control.Value;
                    row["FieldType"]  = control.ControlType;
                    row["FieldLevel"] = control.FieldLevel;
                    dataTable.Rows.Add(row);
                    string pinyinTitle = type6.PinyinTitle;
                    if (string.IsNullOrEmpty(pinyinTitle))
                    {
                        pinyinTitle = ChineseSpell.MakeSpellCode(control.Value, SpellOptions.EnableUnicodeLetter);
                    }
                    row = dataTable.NewRow();
                    row["FieldName"]  = "PinyinTitle";
                    row["FieldValue"] = pinyinTitle;
                    row["FieldType"]  = FieldType.TextType;
                    row["FieldLevel"] = 0;
                    dataTable.Rows.Add(row);
                    continue;
                }

                case FieldType.MultiplePhotoType:
                {
                    MultiplePhotoType type4 = (MultiplePhotoType)control.FindControl("EasyOne2007");
                    row = dataTable.NewRow();
                    row["FieldName"]  = control.FieldName;
                    row["FieldValue"] = type4.FieldValue;
                    row["FieldType"]  = control.ControlType;
                    row["FieldLevel"] = control.FieldLevel;
                    dataTable.Rows.Add(row);
                    continue;
                }

                default:
                    goto Label_0773;
                }
                this.m_ContentFieldName = this.m_ContentFieldName + control.FieldName;
                continue;
Label_0773:
                row = dataTable.NewRow();
                row["FieldName"]  = control.FieldName;
                row["FieldValue"] = control.Value;
                row["FieldType"]  = control.ControlType;
                row["FieldLevel"] = control.FieldLevel;
                dataTable.Rows.Add(row);
            }
            if (this.m_Action == "add")
            {
                row = dataTable.NewRow();
                row["FieldName"]  = "Inputer";
                row["FieldValue"] = PEContext.Current.Admin.UserName;
                row["FieldType"]  = FieldType.TextType;
                row["FieldLevel"] = 0;
                dataTable.Rows.Add(row);
            }
            if (GetStatusFromDataTable(dataTable) == 0x63)
            {
                row = dataTable.NewRow();
                row["FieldName"]  = "Editor";
                row["FieldValue"] = PEContext.Current.Admin.AdminName;
                row["FieldType"]  = FieldType.TextType;
                row["FieldLevel"] = 0;
                dataTable.Rows.Add(row);
                row = dataTable.NewRow();
                row["FieldName"]  = "PassedTime";
                row["FieldValue"] = DateTime.Now.ToString("yyyy-MM-dd");
                row["FieldType"]  = FieldType.DateTimeType;
                row["FieldLevel"] = 0;
                dataTable.Rows.Add(row);
            }
            return(dataTable);
        }
Example #22
0
 public async Task<IEnumerable<SelectListItem>> GetAsSelectListItemAsync(TitleType type, Guid? selectedId)
 {
     var titles = await _titles.AsNoTracking()
         .Where(a => a.Type == type).OrderByDescending(a => a.Name)
         .ProjectTo<SelectListItem>(_mappingEngine)
         .Cacheable()
         .ToListAsync();
     if (selectedId != null) titles.ForEach(a => a.Selected = selectedId.Value.ToString() == a.Value);
     return titles;
 }
 public void SetTitle(CellReference titleReference)
 {
     titleType = TitleType.CellReference;
     titleRef  = titleReference;
 }
Example #24
0
        public async Task<bool> IsByNameExist(string name, Guid? id, TitleType type, TitleCategory category)
        {

            var titles = await _titles.Select(a => new { Id = a.Id, Name = a.Name, Type = a.Type, Category = a.Category }).ToListAsync();
            return id == null
                ? titles.Any(
                    a =>
                        a.Name.GetFriendlyPersianName() == name.GetFriendlyPersianName() && a.Type == type &&
                        a.Category == category)
                : titles.Any(
                    a =>
                        a.Id != id & a.Name.GetFriendlyPersianName() == name.GetFriendlyPersianName() && a.Type == type &&
                        a.Category == category);

        }
Example #25
0
		/// ------------------------------------------------------------------------------------
		/// <summary>
		/// Write out either a secondary or tertiary title segment as a separate &lt;title&gt;
		/// element, taking footnotes into account.
		/// </summary>
		/// <param name="dictBackTrans"></param>
		/// <param name="mapWsBackTransRunIndex"></param>
		/// <param name="mapWsStatus"></param>
		/// <param name="ttState"></param>
		/// <param name="data"></param>
		/// <param name="xinfo"></param>
		/// <param name="ws"></param>
		/// <param name="ttWant"></param>
		/// <param name="fExportAnnotation"></param>
		/// <returns></returns>
		/// ------------------------------------------------------------------------------------
		private TitleType WriteSubtitle(Dictionary<int, ITsString> dictBackTrans,
			Dictionary<int, int> mapWsBackTransRunIndex, Dictionary<int, string> mapWsStatus, TitleType ttState,
			string data, OxesInfo xinfo, int ws, TitleType ttWant, ref bool fExportAnnotation)
		{
			if (ttState != ttWant)
			{
				if (ttState != TitleType.kttNone)
					m_writer.WriteEndElement();		// </title>
				m_writer.WriteStartElement(xinfo.XmlTag);
				m_writer.WriteAttributeString(xinfo.AttrName, xinfo.AttrValue);
				if (fExportAnnotation)
				{
					ExportAnyRelatedAnnotation();
					fExportAnnotation = false;
				}
			}
			OpenTrGroupIfNeeded();
			OpenTranslationElementIfNeeded();
			bool fForeign = MarkForeignIfNeeded(m_cache.DefaultVernWs, ws);
			m_writer.WriteString(data);
			if (fForeign)
				m_writer.WriteEndElement();	// </foreign>
			CloseTranslationElementIfNeeded();
			WriteTitleBackTrans(mapWsStatus, dictBackTrans, mapWsBackTransRunIndex, ttWant);
			CloseTrGroupIfNeeded();
			return ttWant;
		}
Example #26
0
 public Task<bool> IsEnableCategorySelection(TitleType type)
 {
     return Task.FromResult(type == TitleType.CourseContent);
 }
Example #27
0
 private string SelectTitle(AniDbEpisodeData aniDbEpisodeData, TitleType preferredTitleType,
                            string metadataLanguage)
 {
     return(_titleSelector.SelectTitle(aniDbEpisodeData.Titles, preferredTitleType, metadataLanguage)
            .Match(t => t.Title, () => ""));
 }
 //画标题
 private void DrawCaptionText(
     Graphics g, Rectangle textRect, string text, Font font, TitleType Effect, Color EffetBack, int EffectWidth, Color FrmColor, Point TitleOffset)
 {
     if (Effect == TitleType.EffectTitle)
     {
         Size txtsize = TextRenderer.MeasureText(text, font);
         Image imgtext = SkinTools.ImageLightEffect(text, font, FrmColor, EffetBack, EffectWidth, new Rectangle(0, 0, textRect.Width, txtsize.Height), true);
         g.DrawImage(imgtext, textRect.X - EffectWidth / 2 + TitleOffset.X, textRect.Y - EffectWidth / 2 + TitleOffset.Y
     );
     }
     else if (Effect == TitleType.Title)
     {
         textRect.X += TitleOffset.X;
         textRect.Y += TitleOffset.Y;
         TextRenderer.DrawText(
             g,
             text,
             font,
             textRect,
             FrmColor,
             TextFormatFlags.VerticalCenter |
             TextFormatFlags.Left |
             TextFormatFlags.SingleLine |
             TextFormatFlags.WordEllipsis);
     }
 }
Example #29
0
        public void SelectName_NonJapanesePreferred_ReturnsFirstNameFollowedByLastName(TitleType preferredType)
        {
            var nameData = new AniListPersonNameData("First", "Last", "Native");

            var result = this.nameSelector.SelectName(nameData, preferredType, "en");

            result.IsSome.Should().BeTrue();
            result.IfSome(r => r.Should().Be("First Last"));
        }
Example #30
0
 public static void CalculateInterval(TitleType i_titleType)
 {
     DateTime begin = new DateTime(1, 1, 1);
     DateTime doom = new DateTime(1337, 1, 1);
     foreach (Title title in China.titles)
     {
         if (title.TitleType == i_titleType)
         {
             if (title.fictional)
             {
                 if (title.captial != null && title.captial.TitleType != TitleType.Baron && title.captial.TitleType != TitleType.Emporer)
                 {
                     bool isLiegeFound = false;
                     foreach (KeyValuePair<DateTime, DateTime> entry in title.captial.Intervals)
                     {
                         title.Intervals.Add(entry.Key, entry.Value);
                         if (!isLiegeFound)
                         {
                             isLiegeFound = true;
                             if (title.liege != null)
                             {
                                 title.lieges.Add(entry.Key, rootNode);
                             }
                         }
                         Person temp = new Person();
                         temp.id = 0;
                         if (entry.Value != doom)
                         {
                             title.history.Add(entry.Value, temp);
                         }
                     }
                 }
                 else
                 {
                     title.Intervals.Add(begin, doom);
                 }
             }
             else
             {
                 if (title.DateTimes.Count > 0)
                 {
                     bool isOn = false;
                     DateTime beginDateTime = new DateTime();
                     foreach (KeyValuePair<DateTime, string> entry in title.DateTimes)
                     {
                         if (entry.Value == rootNode)
                         {
                             isOn = true;
                             beginDateTime = entry.Key;
                         }
                         else
                         {
                             if (isOn)
                             {
                                 isOn = false;
                                 title.Intervals.Add(beginDateTime, entry.Key);
                             }
                         }
                     }
                 }
                 else
                 {
                     title.Intervals.Add(begin, doom);
                 }
             }
         }
     }
 }
Example #31
0
        /// <summary>
        /// Manage TitleType object.
        /// If the object is of type CustomObjectBase, 
        /// then either insert values into, delete values from, or update values in TitleType.
        /// </summary>
        /// <param name="sqlConnection">Sql connection or null.</param>
        /// <param name="sqlTransaction">Sql transaction or null.</param>
        /// <param name="value">Object of type TitleType.</param>
        /// <returns>Object of type CustomDataAccessStatus<TitleType>.</returns>
        public CustomDataAccessStatus<TitleType> TitleTypeManageAuto(
            SqlConnection sqlConnection,
            SqlTransaction sqlTransaction,
            TitleType value)
        {
            if (value.IsNew && !value.IsDeleted)
            {

                TitleType returnValue = TitleTypeInsertAuto(sqlConnection, sqlTransaction,
                    value.TitleTypeID,
                        value.TitleType,
                        value.TitleTypeDescription);

                return new CustomDataAccessStatus<TitleType>(
                    CustomDataAccessContext.Insert,
                    true, returnValue);
            }
            else if (!value.IsNew && value.IsDeleted)
            {
                if (TitleTypeDeleteAuto(sqlConnection, sqlTransaction,
                    value.TitleTypeID))
                {
                return new CustomDataAccessStatus<TitleType>(
                    CustomDataAccessContext.Delete,
                    true, value);
                }
                else
                {
                return new CustomDataAccessStatus<TitleType>(
                    CustomDataAccessContext.Delete,
                    false, value);
                }
            }
            else if (value.IsDirty && !value.IsDeleted)
            {

                TitleType returnValue = TitleTypeUpdateAuto(sqlConnection, sqlTransaction,
                    value.TitleTypeID,
                        value.TitleType,
                        value.TitleTypeDescription);

                return new CustomDataAccessStatus<TitleType>(
                    CustomDataAccessContext.Update,
                    true, returnValue);
            }
            else
            {
                return new CustomDataAccessStatus<TitleType>(
                    CustomDataAccessContext.NA,
                    false, value);
            }
        }
 public void SetTitle(string title)
 {
     titleType = TitleType.String;
     titleValue = title;
 }
        protected void RepModel_OnItemDataBound(object sender, RepeaterItemEventArgs e)
        {
            if ((e.Item.ItemType == ListItemType.Item) || (e.Item.ItemType == ListItemType.AlternatingItem))
            {
                FieldControl control     = (FieldControl)e.Item.FindControl("Field");
                FieldInfo    dataItem    = (FieldInfo)e.Item.DataItem;
                FieldType    controlType = control.ControlType;
                switch (controlType)
                {
                case FieldType.LookType:
                {
                    int modelId = DataConverter.CLng(dataItem.Settings[0]);
                    if (!Field.FieldExists(modelId, dataItem.Settings[1]))
                    {
                        Field.SetDisabled(dataItem.FieldName, modelId, true);
                        e.Item.Visible = false;
                    }
                    break;
                }

                case FieldType.NodeType:
                    control.Value = this.m_NodeId.ToString();
                    break;
                }
                if (this.m_Action == "add")
                {
                    if ((((controlType == FieldType.AuthorType) && string.IsNullOrEmpty(dataItem.DefaultValue)) && ((dataItem.Settings.Count > 1) && DataConverter.CBoolean(dataItem.Settings[1]))) && (this.Session["AuthorValue"] != null))
                    {
                        control.Value = this.Session["AuthorValue"].ToString();
                    }
                    if ((((controlType == FieldType.SourceType) && string.IsNullOrEmpty(dataItem.DefaultValue)) && ((dataItem.Settings.Count > 1) && DataConverter.CBoolean(dataItem.Settings[1]))) && (this.Session["SourceValue"] != null))
                    {
                        control.Value = this.Session["SourceValue"].ToString();
                    }
                }
                if (controlType == FieldType.ContentType)
                {
                    ((ContentType)control.FindControl("EasyOne2007")).IsUpload = true;
                }
                HtmlControl control2 = this.InitTabByFieldType(e, dataItem);
                if (this.m_Action == "modify")
                {
                    if (((BasePage.RequestInt32("LinkType") == 1) && (dataItem.FieldLevel == 1)) && control.FindControl("EasyOne2007").Visible)
                    {
                        if (this.arrTrs0.Length > (control2.ClientID.Length + 3))
                        {
                            this.arrTrs0.Remove((this.arrTrs0.Length - control2.ClientID.Length) - 3, control2.ClientID.Length + 3);
                        }
                        else
                        {
                            this.arrTrs0.Remove((this.arrTrs0.Length - control2.ClientID.Length) - 2, control2.ClientID.Length + 2);
                        }
                        control.FindControl("EasyOne2007").Visible = false;
                    }
                    if (controlType == FieldType.ContentType)
                    {
                        ContentType type2 = (ContentType)control.FindControl("EasyOne2007");
                        type2.Content       = ContentManage.ToFieldType(this.m_ContentDataTable.Rows[0][dataItem.FieldName].ToString(), dataItem.FieldType);
                        type2.DefaultPicurl = ContentManage.ToFieldType(this.m_ContentDataTable.Rows[0]["DefaultPicurl"].ToString(), FieldType.TextType);
                    }
                    else
                    {
                        control.Value = ContentManage.ToFieldType(this.m_ContentDataTable.Rows[0][dataItem.FieldName].ToString(), dataItem.FieldType);
                    }
                    if ((controlType == FieldType.PictureType) && (dataItem.FieldLevel == 0))
                    {
                        PictureType type3 = (PictureType)control.FindControl("EasyOne2007");
                        type3.UploadFiles = ContentManage.ToFieldType(this.m_ContentDataTable.Rows[0]["UploadFiles"].ToString(), FieldType.TextType);
                    }
                    if (controlType == FieldType.FileType)
                    {
                        FileType type4 = (FileType)control.FindControl("EasyOne2007");
                        if (DataConverter.CBoolean(dataItem.Settings[3]))
                        {
                            type4.FileSize = ContentManage.ToFieldType(this.m_ContentDataTable.Rows[0][dataItem.Settings[4]].ToString(), dataItem.FieldType);
                        }
                    }
                    if ((string.Compare("UpdateTime", control.FieldName) == 0) && (control.FieldLevel == 0))
                    {
                        control.Value = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
                    }
                    if (controlType == FieldType.KeywordType)
                    {
                        control.Value = StringHelper.ReplaceChar(control.Value, '|', ' ');
                    }
                    if (((controlType == FieldType.TitleType) && (control.Settings.Count > 3)) && DataConverter.CBoolean(control.Settings[3]))
                    {
                        TitleType type5 = (TitleType)control.FindControl("EasyOne2007");
                        type5.PinyinTitle = this.m_ContentDataTable.Rows[0]["PinyinTitle"].ToString();
                    }
                }
            }
        }
Example #34
0
 public virtual async Task<ActionResult> IsEnableCategory(TitleType type)
 {
     var isEnable = await _titleService.IsEnableCategorySelection(type);
     return isEnable ? Content("ok") : Content("nok");
 }
Example #35
0
 public IEnumerable <IPropertyMapping> GetEpisodeMappings(int maxGenres, bool addAnimeGenre,
                                                          bool moveExcessGenresToTags, TitleType preferredTitleType, string metadataLanguage)
 {
     return(new IPropertyMapping[]
     {
         MapEpisode("Name", t => t.Item.Name,
                    (s, t) => t.Item.Name = SelectTitle(s, preferredTitleType, metadataLanguage)),
         MapEpisode("Release date", t => t.Item.PremiereDate, (s, t) => t.Item.PremiereDate = s.AirDate),
         MapEpisode("Runtime", t => t.Item.RunTimeTicks,
                    (s, t) => t.Item.RunTimeTicks = new TimeSpan(0, s.TotalMinutes, 0).Ticks,
                    (s, t) => s.TotalMinutes > 0),
         MapEpisode("Community rating", t => t.Item.CommunityRating,
                    (s, t) => t.Item.CommunityRating = s.Rating?.Rating,
                    (s, t) => s.Rating?.Rating > 0),
         MapEpisode("Overview", t => t.Item.Overview, (s, t) => t.Item.Overview = s.Summary,
                    (s, t) => !string.IsNullOrWhiteSpace(s.Summary)),
         MapEpisodeFromSeriesData("Studios", t => t.Item.Studios,
                                  (s, t) => t.Item.Studios = _aniDbParser.GetStudios(s).ToArray()),
         MapEpisodeFromSeriesData("Genres", t => t.Item.Genres,
                                  (s, t) => t.Item.Genres.AddRange(_aniDbParser.GetGenres(s, maxGenres, addAnimeGenre))),
         MapEpisodeFromSeriesData("Tags", t => t.Item.Tags,
                                  (s, t) => t.Item.Tags = _aniDbParser.GetTags(s, maxGenres, addAnimeGenre).ToArray()),
         MapEpisodeFromSeriesData("People", t => t.People,
                                  (s, t) => t.People = _aniDbParser.GetPeople(s).ToList())
     });
 }
Example #36
0
 public VideoTitle(String name, int year)
 {
     Name = name;
     Year = year;
     Type = TitleType.New;
 }
Example #37
0
		/// ------------------------------------------------------------------------------------
		/// <summary>
		/// Write out the current back translation segment of the title that matches the given TitleState
		/// (main, secondary, or tertiary).
		/// </summary>
		/// <param name="mapWsStatus"></param>
		/// <param name="dictBackTrans"></param>
		/// <param name="mapWsBackTransRunIndex"></param>
		/// <param name="ttState"></param>
		/// ------------------------------------------------------------------------------------
		private void WriteTitleBackTrans(Dictionary<int, string> mapWsStatus, Dictionary<int, ITsString> dictBackTrans,
			Dictionary<int, int> mapWsBackTransRunIndex, TitleType ttState)
		{
			bool fCloseTrGroup = false;
			foreach (int ws in dictBackTrans.Keys)
			{
				ITsString tss = dictBackTrans[ws];
				int irun = mapWsBackTransRunIndex[ws];
				bool fBackTransOpen = false;
				for (; irun < tss.RunCount; ++irun)
				{
					string data = tss.get_RunText(irun);
					if (!String.IsNullOrEmpty(data))
						data = data.Normalize();
					if (IsObjectReference(data))
					{
						// presumably a footnote.
						if (fBackTransOpen)
							break;		// stop at a trailing footnote.
						else
							continue;	// skip a leading footnote.
					}
					ITsTextProps ttp = tss.get_Properties(irun);
					string styleName = ttp.GetStrPropValue((int)FwTextPropType.ktptNamedStyle);
					bool fImpliedStyle = false;
					if (styleName == ScrStyleNames.SecondaryBookTitle)
					{
						if (ttState != TitleType.kttSecondary)
							break;
						fImpliedStyle = true;
					}
					else if (styleName == ScrStyleNames.TertiaryBookTitle)
					{
						if (ttState != TitleType.kttTertiary)
							break;
						fImpliedStyle = true;
					}
					else
					{
						if (ttState != TitleType.kttMain)
							break;
					}
					if (OpenTrGroupIfNeeded())
						fCloseTrGroup = true;
					if (!fBackTransOpen)
					{
						string status;
						mapWsStatus.TryGetValue(ws, out status);
						MarkBackTranslation(ws, status, false);
						fBackTransOpen = true;
						m_writer.Formatting = Formatting.None;
					}
					OxesInfo xinfo = OxesInfo.GetOxesInfoForCharStyle(styleName);
					if (!fImpliedStyle && !String.IsNullOrEmpty(xinfo.XmlTag))
					{
						m_writer.WriteStartElement(xinfo.XmlTag);
						if (!String.IsNullOrEmpty(xinfo.AttrName) && !String.IsNullOrEmpty(xinfo.AttrValue))
							m_writer.WriteAttributeString(xinfo.AttrName, xinfo.AttrValue);
					}
					m_writer.WriteString(data);
					if (!fImpliedStyle && !String.IsNullOrEmpty(xinfo.XmlTag))
						m_writer.WriteEndElement();
				}
				if (fBackTransOpen)
				{
					m_writer.WriteEndElement();
					if (!InFootnote) // Don't want to add whitespace if we're in a footnote or picture since they need to be inline.
						m_writer.Formatting = Formatting.Indented;
				}
				mapWsBackTransRunIndex[ws] = irun;
			}
			if (fCloseTrGroup)
				CloseTrGroupIfNeeded();
		}
Example #38
0
 public void Title(Player player, string text, TitleType type)
 {
     player.SendTitle(text, type);
 }
Example #39
0
 public VideoTitle(String name, int year, TitleType type)
 {
     Name = name;
     Year = year;
     Type = type;
 }
Example #40
0
 public IEnumerable <IPropertyMapping> GetSeriesMappings(int maxGenres, bool addAnimeGenre,
                                                         bool moveExcessGenresToTags, TitleType preferredTitleType, string metadataLanguage)
 {
     return(new IPropertyMapping[]
     {
         MapSeries("Name", t => t.Item.Name,
                   (s, t) => t.Item.Name = SelectTitle(s, preferredTitleType, metadataLanguage)),
         MapSeries("Release date", t => t.Item.PremiereDate, (s, t) => t.Item.PremiereDate = s.StartDate,
                   (s, t) => s.StartDate.HasValue),
         MapSeries("End date", t => t.Item.EndDate, (s, t) => t.Item.EndDate = s.EndDate,
                   (s, t) => s.EndDate.HasValue),
         MapSeries("Community rating", t => t.Item.CommunityRating,
                   (s, t) => t.Item.CommunityRating = s.Ratings?.OfType <PermanentRatingData>().Single().Value,
                   (s, t) => s.Ratings?.OfType <PermanentRatingData>().Count() == 1),
         MapSeries("Overview", t => t.Item.Overview,
                   (s, t) => t.Item.Overview = _aniDbParser.FormatDescription(s.Description),
                   (s, t) => !string.IsNullOrWhiteSpace(s.Description)),
         MapSeries("Studios", t => t.Item.Studios,
                   (s, t) => t.Item.Studios = _aniDbParser.GetStudios(s).ToArray()),
         MapSeries("Genres", t => t.Item.Genres,
                   (s, t) => t.Item.Genres.AddRange(_aniDbParser.GetGenres(s, maxGenres, addAnimeGenre))),
         MapSeries("Tags", t => t.Item.Tags,
                   (s, t) => t.Item.Tags = _aniDbParser.GetTags(s, maxGenres, addAnimeGenre).ToArray()),
         MapSeries("People", t => t.People, (s, t) => t.People = _aniDbParser.GetPeople(s).ToList())
     });
 }
Example #41
0
 public static string DisplayTitleType(TitleType titleType)
 {
     return(titleTypeConverter.Convert(titleType));
 }
Example #42
0
                /// <summary>
                /// 调用自定义机器人发Markdown类型消息
                /// </summary>
                /// <param name="webhook">webHook地址</param>
                /// <param name="title">消息标题</param>
                /// <param name="titleType">标题类型等级</param>
                /// <param name="markdownMessages">消息内容</param>
                /// <param name="atMobiles">被@手机号</param>
                /// <param name="isAtAll">@所有人时:true,否则为:false</param>
                /// <returns></returns>
                public static BaseResult <object> SendMarkdownMessage(string webhook, string title, TitleType titleType, List <MarkdownMessage> markdownMessages, List <string> atMobiles, bool isAtAll)
        {
            var result = new BaseResult <object>();

            try
            {
                                //@手机号
                var mobiles = "";
                if (!isAtAll)
                {
                    mobiles = GetAtMobiles(atMobiles);
                }
                                //消息内容头部(标题+被@的人;注:自动换行)
                                var textTop = GetContentGrade(titleType, title) + "\n >" + mobiles + "\n >";
                                //消息内容
                                var text = textTop + RestructureMessage(markdownMessages);
                object message           = new
                {
                    msgtype  = "markdown",
                    markdown = new
                    {
                        title = title,
                        text  = text,
                    },
                    at = new
                    {
                        atMobiles = atMobiles,
                        isAtAll   = isAtAll,
                    }
                };
                return(SendMessage(webhook, message));
            }
            catch (Exception ex)
            {
                result.SetError(ex.Message);
                return(result);
            }
        }
 public void SetTitle(string title)
 {
     titleType  = TitleType.String;
     titleValue = title;
 }
Example #44
0
 /// <summary>
 /// Update values in TitleType. Returns an object of type TitleType.
 /// </summary>
 /// <param name="sqlConnection">Sql connection or null.</param>
 /// <param name="sqlTransaction">Sql transaction or null.</param>
 /// <param name="value">Object of type TitleType.</param>
 /// <returns>Object of type TitleType.</returns>
 public TitleType TitleTypeUpdateAuto(
     SqlConnection sqlConnection,
     SqlTransaction sqlTransaction,
     TitleType value)
 {
     return TitleTypeUpdateAuto(sqlConnection, sqlTransaction,
         value.TitleTypeID,
         value.TitleType,
         value.TitleTypeDescription);
 }
 public void SetTitle(CellReference titleReference)
 {
     titleType = TitleType.CellReference;
     titleRef = titleReference;
 }