Exemplo n.º 1
0
 public Form_Items_Samples(NavigationButtons.Navigation xnav,string shopName)
 {
     InitializeComponent();
     nav = xnav;
     usrc_NavigationButtons1.Init(nav);
     lngRPMS.s_InsertSampleItems_for_shop.Text(this, shopName);
     lngRPMS.s_rdb_InsertItemsManualy.Text(rdb_InsertItemsManualy);
     lngRPMS.s_rdb_AutoGenerateDemoItems.Text(this.rdb_AutoGenerateDemoItems);
     lngRPMS.s_GeneratorOfSampleItems.Text(grp_AutoGenerateSampleItems);
     lngRPMS.s_lbl_ItemNamePrefix.Text(this.lbl_ItemPrefix);
     lngRPMS.s_lbl_ItemAbbreviationPrefix.Text(this.lbl_ItemAbbreviationPrefix);
     lngRPMS.s_lbl_Number_Of_Groups_in_Level1.Text(this.lbl_Number_Of_Groups_in_Level1);
     lngRPMS.s_lbl_Number_Of_Groups_in_Level2.Text(this.lbl_Number_Of_Groups_in_Level2);
     lngRPMS.s_lbl_Number_Of_Groups_in_Level3.Text(this.lbl_Number_Of_Groups_in_Level3);
     lngRPMS.s_lbl_Number_Of_Items_per_group.Text(this.lbl_NumberOfItemsPerGroup);
     this.txt_Item_Name_Prefix.Text = shopName+lngRPMS.s_txt_Item_Name_Prefix.s;
     this.txt_ItemAbbreviationPrefix.Text = shopName+lngRPMS.s_txt_Item_Name_AbrPrefix.s;
     this.nm_UpDn_NumberOfGroupsInLevel1.Value = iNumberOfGroupsInLevel1;
     this.nm_UpDn_NumberOfGroupsInLevel2.Value = iNumberOfGroupsInLevel2;
     this.nm_UpDn_NumberOfGroupsInLevel3.Value = iNumberOfGroupsInLevel3;
     this.nmUpDn_NumberOfItemsPerGroup.Value = iNumberOfItemsPerGroup;
     rdb_InsertItemsManualy.Checked = true;
     this.nm_UpDn_NumberOfGroupsInLevel1.ValueChanged += new System.EventHandler(this.nm_UpDn_NumberOfGroupsInLevel1_ValueChanged);
     this.nm_UpDn_NumberOfGroupsInLevel2.ValueChanged += new System.EventHandler(this.nm_UpDn_NumberOfGroupsInLevel2_ValueChanged);
     this.nm_UpDn_NumberOfGroupsInLevel3.ValueChanged += new System.EventHandler(this.nm_UpDn_NumberOfGroupsInLevel3_ValueChanged);
     this.nmUpDn_NumberOfItemsPerGroup.ValueChanged += new System.EventHandler(this.nmUpDn_NumberOfItemsPerGroup_ValueChanged);
     ShowAllItemsToInsert();
     if (nav.Auto_NEXT)
     {
         this.rdb_AutoGenerateDemoItems.Checked = true;
         this.rdb_InsertItemsManualy.Checked = false;
     }
 }
