Exemplo n.º 1
0
        private List <string> GetAliases(Domino.NotesForm form)
        {
            List <string> aliases = new List <string>();

            string[] names = ((object[])form.Aliases).Cast <string>().ToArray();
            aliases.AddRange(names);
            return(aliases);
        }
Exemplo n.º 2
0
 /// <summary>
 /// NotesFormからインスタンスを生成する
 /// </summary>
 /// <param name="form"></param>
 internal Form(int formNo, Domino.NotesForm form, IDatabase db)
 {
     this._form        = form;
     this._formNo      = formNo;
     this._name        = form.Name;
     this.DisplayName  = form.Name;
     this._notesUrl    = form.NotesURL;
     this._aliases     = GetAliases(form);
     this._formDxl     = string.Empty;
     this._formDxl     = db.DxlReader.GetFormDxl(this._name);
     this.HasDispForm  = true;
     this.HasEditForm  = true;
     this.HasNewForm   = true;
     this.DispFormName = "DispForm_" + formNo + ".aspx";
     this.NewFormName  = "NewForm_" + formNo + ".aspx";
     this.EditFormName = "EditForm_" + formNo + ".aspx";
     this._fields      = GetFields(db);
 }