예제 #1
0
 private void Do_TangentaLicence(Navigation nav)
 {
     nav.ShowHelp("Tangenta.Tangenta-LicenseAgreement");
     nav.ChildDialog = new Form_LicenseAgreement(nav);
     nav.ShowDialog();
 }
예제 #2
0
        private bool Get_FVI(Navigation xnav)
        {
            Program.b_FVI_SLO = false;
            if (myOrg.Address_v!=null)
            {
                if (myOrg.Address_v.Country_ISO_3166_num == TangentaDB.PostAddress_v.SLO_Country_ISO_3166_num)
                {
                    Program.b_FVI_SLO = true;
                    if (Program.bFirstTimeInstallation)
                    {
            Do_Form_FVI_check:
                        xnav.ChildDialog = new Form_FVI_check(xnav);
                        xnav.ShowDialog();
                        if (Program.b_FVI_SLO)
                        {
                            if (xnav.eExitResult == Navigation.eEvent.NEXT)
                            {
            Do_Form_myOrg_Office_Data_FVI_SLO_RealEstateBP:

                                xnav.ChildDialog = new Form_myOrg_Office_Data_FVI_SLO_RealEstateBP(myOrg.myOrg_Office_list[0].Office_Data_ID_v.v, xnav);
                                xnav.ShowDialog();
                                if (xnav.eExitResult == Navigation.eEvent.PREV)
                                {
                                    goto Do_Form_FVI_check;
                                }
                                else if (xnav.eExitResult == Navigation.eEvent.NEXT)
                                {
                                    xnav.ChildDialog = new FiscalVerificationOfInvoices_SLO.Form_Settings(usrc_FVI_SLO1,xnav);
                                    xnav.ShowDialog();
                                    if (xnav.eExitResult == Navigation.eEvent.PREV)
                                    {
                                        goto Do_Form_myOrg_Office_Data_FVI_SLO_RealEstateBP;
                                    }
                                }
                            }
                        }
                    }
                }
            }
            return true;
        }
예제 #3
0
 private void Do_TangentaAbout(Navigation nav)
 {
     nav.ShowHelp("Tangenta.Tangenta_about");
     nav.ChildDialog = new Form_Navigate(nav);
     nav.ShowDialog();
 }
예제 #4
0
 private bool GetMissingDBSettings(string name)
 {
     MessageBox.Show(this, lngRPM.s_No_DB_Settings_for.s + " " + name);
     NavigationButtons.Navigation nav_FormDBSettings = new Navigation();
     nav_FormDBSettings.bDoModal = true;
     nav_FormDBSettings.m_eButtons = Navigation.eButtons.OkCancel;
     nav_FormDBSettings.eExitResult = Navigation.eEvent.NOTHING;
     repeat_Form_DBSettings:
     nav_FormDBSettings.ChildDialog = new Form_DBSettings(nav_FormDBSettings, Program.AdministratorLockedPassword, Program.MultiuserOperationWithLogin, Program.StockCheckAtStartup);
     nav_FormDBSettings.ShowDialog();
     if (nav_FormDBSettings.eExitResult == Navigation.eEvent.OK)
     {
         Program.AdministratorLockedPassword = ((Form_DBSettings)nav_FormDBSettings.ChildDialog).AdministratorLockedPassword;
         Program.MultiuserOperationWithLogin = ((Form_DBSettings)nav_FormDBSettings.ChildDialog).MultiuserOperationWithLogin;
         Program.StockCheckAtStartup = ((Form_DBSettings)nav_FormDBSettings.ChildDialog).StockCheckAtStartup;
         return true;
     }
     else
     {
         if (MessageBox.Show(this, lngRPM.s_WithoutDatabaseSettingsProgramCanNotRun_ExitOKOrCancel.s, "?", MessageBoxButtons.OKCancel, MessageBoxIcon.Warning, MessageBoxDefaultButton.Button2) == DialogResult.OK)
         {
             goto repeat_Form_DBSettings;
         }
         else
         {
             return false;
         }
     }
 }