Exemplo n.º 2
0
 public Form_StockItem_Edit(CodeTables.DBTableControl xdbTables, SQLTable xtbl,string where_condition, string ColumnToOrderBy,TangentaDB.Item_Data x_Item_Data, NavigationButtons.Navigation xnav)
 {
     InitializeComponent();
     nav = xnav;
     m_Item_Data = x_Item_Data;
     lngRPM.s_lbl_Item_Stock.Text(lbl_Item_Stock);
     this.lbl_Item.Text = m_Item_Data.Item_UniqueName.v;
     dbTables = xdbTables;
     tbl = xtbl;
     this.Text = lngRPM.s_Stock.s;
     string selection = @"Stock_$_ppi_$_i_$$UniqueName,Stock_$$dQuantity,Stock_$$ExpiryDate, Stock_$_ppi_$_pp_$$PurchasePricePerUnit,Stock_$$ImportTime,Stock_$_ppi_$_i_$$Description,Stock_$_ppi_$_st_$_sup_$_c_$_orgd_$_org_$$Name,Stock_$_ppi_$_i_$$Code,Stock_$_ppi_$_i_$_u_$$Name,Stock_$_ppi_$_i_$_u_$$Symbol,Stock_$_ppi_$_i_$_u_$$DecimalPlaces,Stock_$_ppi_$_i_$_u_$$StorageOption,Stock_$_ppi_$_i_$_exp_$$ExpectedShelfLifeInDays,Stock_$_ppi_$_i_$_exp_$$SaleBeforeExpiryDateInDays,Stock_$_ppi_$_i_$_exp_$$DiscardBeforeExpiryDateInDays,Stock_$_ppi_$_i_$_wrty_$$WarrantyDuration, Stock_$_ppi_$_i_$_wrty_$$WarrantyDurationType,Stock_$_ppi_$_i_$_wrty_$$WarrantyConditions,Stock_$_ppi_$_i_$_iimg_$$Image_Data,ID";
     if (m_usrc_EditTable.Init(dbTables, tbl, selection,ColumnToOrderBy,false,where_condition,null,false,nav))
     {
         if (m_usrc_EditTable.RowsCount==0)
         {
             if (f_PurchasePrice_Item.GetOneFrom_Item_ID(m_Item_Data.Item_ID.v, ref PurchasePrice_Item_ID))
             {
                 m_usrc_EditTable.FillInitialData();
             }
             else
             {
                 bclose = true;
                 return;
             }
         }
         m_usrc_EditTable.CallBackSetInputControlProperties(m_Item_Data.Unit_DecimalPlaces.v);
     }
     else
     {
         bclose = true;
     }
 }
Exemplo n.º 3
0
 public Form_Navigate(NavigationButtons.Navigation xnav)
 {
     InitializeComponent();
     nav = xnav;
     usrc_NavigationButtons1.Init(nav);
     lngRPM.s_Select.Text(this);
 }
Exemplo n.º 4
0
        public Form_ProgramSettings(usrc_Document usrc_Main,NavigationButtons.Navigation xnav)
        {
            InitializeComponent();
            nav = xnav;
            this.usrc_NavigationButtons1.Init(nav);
            lngRPM.sProgramSettings.Text(this);
            lngRPM.s_LogFile.Text(btn_LogFile);
            lngRPM.s_Language.Text(lbl_Language);
            lngRPM.s_FullScreen.Text(chk_FullScreen);
            lngRPM.s_chk_AllowToEditText.Text(chk_AllowToEditText);
            lngRPM.s_ElectronicDevice_ID.Text(lbL_ElectronicDevice_ID);
            default_language_ID = DynSettings.LanguageID;
            newLanguage = default_language_ID;
            cmb_Language.DataSource = DynSettings.s_language.sTextArr;
            cmb_Language.SelectedIndex = DynSettings.LanguageID;
            cmb_Language.SelectedIndexChanged += cmb_Language_SelectedIndexChanged;

            DynSettings.AllowToEditText = Properties.Settings.Default.AllowToEditLanguageText;
            chk_AllowToEditText.Checked = DynSettings.AllowToEditText;
            chk_AllowToEditText.CheckedChanged += chk_AllowToEditText_CheckedChanged;
            chk_FullScreen.Checked = Properties.Settings.Default.FullScreen;
            chk_FullScreen.CheckedChanged += Chk_FullScreen_CheckedChanged;
            this.txt_ElectronicDevice_ID.Text = Properties.Settings.Default.ElectronicDevice_ID;
            this.txt_ElectronicDevice_ID.TextChanged += Txt_ElectronicDevice_ID_TextChanged;
            m_usrc_Main = usrc_Main;
            if (nav.m_eButtons == NavigationButtons.Navigation.eButtons.PrevNextExit)
            {
                if (nav.m_Auto_NEXT != null)
                {
                    this.usrc_ShopsInuse1.chk_A_in_use.Checked = true;
                    this.usrc_ShopsInuse1.chk_B_in_use.Checked = true;
                    this.usrc_ShopsInuse1.chk_C_in_use.Checked = true;
                }
            }
        }
Exemplo n.º 5
0
 public Form_GetDBType(string sdbtype, NavigationButtons.Navigation xnav)
 {
     InitializeComponent();
     //if (xImage_Cancel!=null)
     //{
     //    this.btn_Exit.Image = xImage_Cancel;
     //}
     nav = xnav;
     nav.ShowHelp(this.GetType().ToString());
     m_eButtons = nav.m_eButtons;
     usrc_NavigationButtons1.Init(nav);
     lngRPM.s_SelectDatabase.Text(lbl_SelectDataBase);
     if (sdbtype != null)
     {
         if (sdbtype.Equals("SQLITE"))
         {
             rdb_SQLite.Checked = true;
             rdb_MSSQL.Checked = false;
             m_DBType = DBConnection.eDBType.SQLITE;
         }
         else if (sdbtype.Equals("MSSQL"))
         {
             rdb_SQLite.Checked = false;
             rdb_MSSQL.Checked = true;
             m_DBType = DBConnection.eDBType.MSSQL;
         }
     }
 }
