Exemple #1
0
        private void PrikaziTipoveSoba_Click(object sender, RoutedEventArgs e)
        {
            TipoviSobeWindow tsw = new TipoviSobeWindow();

            tsw.Show();
            this.Hide();
        }
Exemple #2
0
        public IzmeniTipSobeWindow(TipoviSobeWindow tipoviSobeWindow, STANJE st)
            : this()
        {
            this.tipoviSobeWindow = tipoviSobeWindow;
            this.trenutnoStanje   = st;
            if (st == STANJE.IZMENA)
            {
                this.orgTipSobe = tipoviSobeWindow.dgTipoviSobe.SelectedItem as TipSobe;
                this.tipSobe    = orgTipSobe.Clone() as TipSobe;
            }
            else
            {
                this.tipSobe    = new TipSobe();
                this.orgTipSobe = tipSobe;
            }

            this.DataContext = tipSobe;
        }