The convention in Java is different - every "module" (equivalent to Java in IntelliJ) has a src and test directory. jUnit can thus run per project, and there's no need for a separate test project.
...
I need to pull the product list from Sage Line 50. Is there any way to do this without having to spend £1500 on joining the developer program?
I only need to read data, I do not need to put data back into Sage. I've seen the odd mention of an ODBC.Net driver for Sage, but I cannot find any tutorials or examples of how this is done?
Tha...
Hello everyone,
I am using VSTS 2008 + .Net 2.0 + C#. And I am running Code Analysis after build. I got the following confusing security warning. Here is the warning and related code, any ideas what is wrong? If there is security warning, how to fix it?
System.Diagnostics.Process myProcess = new System.Diagnostics.Proce...
I want to change the background image based on mouseenter and mouseleave events to achieve a mouseover effect for the buttons. What is the simplest way of achieving this (preferably in a manner so that the button can be inherited)?
...
I usually use web applications in Visual Studio and the MSBUILD taks in Nant builds them without any problems:
<msbuild project="MySolution.sln">
arg value="/property:Configuration=release" />
</msbuild>
I now have a website (not a web application) in a VS Solution and it won't build - I get a lot of namespace errors.
Should I be a...
Hello everyone,
I am using VSTS 2008 + .Net 3.5 + C#. I heard the performance of C# List.ToArray is bad since what it does is memory copy for all elements to form a new array. Is that true?
thanks in advance,
George
...
Hi there,
I recently downloaded the MVVM toolkit on codeplex from WPF futures which basically has templates (although i can't seem to find many docs for it) for creating standard MVVM apps for WPF.
I also came across the Powertoys for XAML which allows you to create ViewModels from classes etc..
Is this the best way to go? There seems...
Ruby has method_missing , Python has getattr. Does Boo offer something I can use to intercept method calls?
...
I'm using Entity Framework.
In my database are stored persons and country of their origins. When I'm loading a person object I wan't to know what is the place each person originates. Is there a way to cache list of countries so that there wouldn't be unnecessary requests.
...
Having:
<asp:FormView ID="frmEmployee" runat="server">
<EditTemplate>
<asp:TextBox ID="txtFirstName" runat="server" />
</EditTemplate>
</asp:FormView>
one uses FindControl to reference the txtFirstName textbox in the code-behind file:
VB.Net
Dim txtFirstName As TextBox = CType(Page.FindControl("txtFirstName"), TextBox...
I have 2 classes i.e Customer-Order and Customer class
has a reference to a collection of Orders.
I use master detail bindingSources.
My problem is when i use the lazy load pattern
for orders my detail bindingsource is not updated.
UI
BindingSource1.datasource=GetCustomers();
BindingSource2.DataMember="Orders";
BindingSource2.datasour...
Hello,
I am trying to implement my own provider for xml site map files. Because of this I have started investigating the default Microsoft XmlSiteMapProvider via reflector and I have found a snippet that is confusing me, here it goes:
SiteMapNode node = this._siteMapNode;
if (node != null)
{
return node;
}
XmlDocument configDo...
I am trying to create my hello world windows app in WPF.
What should I do to run this window?
Class1.xaml
<Window x:Class="Window1"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="Window1" Height="300" Width="300">
<Grid> </...
In my C# project, I have been dealt with the task of parsing an SGML file and have tried, very naively, to use XmlReader, and this has led to some interesting revelations (i.e., the difference between SGML and well-formed XML, etc.)
So I am thinking that I just need a good SGML parser which converts it to an XML file and go from there. ...
I'd like to create an autocomplete control using Boo/C#. Here's a screenshot from the internet if you don't know how it looks like :
I'm basically thinking of a undecorated window/dialog ( which I'm not sure how would I implement ), or a control that can be displayed on it's own ( a ListBox of some sort ).
How could I implement such ...
Hi everyone,
I am looking for a fast (as in huge performance, not quick fix) solution for persisting and retrieving tens of millions of small (around 1k) binary objects. Each object should have a unique ID for retrieval (preferably, a GUID or SHA). Additional requirements is that it should be usable from .NET and it shouldn't require ad...
Possible Duplicate:
Whats the point of the var keyword?
Hello everyone,
I want to confirm whether my understanding is correct. If I do not use LINQ, then the only benefit of using var is to make brevity? Is that correct understanding?
thanks in advance,
George
...
Hello.
My typical application has a couple of textboxes, checkbuttons, radiobuttons, and so. I always want to load the settings the user used the last time when the program starts, and also want to save the settings as the users clicks "Save settings" or closes the application. When the user attempts to save the settings, I'll have to c...
I am building a product catalog for a customer website under ASP.NET using .NET Framework 3.5 SP1. Each product has a part number and an OEM part number (all globally unique).
For SEO purposes I would like the OEM part number to be as close as possible to the actual domain name.
How do I build a routing rule that allows me to do this:...
The System.Threading.ConcurrentQueue.TryDequeue method threw an exception the other day that took me totally by surprise. Here's the stack trace:
System.OverflowException: Negating the minimum value of a twos complement number is invalid.
at System.Math.AbsHelper(Int32 value)
at System.Random..ctor(Int32 Seed)
at System.Thread...