User Profile

Collapse

Profile Sidebar

Collapse
Vagos
Vagos
Last Activity: Jul 6 '11, 04:36 PM
Joined: Apr 28 '11
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Loan is a class, containing information about a loan, done by a member. Here is some code from the Mainwindow :
    Code:
    public partial class MainWindow : Window
        {
            List<Member> members;
            Member member;
            ObservableCollection<Loan> loans;
            //CollectionViewSource loans;
    
            public MainWindow()
            {
                InitializeComponent();
    ...
    See more | Go to post

    Leave a comment:


  • Vagos
    started a topic How can i change listbox itemssource dinamically?

    How can i change listbox itemssource dinamically?

    Hello dear C# coders. Picture this
    [IMGnothumb]http://bytes.com/attachment.php? attachmentid=51 64[/IMGnothumb]
    .It's a simple practice GUI application that handles a library needs. I have a List of members, list for loans that each member does, I also have a "back up" loans list like global, and on MainWindow constructor it's like
    Code:
     ... lstLoans.ItemsSource = loans;
    .
    What I want is, the lstLoans.ItemsS ource to be...
    See more | Go to post
    Last edited by Niheel; May 18 '11, 01:19 AM.

  • Vagos
    replied to How to handle lstbox values
    Hello again, I am replying in order to post a part of my code, so maybe you can understand what i ask for.
    Here is a part of the MainWindow code:
    Code:
    public partial class MainWindow : Window
        {
            List<Member> members;
            Member member;
            ObservableCollection<Loan> loans;
    
            public MainWindow()
            {
                InitializeComponent();
    ...
    See more | Go to post

    Leave a comment:


  • Vagos
    started a topic How to handle lstbox values

    How to handle lstbox values

    Hello C# Programmers, here is my question and problem. I am practicing my C# skills, and designed a simple GUI app for a library. Well, I have the class Member, and a button Search, user types the member code in a textbox, my program gets the value and finds the member in the list of "signed" members, else throws a fancy message box. Everything is fine, my problem is, a member does a Loan from library clicking the New Loan button, and within...
    See more | Go to post

  • Vagos
    replied to Searching in list from GUI
    Thanks, I just did this with a little addition, try/catch blocks, caught Exception, and poped a fancy Messagebox.
    See more | Go to post

    Leave a comment:


  • Vagos
    started a topic Searching in list from GUI

    Searching in list from GUI

    Hello, here is the problem. I have a list of members, user gives the member code in textBox1, and I want to search that member in the members list and return it, like "log in" action, else I throw a message box "Member 'member code' not found", any suggestions?

    Here is my code :
    Code:
    List<Member> members;
            Member member;
            ObservableCollection<Loan> loans;
    ...
    See more | Go to post

  • How to create a button that deletes the selected item from a listbox

    Hello, I am using list boxs, my NewLoan button works just fine, adds the loans to the specific lstLoans area, but this code won't delete the selected item, any suggestions?

    Here is the code :
    Code:
    private void btnDeleteLoan_Click(object sender, RoutedEventArgs e)
            {
                Loan SelectedLoan = (Loan) lstLoans.SelectedItem;
                loans.Remove(SelectedLoan);
                lstLoans.Items.Remove(SelectedLoan);
    ...
    See more | Go to post
No activity results to display
Show More
Working...