Example #1
0
        /// <summary>
        /// ШАБЛОН Создание экземпляра окна Вклада
        /// </summary>
        /// <typeparam name="T">Natural, Legal, VIP</typeparam>
        /// <param name="item"></param>
        private void Credit_TemplateWindow <T>(T item)
        {
            WindowCredit windowCredit = new WindowCredit(item);

            windowCredit.Owner = this;
            this.IsEnabled     = false;
            if (windowCredit.ShowDialog() == true)
            {
                windowCredit.Show();
                windowCredit.Activate();
            }
            this.IsEnabled = true;
        }
Example #2
0
        /// <summary>
        /// Открытие окна кредита
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void OpenCredit(object sender, RoutedEventArgs e)
        {
            WindowCredit credit = new WindowCredit(client);

            credit.Owner   = this;
            this.IsEnabled = false;
            if (credit.ShowDialog() == true)
            {
                credit.Show();
                credit.Activate();
            }
            this.IsEnabled = true;
            Update();
        }