Ejemplo n.º 1
0
        /// <summary>
        /// ШАБЛОН Создание экземпляра окна Транхакция
        /// </summary>
        /// <typeparam name="T">Natural, Legal, VIP</typeparam>
        /// <param name="item"></param>
        private void Transact_TemplateWindow <T>(T item)
        {
            WindowTransact windowTransact = new WindowTransact(Bank, item);

            windowTransact.Owner = this;
            this.IsEnabled       = false;
            if (windowTransact.ShowDialog() == true)
            {
                windowTransact.Show();
                windowTransact.Activate();
            }
            this.IsEnabled = true;
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Открытие окна транзакции
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void OpenTransact(object sender, RoutedEventArgs e)
        {
            WindowTransact transact = new WindowTransact(Bank, client);

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