示例#1
0
 public DataTable Library_AddEdit(LibraryBase library)
 {
     dtContainer = new DataTable();
     dsContainer = new DataSet();
     try
     {
         MyParameter[] myParams =
         {
             new MyParameter("@LibraryID",     library.LibraryID),
             new MyParameter("@LibraryName",   library.LibraryName),
             new MyParameter("@FilePath",      library.FilePath),
             new MyParameter("@FileExistence", library.FileExistence),
             new MyParameter("@FileTypeId",    library.FileTypeId),
         };
         Common.Set_Procedures("Librarys_AddEdit");
         Common.Set_ParameterLength(myParams.Length);
         Common.Set_Parameters(myParams);
         dtContainer = Common.Execute_Procedures_LoadData();
     }
     catch (Exception ex)
     {
         throw ex;
     }
     return(dtContainer);
 }
示例#2
0
        static void Main()
        {
            var         d = new CustomerDerived();
            LibraryBase b = d;

            d.Start();
            b.Start();
        }
示例#3
0
        public void Initialize()
        {
            Library = new EmptyLibrary();
            Root    = new Group(null, new string[0], new object[0]);
            Group   = new Group(Root, new string[0], new object[0]);

            Culture.ApplyWithDefaultCulture();
        }
示例#4
0
        public void RegisterLibraries(LibraryBase library)
        {
            var type    = library.GetType();
            var methods = type.GetMethods().Where(f => f.GetCustomAttribute <BindableMethodAttribute>() != null);

            foreach (var methodInfo in methods)
            {
                RegisterMethod(methodInfo);
            }
        }
        public LibraryTreeViewItem([NotNull] LibraryBase library)
        {
            Library = library;

            Text    = library.Name;
            Margin  = new Thickness(0, 2, 0, 0);
            ToolTip = library.Name + " Library";
            Icon    = library.Icon;

            Loaded    += ControlLoaded;
            Expanded  += SetExpanderState;
            Collapsed += SetExpanderState;

            library.Items.CollectionChanged += (sender, args) => Refresh();
            library.PropertyChanged         += HandlePropertyChanged;
        }
示例#6
0
 public ActionResult Library_Load(LibraryBase library)
 {
     actionResult = new ActionResult();
     try
     {
         actionResult.dtResult = libraryDL.Library_Load(library);
         if (actionResult.dtResult != null && actionResult.dtResult.Rows.Count > 0)
         {
             actionResult.IsSuccess = true;
         }
     }
     catch (Exception ex)
     {
     }
     return(actionResult);
 }
示例#7
0
 public DataTable Library_Load(LibraryBase library)
 {
     dtContainer = new DataTable();
     dsContainer = new DataSet();
     try
     {
         MyParameter[] myParams =
         {
             new MyParameter("@LibraryID", library.LibraryID)
         };
         Common.Set_Procedures("Librarys_Load");
         Common.Set_ParameterLength(myParams.Length);
         Common.Set_Parameters(myParams);
         dtContainer = Common.Execute_Procedures_LoadData();
     }
     catch (Exception ex)
     {
         throw ex;
     }
     return(dtContainer);
 }
 void _controller_GuildWars2StatusChanged(object sender, LibraryBase.Wpf.Event.EventArgs<GuildWars2Status> e)
 {
     if (e.Value == GuildWars2Status.FoundKey && HotItemController.CurrentApi.IsUnsafe)
     {
         OnPropertyChanged("SessionKey");
     }
 }
示例#9
0
 public void Initialize()
 {
     Library = new EmptyLibrary();
     Root    = new Group(null, new string[0], new object[0]);
     Group   = new Group(Root, new string[0], new object[0]);
 }
示例#10
0
 public void RegisterProperties(LibraryBase library)
 {
     TryAddLibraryParts(library);
 }
示例#11
0
 public Enumerator(LibraryBase <T> library)
 {
     _library = library;
 }
示例#12
0
 private Enumerable(LibraryBase <T> library)
 {
     _library = library;
 }
示例#13
0
 public void Dispose()
 {
     _library = null;
 }