public RoomsList() { InitializeComponent(); db = new s15182Entities(); this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle; this.ImeMode = System.Windows.Forms.ImeMode.NoControl; showRooms(); }
public AddCategory() { InitializeComponent(); this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle; this.ImeMode = System.Windows.Forms.ImeMode.NoControl; db = new s15182Entities(); AddCategoryButton.Enabled = false; PriceTextBox.TextAlign = HorizontalAlignment.Center; }
public AddGuest() { InitializeComponent(); this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle; this.ImeMode = System.Windows.Forms.ImeMode.NoControl; db = new s15182Entities(); GuestAdded = false; ImieTextBox.TextAlign = HorizontalAlignment.Center; NazwiskoTextBox.TextAlign = HorizontalAlignment.Center; DiscountTextBox.TextAlign = HorizontalAlignment.Center; AddGuestButton.Enabled = false; }
public ChangeDiscount() { InitializeComponent(); this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle; this.ImeMode = System.Windows.Forms.ImeMode.NoControl; db = new s15182Entities(); Changed = false; var get = db.Gosc.FirstOrDefault(g => g.IdGosc == GuestList.Gindex); NameLabel.Text = get.Imie + " " + get.Nazwisko; NewDiscountTextBox.TextAlign = HorizontalAlignment.Center; ChangeDiscountButton.Enabled = false; }
public AddRoom() { InitializeComponent(); this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle; this.ImeMode = System.Windows.Forms.ImeMode.NoControl; db = new s15182Entities(); var roomCategories = from c in db.Kategoria select c.Nazwa; RoomCategoryComboBox.DataSource = roomCategories.ToList(); RoomNumberTextBox.TextAlign = HorizontalAlignment.Center; RoomGuestNumberTextBox.TextAlign = HorizontalAlignment.Center; AddRoomButton.Enabled = false; }
public ChangeRoomPrice() { InitializeComponent(); this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle; this.ImeMode = System.Windows.Forms.ImeMode.NoControl; db = new s15182Entities(); Changed = false; var get = db.Pokoj.FirstOrDefault(g => g.NrPokoju == RoomsList.Rindex); var getKategoria = db.Kategoria.FirstOrDefault(r => r.IdKategoria == get.IdKategoria); RoomNumberLabel.Text = get.NrPokoju + " "; CategoryLabel.Text = getKategoria.Nazwa + ""; ChangePriceTextBox.TextAlign = HorizontalAlignment.Center; ChangePriceButton.Enabled = false; }
public MakeBooking() { InitializeComponent(); this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle; this.ImeMode = System.Windows.Forms.ImeMode.NoControl; db = new s15182Entities(); MakeBookingButtonCliked = false; var roomNumbers = from r in db.Pokoj select r.NrPokoju; RoomNumberComboBox.DataSource = roomNumbers.ToList(); ShowRoomCategory(); SetVisitPrice(); NotPaidCheckBox.Checked = true; MakeBookingButton.Enabled = false; }