Exemplo n.º 1
0
        private void Button_createRoom_click(object sender, RoutedEventArgs e)
        {
            Form_createRoom form = new Form_createRoom(null);

            form.Owner = this;
            form.ShowDialog();
        }
Exemplo n.º 2
0
        private void Button_editRow_click(object sender, RoutedEventArgs e)
        {
            Entity.Rooms room = ((FrameworkElement)sender).DataContext as Entity.Rooms;
            Console.WriteLine("clicked edit row  id = " + room.Id);

            Form_createRoom form = new Form_createRoom(room);

            form.Owner = this;
            form.ShowDialog();
        }