private void lblAccountWithdrawCash(object sender, MouseButtonEventArgs e) { AccountPayment.MainWindow addWindow = new AccountPayment.MainWindow(2); addWindow.CustomCloseTab += closeTab; TabItem tabItem = new TabItem(); tabItem.Content = addWindow.Content; tabItem.Header = "Para Çekme"; tabItem.Name = "tcAccountWithdrawCash"; tabItem.IsSelected = true; tcPortal.Items.Add(tabItem); }
private void lblAccountDepositCash(object sender, MouseButtonEventArgs e) { AccountPayment.MainWindow addWindow = new AccountPayment.MainWindow(1); addWindow.CustomCloseTab += closeTab; TabItem tabParaYatirma = new TabItem(); tabParaYatirma.Content = addWindow.Content; tabParaYatirma.Header = "Para Yatırma"; tabParaYatirma.Name = "tcAccountDepositCash"; tabParaYatirma.IsSelected = true; tcPortal.Items.Add(tabParaYatirma); }