Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
R

Razvan Dimescu

@Razvan Dimescu
About
Posts
75
Topics
22
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Asp.Net MVC Redirect to external link
    R Razvan Dimescu

    How can I send as a response a redirection to an external link? With asp.net I was using Response.Redirect("externalLink")

    ASP.NET asp-net question csharp architecture

  • Access Database crashing on load in Vista
    R Razvan Dimescu

    From what I know there are no 64 bit ODBC drivers for MS Access

    C# database testing debugging beta-testing help

  • How would you test this
    R Razvan Dimescu

    Do you happen to know an open source project so that I can see a view of how MVP architecture is handled and tested?

    C# architecture question database

  • How would you test this
    R Razvan Dimescu

    Ok, in the initialization function i'm getting data from database and then i'm setting this data to my controls, so that means I have broken the SRP, even though the purpose of my method is to fill controls with data taken from the database? I'm doing the same thing with the method PopulateControlsFromItem - firstly i get info from the database and then i'm filling the controls from view with data. I could get rid of this method and place the code in the initialization function, but the code would look messy. Can you please give me a suggestion of how I should refactor my presenter class?

    C# architecture question database

  • How would you test this
    R Razvan Dimescu

    I have a presenter(int a MVP architecture). The initialization function gets some data from the database. First I populate the comboboxes and then i populate each control with data

    IList payments = _dbOp.GetListOfItems();
    _view.SetCbPaidtoAccount_DataSource(paidToItems, "Text", "PaymentId");

    etc...

    OrderItem orderItem =_dbOp.GetItem(orderId)
    if(item!=null)
    PopulateControlsFromItem(orderItem);

    private void PopulateControlsFromItem(orderItem)
    {
    _view.SetPaymentType_Value=orderItem.paimentId;
    etc...
    }

    My question is.. how would you test the PopulateControlsFromItem method?

    C# architecture question database

  • Drag and drop between my program and explorer [modified]
    R Razvan Dimescu

    Sorry, it was a typo(I meant clipboard). The application you sent me works perfectly under windows xp, but under vista it's not working anymore

    C# c++ com linux tutorial question

  • Drag and drop between my program and explorer [modified]
    R Razvan Dimescu

    Thank you Eslam! I found that article too but it only supports copy from the console while I am more interested in a mouse drop rather than ctrl c

    C# c++ com linux tutorial question

  • Drag and drop between my program and explorer [modified]
    R Razvan Dimescu

    Can you point me out in some directions of how to support drag and drop between my application and windows explorer? The only article that I found on this was the this one written by Michael Dunn, but it's implemented in C++ and it's not even working with Windows Vista. This article it's doing exactly what I need, but unfortunately it's not working under windows vista even though I'm running it with administrator rights

    modified on Wednesday, June 11, 2008 9:33 AM

    C# c++ com linux tutorial question

  • Resharper or CodeRush
    R Razvan Dimescu

    I decided that I should use a productivity enhancement tool, which one do you recommend?

    The Lounge tools question

  • How can i access event of other class
    R Razvan Dimescu

    MyEvent is not going to be null if somebody subscribed to this event, like you are doing in the main class

    public MainClass()
    {
    //subscribe to the event from Parent Class
    Parent.MYEvent += new Parent.MyDelegate(Parent_MYEvent);
    }

    that means if your OnBeforeExpand function will be hit before you subscribe to the MyEvent in the main class, this event will be always null.

    C# help question

  • How to use sgen.exe in postbuild events
    R Razvan Dimescu

    it seems i get the same result using the batch file also, this is what i placed in the batch file "C:\Program Files\Microsoft Visual Studio 8\SDK\v2.0\Bin\sgen.exe" "c:\myApp.exe" /f /out:"d:\new folder" /compiler:/keyfile:"d:\new folder\myAppsnk.snk" I found this post And they it's a bug with sgen but i'm not sure i understood the workaround

    C# question help tutorial

  • How to use sgen.exe in postbuild events
    R Razvan Dimescu

    as you can see in my post, the path is in quotes, it seems, according to this guy that's is a bug in sgen tool here I tried using a batch file but i get the same result

    C# question help tutorial

  • How to use sgen.exe in postbuild events
    R Razvan Dimescu

    I have to use SGEN on an strongly named assembly that uses XmlSerializer

    "sgen.exe" //program that creates a serializer assembly
    "$(TargetPath)" //location of the assembly that uses the serilizer
    /f //override serializer assembly
    /out:"$(TargetDir).." //output location of the serializer dll
    /compiler:/keyfile:"d:\new folder\outlookSyncSign.snk" //location of strong name key

    The problem is that if the folder where the strong name key file has spaces the command will be unsuccessful. How can I overcome this without changing the name of the folder where the strong name resides?

    C# question help tutorial

  • MVPness :)
    R Razvan Dimescu

    My god, your desktop is so clean!

    The Lounge csharp com tools question

  • Project post build events
    R Razvan Dimescu

    I want to resign the assembly with a strong key but I get an error that the post build command exited with code 3?! Any idea what this means? If I manually resign the assembly the operation is successful.

    blog

    C# com help question

  • How can i access event of other class
    R Razvan Dimescu

    Indeed, I wrote the answer with an Eventhandler delegate and after I noticed he needs a custom delegate I changed the code, but forgot to change the method parameters

    blog

    modified on Monday, April 28, 2008 4:56 AM

    C# help question

  • How can i access event of other class
    R Razvan Dimescu

    Declare the event static in your parent class and then subscribe to that event from the main class

    public class Parent
    {
    public delegate void MyDelegate(string str);
    public static event MyDelegate MYEvent;

        public void Myunc()
        {
            //trigger the event here
            if (MYEvent != null)
            {
                MYEvent("hello listeners");
            }
        }
    }
    
    public class MainClass
    {
        public MainClass()
        {
            //subscribe to the event from Parent Class
            Parent.MYEvent += new Parent.MyDelegate(Parent\_MYEvent);
        }
    
        // called when event is triggered
        public void Parent\_MYEvent(object sender, EventArgs e)
        { 
        
        }
    }
    

    blog

    C# help question

  • C# Functionality(DLL) to VB.NET
    R Razvan Dimescu

    you have to add manually this [assembly: System.CLSCompliant(true)] in the AssemblyInfo.cs of your class library, visual studio is not doing it automatically

    blog

    C# csharp com help announcement

  • Benchmark not Benching
    R Razvan Dimescu

    glad it helped

    blog

    C# help question

  • C# Functionality(DLL) to VB.NET
    R Razvan Dimescu

    you c# assembly is probably not CLS compliant

    blog

    C# csharp com help announcement
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups