예제 #1
0
        private void btnNavigateZlecenia_Click(object sender, RoutedEventArgs e)
        {
            ZleceniaWindow window1 = new ZleceniaWindow();

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


                ZleceniaWindow window1 = new ZleceniaWindow(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();
            }
        }