Esempio n. 1
0
        /// <summary>Opens a ListBuilder for the given Word List, or focusses an existing ListBuilder
        /// if one exists.</summary>
        public static ListBuilder Open(long setID)
        {
            foreach (Form f in Application.OpenForms)
            {
                var lb = f as ListBuilder;
                if (lb == null || lb.WordList.ID != setID)
                {
                    continue;
                }

                lb.BringToFront();
                return(lb);
            }

            var list = DataStore.Database.GetWordList(setID);

            if (list == null)
            {
                return(null);
            }

            var form = new ListBuilder(list);

            form.Show();
            return(form);
        }
Esempio n. 2
0
        private void AddToListClick(object sender, EventArgs e)
        {
            var lb = new ListBuilder();

            AddEntries(lb);
            lb.Show();
        }
Esempio n. 3
0
 private void AddToListClick(object sender, EventArgs e)
 {
     var lb = new ListBuilder();
     AddEntries(lb);
     lb.Show();
 }
Esempio n. 4
0
		/// <summary>Opens a ListBuilder for the given Word List, or focusses an existing ListBuilder 
		/// if one exists.</summary>
		public static ListBuilder Open(long setID) {
			foreach (Form f in Application.OpenForms) {
				var lb = f as ListBuilder;
			    if (lb == null || lb.WordList.ID != setID)
			        continue;

			    lb.BringToFront();
			    return lb;
			}

			var list = DataStore.Database.GetWordList(setID);
			if (list == null)
				return null;

			var form = new ListBuilder(list);
			form.Show();
			return form;
		}