Exemple #1
0
        private void PrikaziSobe_Click(object sender, RoutedEventArgs e)
        {
            SobeWindow sw = new SobeWindow();

            sw.ShowDialog();
            //this.Hide();
        }
        private void btnSacuvaj_Click(object sender, RoutedEventArgs e)
        {
            SobeWindow sw = new SobeWindow();

            sw.Show();
            this.Close();
        }
Exemple #3
0
        public IzmeniSobuWindow(SobeWindow sobeWindow, STANJE st)
            : this()
        {
            this.sobeWindow     = sobeWindow;
            this.trenutnoStanje = st;
            if (st == STANJE.IZMENA)
            {
                this.orgSoba = sobeWindow.dgSobe.SelectedItem as Soba;
                this.soba    = orgSoba.Clone() as Soba;
                //tbBrojSobe.Text = soba.Broj.ToString();
                //combTipSobe.ItemsSource = Aplikacija.Instanca.hotel.tipoviSobe;
                //combTipSobe.SelectedItem = soba.tipSobe;
                //chbTv.IsChecked = soba.tv;
                //chbMiniBar.IsChecked = soba.miniBar;
            }
            else
            {
                this.soba    = new Soba();
                this.orgSoba = soba;
            }

            this.DataContext        = soba;
            combTipSobe.ItemsSource = Aplikacija.Instanca.hotel.tipoviSobe;
        }
        private void Window_Closing(object sender, System.ComponentModel.CancelEventArgs e)
        {
            SobeWindow sw = new SobeWindow();

            sw.Show();
        }