コード例 #1
0
        /// <summary>
        /// Add a new code on the list.
        /// </summary>
        /// <param name="name">Application name.</param>
        /// <param name="code">Base32 string for code generation.</param>
        public void Add(string name, string code)
        {
            CodeDetail c = new CodeDetail(name, code);

            fpl_list.Controls.Add(c);

            SaveList();
        }
コード例 #2
0
 /// <summary>
 /// Remove code from list.
 /// </summary>
 /// <param name="c">CodeDetail to remove.</param>
 public void Remove(CodeDetail c)
 {
     fpl_list.Controls.Remove(c);
     SaveList();
 }