Exemplo n.º 6
0
 public Form_myOrg_Office(NavigationButtons.Navigation xnav)
 {
     InitializeComponent();
     nav = xnav;
     usrc_NavigationButtons1.Init(nav);
     lngRPM.s_Edit_Office_Data.Text(btn_Office_Data_And_FVI_SLO_RealEstateBP);
     if (myOrg.ID_v != null)
     {
         myOrganisation_ID = myOrg.ID_v.v;
         tbl_Office = new SQLTable(DBSync.DBSync.DB_for_Tangenta.m_DBTables.GetTable(typeof(Office)));
         this.Text = lngRPM.s_Edit_Offices.s;
         this.usrc_EditTable1.Title = lngRPM.s_Edit_Offices.s;
         long_v myOrganisation_ID_v = new long_v(myOrganisation_ID);
         string selection = "Office_$$Name,Office_$$ShortName,Office_$_mo_$_orgd_$_org_$$Name,Office_$_mo_$_orgd_$_orgt_$$OrganisationTYPE,Office_$_mo_$_orgd_$_org_$$Tax_ID,ID";
         string where_condition = " where Office_$_mo_$$ID = " + myOrganisation_ID.ToString() + " ";
         if (usrc_EditTable1.Init(DBSync.DBSync.DB_for_Tangenta.m_DBTables, tbl_Office, selection, ColumnToOrderBy, false, null, null, false,nav))
         {
             usrc_EditTable1.FillInitialData();
         }
         else
         {
             bclose = true;
         }
     }
     else
     {
         LogFile.Error.Show("ERROR:Tangenta:Form_myOrg_Offices_Edit():myOrg.ID_v is not defined!");
         bclose = true;
     }
 }
Exemplo n.º 7
0
 public Form_myOrg_Person_Edit(long xOffice_ID,NavigationButtons.Navigation xnav)
 {
     InitializeComponent();
     nav = xnav;
     usrc_NavigationButtons1.Init(nav);
     m_Office_ID = xOffice_ID;
     tbl_myOrganisation_Person = new SQLTable(DBSync.DBSync.DB_for_Tangenta.m_DBTables.GetTable(typeof(myOrganisation_Person)));
     lngRPM.s_myOrganisation_Person_Data.Text(this);
     this.Icon = Properties.Resources.Person;
     this.usrc_EditTable1.Title = lngRPM.s_Edit_Office_Data.s;
     string selection = @"  myOrganisation_Person_$_per_$_cfn_$$FirstName,
                             myOrganisation_Person_$_per_$_cln_$$LastName,
                             myOrganisation_Person_$_per_$$DateOfBirth,
                             myOrganisation_Person_$_per_$$Tax_ID,
                             myOrganisation_Person_$_per_$$Registration_ID,
                             myOrganisation_Person_$_office_$_mo_$_orgd_$_org_$$Name,
                             myOrganisation_Person_$_office_$$Name,
                             myOrganisation_Person_$_office_$$ShortName,
                             ID
     ";
     long_v Office_ID_v = null;
     if (m_Office_ID >= 0)
     {
         Office_ID_v = new long_v(m_Office_ID);
     }
     if (usrc_EditTable1.Init(DBSync.DBSync.DB_for_Tangenta.m_DBTables, tbl_myOrganisation_Person, selection, ColumnToOrderBy, false, " where  myOrganisation_Person_$_office_$$ID = " + m_Office_ID.ToString() + " ", null, false,nav))
     {
         usrc_EditTable1.FillInitialData();
     }
     else
     {
         bclose = true;
     }
 }
