コード例 #1
0
        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);
        }
コード例 #2
0
        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);
        }