// 직무추가 버튼을 클릭 했을 때 새창을 띄움. private void OpenNewWindow(object sender, RoutedEventArgs e) { SubWindow subWindow = new SubWindow(); RefreshListEvent += new RefreshList(RefreshListBox); //event initialization subWindow.UpdateActor = RefreshListEvent; // assigning event to the Delegate subWindow.Show(); }
private void OpenNewWindow(object sender, RoutedEventArgs e) { SubWindow subWindow = new SubWindow(); RefreshListEvent += new RefreshList(RefreshListBox); subWindow.UpdateActor = RefreshListEvent; subWindow.Show(); }
private void RentBtnHandler(object sender, RoutedEventArgs e) { if (data.books.GetBook(bookID).isAvailable == true) { data.books.GetBook(bookID).isAvailable = false; Books.DataContext = data.books.GetBook(bookID); } else { data.books.GetBook(bookID).isAvailable = true; SubWindow subWindow = new SubWindow(); subWindow.Show(); Books.DataContext = data.books.GetBook(bookID); } }