Exemplo n.º 8
0
        public SQLiteConnectionDialog(conData_SQLITE xconData_SQLite,string recent_items_folder, string xBackupFolder, NavigationButtons.Navigation xnav, string myConnectionName)
        {
            m_conData_SQLITE = xconData_SQLite;

            BackupFolder = xBackupFolder;
            m_ParentForm = xnav.parentForm;
            this.Owner = xnav.parentForm;
            InitializeComponent();
            nav = xnav;
            nav.ShowHelp(this.GetType().ToString());
            if (nav.m_eButtons == NavigationButtons.Navigation.eButtons.PrevNextExit)
            {
                btn_Backup.Visible = false;
            }
            usrc_NavigationButtons1.Init(nav);
            cmbR_FilePath.RecentItemsFolder = recent_items_folder;
            cmbR_FileName.RecentItemsFolder = recent_items_folder;

            if (m_conData_SQLITE.IsValidDataBaseFile())
            {
                cmbR_FilePath.Text = Path.GetDirectoryName(m_conData_SQLITE.DataBaseFile);
                if (!cmbR_FilePath.Text.EndsWith("\\"))
                {
                    cmbR_FilePath.Text += "\\";
                }
                DatabaseFileName = Path.GetFileName(m_conData_SQLITE.DataBaseFile);
                cmbR_FileName.Text = DatabaseFileName;

                if (!System.IO.File.Exists(xconData_SQLite.DataBaseFile))
                {
                    if (!m_conData_SQLITE.SQLite_AllwaysCreateNew)
                    {
                        MessageBox.Show(lngRPM.s_File_does_not_exist.s + m_conData_SQLITE.DataBaseFile);
                    }
                }
            }
            else
            {
                //txtFilePath.Text = Application.CommonAppDataPath;
                if (myConnectionName != null)
                {
                    cmbR_FilePath.Text = "C:\\" + myConnectionName + "\\";
                    DatabaseFileName = myConnectionName + ".sqlite";
                }
                else
                {
                    cmbR_FilePath.Text = "C:\\";
                    DatabaseFileName = "LocalDB.sqlite";

                }
                cmbR_FileName.Text = DatabaseFileName;
            }

            this.lbl_FileName.Text = lngConn.s_FileName.s + ":";
            this.btn_SelectFile.Text = lngConn.s_FileName.s;
            this.btn_SelectFolder.Text = lngConn.s_Folder.s;
            this.lbl_Folder.Text = lngConn.s_Folder.s + ":";
            this.Text = lngConn.s_SelectSQLiteDataBaseFileName.s;
        }
Exemplo n.º 9
0
 public Form_DBSettings_Edit(CodeTables.DBTableControl xdbTables, SQLTable xtbl, string xColumnOrderBy, NavigationButtons.Navigation xnav)
 {
     InitializeComponent();
     nav = xnav;
     dbTables = xdbTables;
     tbl = xtbl;
     ColumnOrderBy = xColumnOrderBy;
     lngRPM.s_DBSettings.Text(this);
 }
Exemplo n.º 10
0
 public Form_PersonData_Edit(CodeTables.DBTableControl xdbTables, SQLTable xtbl,string xColumnOrderBy,NavigationButtons.Navigation xnav)
 {
     InitializeComponent();
     nav = xnav;
     dbTables = xdbTables;
     tbl = xtbl;
     ColumnOrderBy = xColumnOrderBy;
     this.Text = lngRPM.s_Customers_Person.s;
 }
Exemplo n.º 11
0
 public Form_FVI_check(NavigationButtons.Navigation xnav)
 {
     InitializeComponent();
     nav = xnav;
     chk_FVI.Checked = Program.b_FVI_SLO;
     usrc_NavigationButtons1.Init(nav);
     lngRPM.s_FVI_instruction.Text(label1);
     lngRPM.s_FVI_Check.Text(chk_FVI);
 }
 public Form_OrganisationAccount_Edit(CodeTables.DBTableControl xdbTables, SQLTable xtbl,string xColumnOrderBy, NavigationButtons.Navigation xnav)
 {
     InitializeComponent();
     nav = xnav;
     dbTables = xdbTables;
     tbl = xtbl;
     ColumnOrderBy = xColumnOrderBy;
     this.Text = lngRPM.s_OrganisationAccount.s;
 }
 public Form_Select_DefaultCurrency(long xDefaultCurrency_ID, ref TangentaDB.xCurrency xxCurrency, NavigationButtons.Navigation xnav)
 {
     InitializeComponent();
     nav = xnav;
     usrc_NavigationButtons1.Init(nav);
     DefaultCurrency_ID = xDefaultCurrency_ID;
     m_xCurrency = xxCurrency;
     this.Text = lngRPM.s_SelectDefaultCurrency.s;
     lbl_SelectedCurrency.Text = lngRPM.s_SelectedCurrency.s;
 }
Exemplo n.º 14
0
 public Form_myOrg_Edit(CodeTables.DBTableControl xdbTables,SQLTable xtbl,bool bAllowNew, NavigationButtons.Navigation xnav)
 {
     InitializeComponent();
     nav = xnav;
     this.usrc_NavigationButtons1.Init(nav);
     dbTables = xdbTables;
     tbl = xtbl;
     usrc_EditRow.AllowUserToAddNew = bAllowNew;
     lngRPM.s_Edit_Offices.Text(btn_Office);
 }
