Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6344197
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T20:35:21+00:00 2026-05-24T20:35:21+00:00

This is my collection: public ObservableCollection<CheckOutData> _CheckOutCollection = new ObservableCollection<CheckOutData>(); public ObservableCollection<CheckOutData> CheckOutCollection {

  • 0

This is my collection:

   public ObservableCollection<CheckOutData> _CheckOutCollection = new ObservableCollection<CheckOutData>();
      public ObservableCollection<CheckOutData> CheckOutCollection
            {
                get { return _CheckOutCollection; }
            }

            public class CheckOutData
            {
                public int ID { get; set; }
                public string RoomType { get; set; }
                public string RoomNumber { get; set; }
                public decimal RoomPrice { get; set; }
                public string RoomPriceWithCurrency { get; set; }
                public decimal Discount { get; set; }
                public decimal DiscountedPrice { get; set; }
                public string DiscountedPriceWithCurrency { get; set; }
                public string CheckIn { get; set; }
                public string CheckOut { get; set; }
                public int TotalDay { get; set; }
                public string CheckOutHour { get; set; }
        }

I have another window where i want to do following: Add CheckOutData public string serviceName{get;set}
how can this done? i dont even see checkoutdata in my child window.
So my main task is add new collection in checkoutdata and then rebind datagrid. Can anyone help me?

private CheckOut m_parent;

public AddActionService(CheckOut parent)
{
    InitializeComponent();
    m_parent = parent;

}
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T20:35:22+00:00Added an answer on May 24, 2026 at 8:35 pm

    You might want to consider some sort of event aggregator. This way any form’s code (or ViewModel/Presenter, if you’re using MVVM/MVP) can send messages that are picked up by the aggregator and distributed to any other forms/ViewModels/Presenters that have subscribed to that event. This approach means your forms are no longer tightly coupled together. They literally have no reference to each other at all. They communicate through the event aggregator and they don’t even know if any objects are listening for those events.

    You could also consider taking it one step further and going for a “Domain Events” style, that allows you to react to these events not just in UIs, but also in domain objects elsewhere in your system, including sending messages via external services to call web services, update databases, put messages in queues etc.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have this class: public MyClass { public void initialize(Collection<String> data) { this.data =
This is my collection : ObservableCollection<CheckInData> _CheckInCollection = new ObservableCollection<CheckInData>(); public ObservableCollection<CheckInData> CheckInCollection {
I have a collection of entities with an any-association, like this: public class CreatedLog
When I do this manually public class AdventureWorks : DataContext { public AdventureWorks(string connection)
Imagine the following: class Repository { private ObservableCollection<ModelClass> _allEntries; public ObservableCollection<ModelClass> AllEntries { get
I have an object model like this: class Car { public string Manufacturer; public
I've got a test collection setup as : ObservableCollection<Person> MyselectedPeople = new ObservableCollection<Person>(); public
I have an : ObservableCollection<X> x_collection = new ObservableCollection(); public class X { public
I am binding an observable collection to my gridview. public ObservableCollection<LibraryTrack> Biblio { get
How can I improve this username/password checking? [AcceptVerbs(HttpVerbs.Post)] public ActionResult Login(FormCollection collection) { var

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.