Archives

Archives / 2015 / August
  • IDisposable pattern for C# objects

    Hello everybody,

    today I want to share my usage if IDisposable interface in C#.

    Before code presentation some explanations:

    1. If created by me class uses some unmanaged resources then it means that I should also implement IDisposable interface in order to clean memory. 2. Clean objects as soon as I finished usage of it. 3. In my dispose method I iterate over all IDisposable members of class and call Dispose.4. In my Dispose method call GC.SuppressFinalize(this) in order to notify garbage collector that my object was already cleaned up. I do it because calling of GC is expensive operation.5. As additional precaution I try to make possible calling of Dispose() multiple times.6. Sometime I … more

  • Search for duplicates

    Hello everybody,

    Here is just shorp version of application which searches for duplicates in folder.

    In  downloadable archive you can find my implementation of searcher with Task, ContinueWith and some other new features of C# 4.5 more

  • How to filter add some info to filter

    Hello everybody.

    Today I want to share notice of how to work with processing screens.

    But of course not in very standard situation. One of my clients requested me the following: he wanted at processing screen to select some items in screen in part 1, then monitor 

    results in part two, and see some totals in part three. 

    As you understand it's not easy to ahcieve this goal only with help of selectors. It is possible with usage of delegates in Acumatica and with usage of it's cache.

    Initial initialization of page was the following:

    [Serializable]

    public class RRCashRequestProcessor : PXGraph<RRCashRequestProcessor>

    {

    public PXCancel<CreatePaymentFilter> Cancel; … more

  • How to make quick estimate

    Hello everybody,

    today I want to write a notice about Project estimation. One of the important facetcs of making estimates is to make document, in which to describe definitions of project, which need to be estimated.

    For this purpose I will create Word document with title page, table of contents and following categories:

    In order to make good estimate it's good to clarify with potential stakeholder following categories:

    Purpose

    Goals/Objectives

    Success Criteria

    What's in/out of scope

    Assumptions

    Recommended Approach

    Business Drivers

    Budget

    Schedule

    Return on Investment

    Constraints

    Risks

    Stakeholders

    Preliminary Schedule

    Preliminary Estimates

    Policies and Standards … more

  • Some new features of .Net 4.5

    Hello everybody,

    today I want to write some notice about PCL, aka portable class library. It's possible to make library which will be possible to make library for Windows Phone 7, Xbox 360, .Net for Windows Store apps. 

    more