Exemplo n.º 15
0
 public CommandLineHelp_Form(List<CommandLineHelp> CommandLineHelpList, NavigationButtons.Navigation xnav, Icon xFormIcon)
 {
     InitializeComponent();
     m_CommandLineHelpList = CommandLineHelpList;
     nav = xnav;
     usrc_NavigationButtons1.Init(nav);
     if (xFormIcon!=null)
     {
         this.Icon = xFormIcon;
     }
 }
Exemplo n.º 16
0
 public Form_PersonData_Edit(CodeTables.DBTableControl xdbTables, SQLTable xtbl, string xColumnOrderBy, long ID, NavigationButtons.Navigation xnav)
 {
     InitializeComponent();
     nav = xnav;
     dbTables = xdbTables;
     tbl = xtbl;
     ColumnOrderBy = xColumnOrderBy;
     ID_v = new long_v();
     ID_v.v = ID;
     this.Text = lngRPM.s_Items.s;
 }
Exemplo n.º 17
0
        public Form_ShopsInUse(NavigationButtons.Navigation xnav, bool xbResetShopsInUse,usrc_Document xusrc_Main)
        {
            InitializeComponent();
            nav = xnav;
            usrc_NavigationButtons1.Init(nav);
            bResetShopsInUse = xbResetShopsInUse;
            lngRPM.s_Shops_In_Use.Text(this);

            wb1.DocumentText = Properties.Resources.SLO_Help_Shops_in_use;

            this.m_usrc_Main = xusrc_Main;
        }
Exemplo n.º 18
0
        public Form_SelectLanguage(Icon xProgram_Icon, string xProgram_name, int Language_ID, NavigationButtons.Navigation xnav)
        {
            InitializeComponent();
            Program_Icon = xProgram_Icon;
            Program_name = xProgram_name;
            nav = xnav;
            usrc_NavigationButtons1.Init(nav);
            if (Program_Icon!= null)
            {
                this.Icon = Program_Icon;
            }

            if (Program_name != null)
            {
                lbl_ProgramName.Text = Program_name;
            }
            if (Program_Icon != null)
            {
                this.pic_Program_Icon.Image = Program_Icon.ToBitmap();
            }
            int iCount = DynSettings.s_language.sTextArr.Length;
            int i = 0;
            for ( i = 0;i<iCount;i++)
            {
                string slang = DynSettings.s_language.sTextArr[i];
                if (slang != null)
                {
                    //int iItem = cmb_Language.Items.Add(slang);
                    LanguageList.Add(new Language(slang, i));
                }
            }

            cmb_Language.DataSource = LanguageList;
            cmb_Language.DisplayMember = "Name";
            cmb_Language.ValueMember = "Index";

            if (Language_ID >= 0)
            {
                if (Language_ID < cmb_Language.Items.Count)
                {
                    cmb_Language.SelectedIndex = Language_ID;
                }
                else
                {
                    SelectLanguageOnCultureInfo();
                }
            }
            else
            {
                SelectLanguageOnCultureInfo();
            }
        }
Exemplo n.º 19
0
 public Form_Templates(CodeTables.DBTableControl xdbTables, SQLTable xtbl,string xColumnOrderBy, NavigationButtons.Navigation xnav)
 {
     InitializeComponent();
     nav = xnav;
     dbTables = xdbTables;
     tbl = xtbl;
     ColumnOrderBy = xColumnOrderBy;
     this.Text = lngRPM.s_Items.s;
     rdb_OnlyInOffer.Checked = true;
     this.rdb_OnlyInOffer.Text = lngRPM.s_OnlyInOffer.s;
     this.rdb_All.Text = lngRPM.s_AllItems.s;
     this.rdb_OnlyNotInOffer.Text = lngRPM.s_OnlyNotInOffer.s;
 }
Exemplo n.º 20
0
 public Form_DBmanager(Form xparent_form,bool bxReset, string xm_XmlFileName, string xIniFileFolder, string xDataBaseType, string xBackupFolder, string sDataBaseVersion, NavigationButtons.Navigation xnav)
 {
     InitializeComponent();
     m_parent_form = xparent_form;
     m_XmlFileName = xm_XmlFileName;
     m_IniFileFolder = xIniFileFolder;
     m_DataBaseType = xDataBaseType;
     m_BackupFolder = xBackupFolder;
     m_bReset = bxReset;
     m_sDataBaseVersion = sDataBaseVersion;
     nav = xnav;
     Init();
 }
