Example #1
0
        public void CompareBankTestCase(object bank, object bankSource, object expectedResult, object message)
        {
            var result = BanksUpdater.CompareBank(bank as Bank, bankSource as BICDirectoryEntryType);

            Assert.AreEqual(result, expectedResult,
                            $"{message} Результат должен быть: {expectedResult}, Результат проверки: {result}");
        }
Example #2
0
    public MainWindow()
        : base(Gtk.WindowType.Toplevel)
    {
        Build();
        this.KeyReleaseEvent += ClipboardWorkaround.HandleKeyReleaseEvent;
        TDIMain.MainNotebook  = tdiMain;
        this.KeyReleaseEvent += TDIMain.TDIHandleKeyReleaseEvent;
        //Передаем лебл
        QSMain.StatusBarLabel = labelStatus;
        this.Title            = MainSupport.GetTitle();
        QSMain.MakeNewStatusTargetForNlog();

        MainSupport.LoadBaseParameters();

        MainUpdater.RunCheckVersion(true, true, true);
        QSMain.CheckServer(this);          // Проверяем настройки сервера

        if (QSMain.User.Login == "root")
        {
            string        Message = "Вы зашли в программу под администратором базы данных. У вас есть только возможность создавать других пользователей.";
            MessageDialog md      = new MessageDialog(this, DialogFlags.DestroyWithParent,
                                                      MessageType.Info,
                                                      ButtonsType.Ok,
                                                      Message);
            md.Run();
            md.Destroy();
            Users WinUser = new Users();
            WinUser.Show();
            WinUser.Run();
            WinUser.Destroy();
            return;
        }

        ActionUsers.Sensitive = QSMain.User.Admin;

        BanksUpdater.Update(false);
    }
Example #3
0
 protected void OnActionBankUpdateActivated(object sender, EventArgs e)
 {
     BanksUpdater.Update(true);
 }