Files/sub-dirs When Adding Items In A New Repository?
Mar 23, 2010
I didn't see a question on this subject in the archives, so here goes: For those of you experienced Mercurial users, is this a correct .hgignore file to tell VB.Net Express to ignore files/sub-dirs when adding items in a new repository?
We have a button, textbox and a folder browser... We made it so that when you click the button it shows the folder browser dialog.. And you choose your folder/path, then it shows the selected path in textbox.. We are succesful on this.. But now weve added a listbox, And when you selected the path it will do this..
Several times av been come across of the need of how to create new variables on my application while is running and the next time i will run again the application to be existed in my source code and still be inside.
what excatly i mean is for example i have a listbox with out assigne it in any databound ,or retreive any items from any textbox i just want to insert some items inside
if i go from the designer then i can succesfully add any item i want and they will be there as i declare them.but if i want to to that programmatically i will be able to add them in the listbox but the next time i will run it again it will be lost.until i will select the command again to fill my listbox which is not what i want
in my case i have a datagridview which is running SQL querys and i want if the user selects to save this query i want from some way to save this query string in my listbox . and i want to be there the next time i will run my application with out using any text file or database,
is there any way to that ? i have search before i ask but obviusly my keywords dosen't much with what i was looking for
public class CategoryRepository: RepositoryBase<Category>, ICategoryRepository { public CategoryRepository(IDatabaseFactory databaseFactory) : base(databaseFactory)
[Code]...
Does anyone has an idea what i should change to let it work and let my UserRepository use the methods in RepositoryBase while implementing the IUserRepository?
I want to use this code to generate 10 folders Sub CD() My.Computer.FileSystem.CreateDirectory("c:Dir") End Sub Dim i As Integer For i = 1 To 10 CD() Next i But it doesn't work.
I am using the Entity Framework with POCO's generated using the T4 Templates. I have the generated classes in a separate assembly. Ok, so a very simple example: I have a Category entity in the model which has SubCategories (1-Many with SubCategory). When I use the following code, I get The ObjectContext instance has been disposed and can no longer be used for operations that require a connection. [Code]
I have a repository class that defines some basic Get/Save/Delete methods. Inside these, I use NHibernate to do the work on my business entities. For example:
[code]...
However, on my User class I have some properties and collections of other objects that ideally I'd like to be lazy loaded. But of course, the ISession is created and disposed within the repository, which I guess is why, outside of that, when I try to access those properties I get a "Could not initialize proxy - no Session" error.Is my only option then to disable lazy loading when using repositories? Or is it possible (or just foolish) to somehow get the session into scope in the business layer?I do like the repository model, and NHibernate is growing on me (after lots of initial frustration trying to make it work), so what's the best way you gurus have found of using them together?
I was wondering if there are any good vb.net code repositories around where people share code they have written, widgets they have developed, classes developed? I hate re-inventing the wheel.
I'm learning how to add items from a list box to a combo box. I'm trying to follow what's going on in the function loop and comparing a boolean and selected index. I can see that it's comparing the item chosen to each item already in the combo box to make sure that it's not already there. If function finds that it's not in the list it sends back that it is true that the item is not in the list.
It then continues to the statement that adds item to the list. The code for the double click event is working fine and items are getting added to combo box. However, the code for the add button isn't functional. I'm not seeing why it doesn't work? I coded out the original code, and replaced with something I thought might work but it still isn't functional. [Code]
The GUI below shows the same product I inputted. If I inputted the same product and a new Quantity inputted, it will add to the current Quantity inputted. Same goes to the Total Amount will change.
In VB.Net for an ASP project I was able to do the following:
Dim Item As ListItem While DataReader.Read Item = New ListItem Item.Text = DataReader.Item("CustomerName").ToString Item.Value = DataReader.Item("CustomerNumber").ToString Me.lstCustomers.Items.Add(Item) End While
However in a VB.Net Windows Project it won't let me duplicate this.
I need to display the CustomerName but return the CustomerNumber of the selected customer
I am also adding the items in code because they are changing based on changing values.
in this : I have a button (ADD), a TextBox & a ListBox. Here's what I want, when I write words in TextBox and when I click on Button ADD, it is saved & added in List1
I am trying to create a program that allows the user to add a series of items to 4 different user collection settings.here's what i have Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
[Code]...
I keep getting an "Object reference not set to an instance of an object." exception. What am I doing wrong?
Is it possible to add items (e.g. a search bar, some text, a button...) to the title bar of a form? Something like the search bar in the image below:Is that possible to do with Visual Studio.NET 2008?
I am trying to create a visio flow chart with visual basic 2005 but I keep running into the same problem. I have added a reference to the Microsoft Visio type Library, but when I try to Declare a variable as a Visio.Application of Visio.Document I get an error "Visio.Application not defined" It seems as if adding the COM reference to the Visio Type Library has no effect. Is there some setup that I am missing?
I want to check if an items exists on my pseudo random listbox before adding a newone if the number already exists i need to know before duplicating it.
In my project I have it set up so that all the tables in the DB has the property "id" and then I have the entity objects inherit from the EntityBase class using a repository pattern. I then set the inheritance modifier for "id" property in the dbml file o/r designer to "overrides"
Public MustInherit Class EntityBase MustOverride Property id() As Integer End Class Public MustInherit Class RepositoryBase(Of T As EntityBase)
[Code]...
however produces the error "Class member EntityBase.id is unmapped" when i use VS 2010 using the 4.0 framework but I never received that error with the old one.
I have two tables, Clients and Administrators, which are linked in a many-to-many relationship by the table ClientAdministrators. In the real application this works fine and I can get a list of Administrators for my Client. My problem comes in trying to unit test the service class that is retrieving this from the repository. I have a FakeRepository class which implements my repository interface and I have several internal lists of objects for the service class to query against.
SubSonic 2.2. I use the repository record pattern, with a table "appointment" with an appointmentId as auto-incrementing int. I am trying to update it, but when I do update the fields with something totally different, dirty columns are always zero, and I get an exception.
The File Class has methods for sending/receiving (CopyTo and Overwrite) binary data to/from the File Repository Server (where files like Crystal Reports are stored), both of which have an overload that supports 'Binary data (safearray of VT_UI1)
i am having 11 comboboxes and 11 tabpages in 1 tabcontrol each tab page having one combobox.i kept the name of combobox like combobox1,combobox2,combobox3.....and so on also there are other comboboxes in tabpages but they are of different name i had also kept the tag property of combobox from 0 to11 for each one now what i want to do is add the same item in all comboboxes for that i wrote code like:-
dim combos() as string=new string("A","B","C"....) dim tp as tabpage dim cnt as combobox for each tp in me.tabcontrol1
[code]....
but this displays an error syntax like:"expression is of type System.windows.form.tabcontrol,which is not a collection type." i just want to add same items in combobox of each tabpage ..
I have some code that adds items to a List(of Object).
Here's my original code
Dim BeaconStoryList as New List(Of My.StoryType) Dim BeaconStory as New My.StoryType Dim NewStories() as New Foriegn.StoryType = GetStories
[Code]....
But as soon as the code assigned "Chicken" to BeaconStory.Title, then BeaconStoryList(0).Title would also change to "Chicken".
With my second version of the code this did not happen.
It's as though it was placing pointers into the elements of the array rather than values. If that is the case, however, then why does my second version of the code work - I'm still passing in the same thing - aren't I?
I can add items to a listview this way:[code]But how can I set the Tag property of that same item as the same loop? I tried going ListViewItem.Items (0).Tag = "something"..But that doesn't seem to do the trick. How do I do this?