Exemplo n.º 21
0
 public Form_ShopC_Item_Edit(CodeTables.DBTableControl xdbTables, SQLTable xtbl,string xColumnOrderBy, NavigationButtons.Navigation xnav)
 {
     InitializeComponent();
     nav = xnav;
     dbTables = xdbTables;
     tbl = xtbl;
     usrc_NavigationButtons1.Init(nav);
     ColumnOrderBy = xColumnOrderBy;
     lngRPM.s_Items.Text(this, " "+lngRPM.s_Shop_C.s);
     rdb_OnlyInOffer.Checked = true;
     lngRPM.s_OnlyInOffer.Text(this.rdb_OnlyInOffer);
     lngRPM.s_AllItems.Text(this.rdb_All);
     lngRPM.s_OnlyNotInOffer.Text(this.rdb_OnlyNotInOffer);
 }
 public bool Init(CodeTables.DBTableControl dbTables,SQLTable tbl,ref string Err, NavigationButtons.Navigation xnav)
 {
     nav = xnav;
     tbl.CreateTableTree(dbTables.items);
     string selection = @"ID,
                          PurchasePrice_$$CreationDate,
                          PurchasePrice_$$Description,
                          PurchasePrice_$_Cur_$$Name,
                          PurchasePrice_$_Cur_$$Abbreviation,
                          PurchasePrice_$_Cur_$$Symbol,
                          PurchasePrice_$$Valid,
                          PurchasePrice_$$ValidFrom,
                          PurchasePrice_$$ValidTo
     ";
     return usrc_EditTable_PurchasePriceList.Init(DBSync.DBSync.DB_for_Tangenta.m_DBTables, tbl,selection, "ID asc",false,null,null,false,nav);
 }
Exemplo n.º 23
0
        public Form_Settings(usrc_FVI_SLO x_usrc_FVI_SLO,NavigationButtons.Navigation xnav)
        {
            InitializeComponent();
            nav = xnav;
            m_usrc_FVI_SLO = x_usrc_FVI_SLO;
            usrc_NavigationButtons1.Init(nav);
            Properties.Settings.Default.timeOutInSec = SetValue(nm_UpDown_timeOutInSec,Properties.Settings.Default.timeOutInSec);
            Properties.Settings.Default.timeToShowSuccessfulFURSResult = SetValue(this.nm_TimeToShoqSuccessfulFURS_Transaction, Properties.Settings.Default.timeToShowSuccessfulFURSResult);
            Properties.Settings.Default.QRImageWidth = SetValue(this.nm_QRSizeWidth, Properties.Settings.Default.QRImageWidth);
            Properties.Settings.Default.Last_SalesBookInvoice_SetNumber = SetValue(nm_UpDn_SalesBookInvoice_Last_SetNumber, Properties.Settings.Default.Last_SalesBookInvoice_SetNumber);
            Properties.Settings.Default.MAX_SalesBookInvoice_SetNumber = SetValue(nmUpDn_SalesBookInvoice_NumberOfAllSetsWithinOneBook, Properties.Settings.Default.MAX_SalesBookInvoice_SetNumber);
            Properties.Settings.Default.Save();

            lngRPM.s_Furs_Environment.Text(rdb_FURS_Environment);
            lngRPM.s_Furs_Test_Environment.Text(rdb_FURS_TEST_Environment);

            this.rdb_FURS_TEST_Environment.Checked = false;
            this.rdb_FURS_Environment.Checked = false;
            this.usrc_FURS_environment_settings.Init(false, m_usrc_FVI_SLO);
            this.usrc_FURS_environment_settings_TEST.Init(true, m_usrc_FVI_SLO);
            this.txt_SalesBookInvoice_Current_SerialNumber.Text = Properties.Settings.Default.Last_SalesBookInvoice_SerialNumber;
            this.txt_SalesBookInvoice_SerialNumber_Format.Text = Properties.Settings.Default.SalesBookInvoice_SerialNumber_RegularExpression_pattern;
            this.rdb_FURS_TEST_Environment.Checked = false;
            this.rdb_FURS_Environment.Checked = false;
            this.usrc_FURS_environment_settings.Init(false, m_usrc_FVI_SLO);
            this.usrc_FURS_environment_settings_TEST.Init(true, m_usrc_FVI_SLO);
            this.txt_SalesBookInvoice_Current_SerialNumber.Text = Properties.Settings.Default.Last_SalesBookInvoice_SerialNumber;
            this.txt_SalesBookInvoice_SerialNumber_Format.Text = Properties.Settings.Default.SalesBookInvoice_SerialNumber_RegularExpression_pattern;

            if (Properties.Settings.Default.fursTEST_Environment)
            {
                this.rdb_FURS_TEST_Environment.Checked = true;
                this.usrc_FURS_environment_settings.Enabled = false;
                this.usrc_FURS_environment_settings_TEST.Enabled = true;
            }
            else
            {
                this.rdb_FURS_Environment.Checked = true;
                this.usrc_FURS_environment_settings.Enabled = true;
                this.usrc_FURS_environment_settings_TEST.Enabled = false;
            }

            rdb_FURS_TEST_Environment.CheckedChanged += Rdb_FURS_TEST_Environment_CheckedChanged;
            rdb_FURS_Environment.CheckedChanged += Rdb_FURS_Environment_CheckedChanged;
            chk_DebugAndTest.Checked = Properties.Settings.Default.DEBUG;
            chk_DebugAndTest.CheckedChanged += Chk_DebugAndTest_CheckedChanged;
        }
