private void tvSubeEkle_MouseDoubleClick(object sender, MouseButtonEventArgs e) { var theBranchAddTab = tabControl1.Items.OfType <CloseableTab.CloseableTab>().SingleOrDefault(x => x.Title == "Şube Ekle"); if (theBranchAddTab != null) { theBranchAddTab.Focus(); } BranchAdd.BranchAddUC branchAdd = new BranchAdd.BranchAddUC(); CloseableTab.CloseableTab theTabItem = new CloseableTab.CloseableTab(); theTabItem.Title = "Şube Ekle"; theTabItem.Content = branchAdd; tabControl1.Items.Add(theTabItem); theTabItem.Focus(); }
private void tvMusteriEkle_MouseDoubleClick(object sender, MouseButtonEventArgs e) { var theCustomerAddTab = tabControl1.Items.OfType <CloseableTab.CloseableTab>().SingleOrDefault(x => x.Title == "Müşteri Ekle"); if (theCustomerAddTab != null) { theCustomerAddTab.Focus(); } else { CustomerAdd.CustomerAddUC customerAdd = new CustomerAdd.CustomerAddUC(); CloseableTab.CloseableTab theTabItem = new CloseableTab.CloseableTab(); theTabItem.Title = "Müşteri Ekle"; theTabItem.Content = customerAdd; tabControl1.Items.Add(theTabItem); theTabItem.Focus(); } }
private void tvHesapEkle_MouseDoubleClick(object sender, MouseButtonEventArgs e) { var theAccountAddTab = tabControl1.Items.OfType <CloseableTab.CloseableTab>().SingleOrDefault(x => x.Title == "Hesap Ekle"); if (theAccountAddTab != null) { theAccountAddTab.Focus(); } else { AccountAdd.AccountAddUC accountAddUC = new AccountAdd.AccountAddUC(); CloseableTab.CloseableTab theTabItem = new CloseableTab.CloseableTab(); theTabItem.Title = "Hesap Ekle"; theTabItem.Content = accountAddUC; tabControl1.Items.Add(theTabItem); theTabItem.Focus(); } }
private void tvSubeListesi_MouseDoubleClick(object sender, MouseButtonEventArgs e) { var theBranchesTab = tabControl1.Items.OfType <CloseableTab.CloseableTab>().SingleOrDefault(x => x.Title == "Şube Listesi"); if (theBranchesTab != null) { theBranchesTab.Focus(); } else { BranchList.BranchListUC branchListUc = new BranchList.BranchListUC(tabControl1); CloseableTab.CloseableTab theTabItem = new CloseableTab.CloseableTab(); theTabItem.Title = "Şube Listesi"; theTabItem.Content = branchListUc; tabControl1.Items.Add(theTabItem); theTabItem.Focus(); } }
private void btnSubeDetay_Click(object sender, RoutedEventArgs e) { if (dgBranchList.SelectedItem == null) { return; } if (MainWindowTabControl == null) { return; } SelectedBranch = (BranchContract)dgBranchList.SelectedItem; BranchAdd.BranchAddUC branchAdd = new BranchAdd.BranchAddUC(SelectedBranch); CloseableTab.CloseableTab theTabItem = new CloseableTab.CloseableTab(); theTabItem.Title = $"Şube Detayları - {SelectedBranch.BranchName}"; theTabItem.Content = branchAdd; MainWindowTabControl.Items.Add(theTabItem); theTabItem.Focus(); }
private void tvNakit_MouseDoubleClick(object sender, MouseButtonEventArgs e) { var theDepositWithdrawalTab = tabControl1.Items.OfType <CloseableTab.CloseableTab>().SingleOrDefault(x => x.Title == "Nakit Yatırma/Çekme"); if (theDepositWithdrawalTab != null) { theDepositWithdrawalTab.Focus(); } else { //CustomerComponent.CustomerComponentUC customerComponentUC = new CustomerComponent.CustomerComponentUC(); DepositWithdrawal.DepositWithdrawalUC depositWithdrawalContainer = new DepositWithdrawal.DepositWithdrawalUC(); CloseableTab.CloseableTab theTabItem = new CloseableTab.CloseableTab(); theTabItem.Title = "Nakit Yatırma/Çekme"; theTabItem.Content = depositWithdrawalContainer; tabControl1.Items.Add(theTabItem); theTabItem.Focus(); } }
private void tvHavaleGecmisi_MouseDoubleClick(object sender, MouseButtonEventArgs e) { var theRemittanceListTab = tabControl1.Items.OfType <CloseableTab.CloseableTab>().SingleOrDefault(x => x.Title == "Havale İşlemi Listeleme"); if (theRemittanceListTab != null) { theRemittanceListTab.Focus(); } else { //CustomerComponent.CustomerComponentUC customerComponentUC = new CustomerComponent.CustomerComponentUC(); RemittanceList.RemittanceListUC remittanceListContainer = new RemittanceList.RemittanceListUC(); CloseableTab.CloseableTab theTabItem = new CloseableTab.CloseableTab(); theTabItem.Title = "Havale İşlemi Listeleme"; theTabItem.Content = remittanceListContainer; tabControl1.Items.Add(theTabItem); theTabItem.Focus(); } }
private void btnHesapDetay_Click(object sender, RoutedEventArgs e) { if (dgAccountList.SelectedItem == null) { return; } if (MainScreenTabControl == null) { return; } SelectedAccount = (AccountContract)dgAccountList.SelectedItem; AccountAdd.AccountAddUC accountAddUC = new AccountAdd.AccountAddUC(SelectedAccount); CloseableTab.CloseableTab theTabItem = new CloseableTab.CloseableTab(); theTabItem.Title = $"Hesap Detayları - MüşteriId: {SelectedAccount.CustomerId}"; theTabItem.Content = accountAddUC; MainScreenTabControl.Items.Add(theTabItem); theTabItem.Focus(); }
private void btnMusteriDetay_Click(object sender, RoutedEventArgs e) { if (dgMusteriListesi.SelectedItem == null) { return; } if (MainScreenTabControl == null) { return; } SelectedCustomer = (CustomerContract)dgMusteriListesi.SelectedItem; CustomerAdd.CustomerAddUC customerAddUC = new CustomerAdd.CustomerAddUC(SelectedCustomer); CloseableTab.CloseableTab theTabItem = new CloseableTab.CloseableTab(); theTabItem.Title = $"Müşteri Detayları - ({SelectedCustomer.CustomerId}) {SelectedCustomer.CustomerName} {SelectedCustomer.CustomerLastName}"; theTabItem.Content = customerAddUC; MainScreenTabControl.Items.Add(theTabItem); theTabItem.Focus(); }