Esempio n. 1
0
 public ContractsLogicProcessor(ApiAccess.Api.RentContract bcContracts,
                                ApiAccess.Api.TxAmendContract bcContractTx,
                                Domain.IRepository <Domain.Contract, string> contractsRepo,
                                ParticipantsLogicProcessor participantsProcessor)
 {
     this.bcContracts           = bcContracts;
     this.bcContractTx          = bcContractTx;
     this.contractsRepo         = contractsRepo;
     this.participantsProcessor = participantsProcessor;
 }
Esempio n. 2
0
 public ParticipantsLogicProcessor(ApiAccess.Api.AdminParticipant bcAdminParticipants,
                                   ApiAccess.Api.ClientParticipant bcClientParticipants,
                                   Domain.IRepository <Domain.Admin, string> adminParticipantRepo,
                                   Domain.IRepository <Domain.Client, string> clientParticipantRepo,
                                   Domain.IRepository <Domain.ApplicationRole, string> roleRepo,
                                   AccessControl.IAccessControl accesscontrol)
 {
     this.bcAdminParticipants   = bcAdminParticipants;
     this.bcClientParticipants  = bcClientParticipants;
     this.adminParticipantRepo  = adminParticipantRepo;
     this.clientParticipantRepo = clientParticipantRepo;
     this.roleRepo      = roleRepo;
     this.accesscontrol = accesscontrol;
 }
Esempio n. 3
0
 private void btnStep2Next_Click(object sender, RoutedEventArgs e)
 {
     if (rbStep2my.IsChecked == true)
     {
         repository = Code.StorageLoader.GetRepository(step2tbSelect.Text);
         if (repository == null)
         {
             MessageBox.Show("Данный dll файл не подходит!!!", "Внимание", MessageBoxButton.OK, MessageBoxImage.Error);
             return;
         }
         if (!FillingConnectString())
         {
             MessageBox.Show("Проблема с формированием строк подключения!!!", "Внимание", MessageBoxButton.OK, MessageBoxImage.Error);
             return;
         }
         tabControl.SelectedIndex = 2;
     }
     else
     {
         MessageBox.Show("Данная функция будет реализована позже");
         return;
     }
 }
Esempio n. 4
0
        private async void btnStep2Next_Click(object sender, RoutedEventArgs e)
        {
            if (rbStep2my.IsChecked == true)
            {
                repository = Code.StorageLoader.GetRepository(step2tbSelect.Text);
                if (repository == null)
                {
                    var infoWindow = new InfoWindow
                    {
                        Message = { Text = "Данный dll файл не подходит!!!" }
                    };

                    await DialogHost.Show(infoWindow, "BaseWizardHost");
                    return;
                }
                if (!FillingConnectString())
                {
                    var infoWindow = new InfoWindow
                    {
                        Message = { Text = "Проблема с формированием строк подключения!!!" }
                    };

                    await DialogHost.Show(infoWindow, "BaseWizardHost");
                    return;
                }
                tabControl.SelectedIndex = 2;
            }
            else
            {
                Code.CurrentBase.CreateBase();               
                var dialogWindow = new DialogWindow
                {
                    Message = { Text = "Хотите сохранить результат?" }
                };

                object result = await DialogHost.Show(dialogWindow, "BaseWizardHost");
                if ((bool)result == true)
                {
                    SaveFileDialog saveFileDialog1 = new SaveFileDialog();
                    saveFileDialog1.Filter = "DB files (*.mandarin|*.mandarin";
                    saveFileDialog1.FilterIndex = 2;
                    saveFileDialog1.RestoreDirectory = true;
                    if (saveFileDialog1.ShowDialog() == true)
                    {
                        Code.CurrentBase.SaveBase(saveFileDialog1.FileName);
                    }
                }
                this.Closing -= Window_Closing;
                Close();

            }
        }