Exemplo n.º 24
0
 private void btn_CommandLineHelp_Click(object sender, EventArgs e)
 {
     NavigationButtons.Navigation CommandLineHelpNav = new NavigationButtons.Navigation();
     CommandLineHelpNav.bDoModal = true;
     CommandLineHelpNav.m_eButtons = NavigationButtons.Navigation.eButtons.OkCancel;
     CommandLineHelpNav.btn1_Visible = false;
     CommandLineHelpNav.btn2_Image = null;
     CommandLineHelpNav.btn2_Text = lngRPM.s_OK.s;
     CommandLineHelpNav.btn2_Visible = true;
     CommandLineHelpNav.btn3_Image = null;
     CommandLineHelpNav.btn3_Text = lngRPM.s_Cancel.s;
     CommandLineHelpNav.btn3_Visible = false;
     CommandLineHelpNav.btn2_ToolTip_Text = "";
     CommandLineHelpNav.btn3_ToolTip_Text = "";
     CommandLineHelp_Form hlpfrm = new CommandLineHelp_Form(m_CommandLineHelpList, CommandLineHelpNav, m_FormIcon);
     hlpfrm.ShowDialog();
 }
 public Form_CheckInsertSampleData(startup xmyStartup, NavigationButtons.Navigation xnav)
 {
     InitializeComponent();
     nav = xnav;
     usrc_NavigationButtons1.Init(nav);
     lngRPM.s_DataBaseIsEmpty_InsertInitialData.Text(this.lbl_Message1);
     lngRPM.s_DataBaseIsEmpty_EnterData.Text(this.lbl_Message2);
     lngRPM.s_Write_predefined_data_into_a_new_database.Text(this.rdb_WritePredefinedDefaultDataInDataBase);
     lngRPM.s_Enter_your_data_manually.Text(this.rdb_Enter_data_into_a_new_database_table);
     this.rdb_Enter_data_into_a_new_database_table.Checked = false;
     this.rdb_WritePredefinedDefaultDataInDataBase.Checked = true;
     this.myStartup = xmyStartup;
     this.Text = "";
     if (myStartup.m_FormIconQuestion != null)
     {
         this.Icon = myStartup.m_FormIconQuestion;
     }
 }
Exemplo n.º 26
0
 public Form_PriceList_Edit(bool xbEditUndefined,usrc_PriceList_Edit.eShopType xeShopType,NavigationButtons.Navigation xnav)
 {
     InitializeComponent();
     if (xnav != null)
     {
         nav = xnav;
     }
     else
     {
         nav = new NavigationButtons.Navigation();
         nav.bDoModal = true;
         nav.m_eButtons = NavigationButtons.Navigation.eButtons.OkCancel;
     }
     m_eShopType = xeShopType;
     bEditUndefined = xbEditUndefined;
     m_tbl_PriceList = new SQLTable(DBSync.DBSync.DB_for_Tangenta.m_DBTables.GetTable(typeof(PriceList)));
     m_tbl_PriceList.CreateTableTree(DBSync.DBSync.DB_for_Tangenta.m_DBTables.items);
     this.Text = lngRPM.s_PriceListType.s;
 }
