Exemplo n.º 1
0
        private void btnNavigateUrzadzenia_Click(object sender, RoutedEventArgs e)
        {
            UrzadzeniaWindow window1 = new UrzadzeniaWindow();

            window1.Top         = this.Top;
            window1.Left        = this.Left;
            window1.Width       = this.Width;
            window1.Height      = this.Height;
            window1.WindowState = this.WindowState;
            this.Close();
            window1.Show();
        }
Exemplo n.º 2
0
        private void btnPokazUrz_Click(object sender, RoutedEventArgs e)
        {
            if (lstView1.SelectedIndex != -1)
            {
                var item = ((Klient)lstView1.SelectedItem).idKlienta;


                UrzadzeniaWindow window1 = new UrzadzeniaWindow(item);
                window1.Top         = this.Top;
                window1.Left        = this.Left;
                window1.Width       = this.Width;
                window1.Height      = this.Height;
                window1.WindowState = this.WindowState;

                this.Close();
                window1.Show();
            }
        }