Load() public method

public Load ( ) : void
return void
Example #1
0
        public static void RegisterWidgetLibrary(WidgetLibrary library)
        {
            NotifyChanging();

            try
            {
                if (coreLib != null && library.Name == coreLib.Name)
                {
                    libraries.Remove(coreLib);
                    InternalUpdate();
                    coreLib = library;
                }
                libraries.Add(library);
                library.Load();
                classes.AddRange(library.AllClasses);
                UpdateGladeTransform();
            }
            catch (Exception ex)
            {
                Console.WriteLine(ex);
                throw;
            }
            finally
            {
                NotifyChanged();
            }
        }
Example #2
0
        public static void RegisterWidgetLibrary(WidgetLibrary library)
        {
            NotifyChanging();

            try {
                libraries.Add(library);
                library.Load();
                classes.AddRange(library.AllClasses);
                UpdateGladeTransform();
            } catch (Exception ex) {
                Console.WriteLine(ex);
                throw;
            } finally {
                NotifyChanged();
            }
        }
Example #3
0
		public static void RegisterWidgetLibrary (WidgetLibrary library)
		{
			NotifyChanging ();
			
			try {
				if (coreLib != null && library.Name == coreLib.Name) {
					libraries.Remove (coreLib);
					InternalUpdate ();
					coreLib = library;
				}
				libraries.Add (library);
				library.Load ();
				classes.AddRange (library.AllClasses);
				UpdateGladeTransform ();
			} catch (Exception ex) {
				Console.WriteLine (ex);
				throw;
			} finally {
				NotifyChanged ();
			}
		}
Example #4
0
        public static void RegisterWidgetLibrary(WidgetLibrary library)
        {
            NotifyChanging ();

            try {
                libraries.Add (library);
                library.Load ();
                classes.AddRange (library.AllClasses);
                UpdateGladeTransform ();
            } catch (Exception ex) {
                Console.WriteLine (ex);
                throw;
            } finally {
                NotifyChanged ();
            }
        }