Exemplo n.º 27
0
 public Form_LicenseAgreement(NavigationButtons.Navigation xnav)
 {
     InitializeComponent();
     nav = xnav;
     lngRPMS.s_License_agreement.Text(this);
     this.usrc_NavigationButtons1.Init(nav);
     lngRPMS.s_I_accept_the_terms_in_the_license_agreement.Text(rdb_AcceptLicenseAgreement);
     lngRPMS.s_I_do_not_accept_the_terms_in_the_license_agreement.Text(rdb_NotAcceptLicenseAgreement);
     lngRPM.s_Print.Text(btn_Print);
     rdb_AcceptLicenseAgreement.Checked = false;
     rdb_NotAcceptLicenseAgreement.Checked = true;
     usrc_NavigationButtons1.Visible_NEXT = false;
     usrc_NavigationButtons1.Visible_PREV = true;
     usrc_NavigationButtons1.Visible_EXIT = true;
     this.rdb_AcceptLicenseAgreement.CheckedChanged += new System.EventHandler(this.rdb_AcceptLicenseAgreement_CheckedChanged);
     this.usrc_NavigationButtons1.ButtonPressed += new NavigationButtons.usrc_NavigationButtons.delegate_button_pressed(this.usrc_NavigationButtons1_ButtonPressed);
     string sUrl = nav.ShowHelpResolver("Tangenta.Tangenta-LicenseAgreement");
     uri = new Uri(sUrl);
     this.webBrowser1.Url = uri;
 }
Exemplo n.º 28
0
 public Connections_Form(List<DBConnection> Connections, NavigationButtons.Navigation xnav)
 {
     InitializeComponent();
     nav = xnav;
     int y = 10;
     m_Connections = new List<Connection_Control>();
     foreach (DBConnection con in Connections)
     {
         if (con != null)
         {
             Connection_Control ctrl = new Connection_Control(con, nav);
             m_Connections.Add(ctrl);
             ctrl.Parent = this;
             ctrl.Top = y;
             y += ctrl.Height + 10;
             this.Controls.Add(ctrl);
         }
     }
     btn_OK.Top = y;
 }
Exemplo n.º 29
0
 public Form_ShopB_Item_Edit(CodeTables.DBTableControl xdbTables, SQLTable xtbl, string ColumnToOrderBy, NavigationButtons.Navigation xnav)
 {
     InitializeComponent();
     m_bChanged = false;
     dbTables = xdbTables;
     nav = xnav;
     tbl = xtbl;
     lngRPM.s_Items.Text(this, " "+lngRPM.s_Shop_B.s);
     List_of_Inserted_Items_ID = new List<long>();
     rdb_OnlyInOffer.Checked = true;
     lngRPM.s_OnlyInOffer.Text(this.rdb_OnlyInOffer);
     lngRPM.s_AllItems.Text(this.rdb_All);
     lngRPM.s_OnlyNotInOffer.Text(this.rdb_OnlyNotInOffer);
     usrc_NavigationButtons1.Init(xnav);
     string selection = " SimpleItem_$$Name,SimpleItem_$$Abbreviation,SimpleItem_$_siimg_$$Image_Data,SimpleItem_$_sipg1_$$Name,SimpleItem_$_sipg1_$_sipg2_$$Name,SimpleItem_$_sipg1_$_sipg2_$_sipg3_$$Name,SimpleItem_$$ToOffer,ID ";
     if (!usrc_EditTable.Init(dbTables, tbl, selection, ColumnToOrderBy,false,null,null,false,nav))
     {
         bclose = true;
     }
 }
Exemplo n.º 30
0
 public Form_DBSettings(NavigationButtons.Navigation xnav,string AdministratorLockedPassword, bool bMultiuserOperation,bool bStockCheckAtStartup)
 {
     InitializeComponent();
     nav = xnav;
     usrc_NavigationButtons1.Init(nav);
     lngRPM.s_DataBaseVersion.Text(lbl_DataBaseVersion, MyDataBase_Tangenta.VERSION);
     lngRPM.s_Administrator_password.Text(lbl_Administrator_Password);
     lngRPM.s_MultiuserOperationWithLogin.Text(chk_MultiUserOperation);
     lngRPM.s_StockCheckAtStartup.Text(chk_StockCheckAtStartup);
     if (AdministratorLockedPassword == null)
     {
         this.usrc_Password1.Text = this.usrc_Password1.LockPassword("12345");
     }
     else
     {
         this.usrc_Password1.Text = AdministratorLockedPassword;
     }
     chk_MultiUserOperation.Checked = bMultiuserOperation;
     chk_StockCheckAtStartup.Checked = bStockCheckAtStartup;
 }