⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 mdlfunction.vb

📁 VB开发的股票软件
💻 VB
字号:
Module mdlFunction

    'populateConfigfromForm -populates Config from the form fileds...
    Public Sub PopulateConfigFromForm(ByVal config As ConfigInfo)
        'copy the values
        config.MainAlawyRefresh = pMainAlawyRefresh
        config.MainOpacity = pMainOpacity
        config.IsTop = pIsTop
        config.MainRefreshTime = pMainRefreshTime
        config.NotifyAlawyRefresh = pNotifyAlawyRefresh
        config.NotifyRefreshTime = pNotifyRefreshTime
        config.WebSite = pWebSite
        config.ICO = pIco
        config.CurrentStockCode = pCurrentStockCode
    End Sub



    'PopulateFormFromConfig  -populates the form from an Config object...
    Public Sub PopulateFormFromConfig(ByVal config As ConfigInfo)
        'copy the values...
        pMainAlawyRefresh = config.MainAlawyRefresh
        pIsTop = config.IsTop
        pMainOpacity = config.MainOpacity
        pMainRefreshTime = config.MainRefreshTime
        pNotifyRefreshTime = config.NotifyRefreshTime
        pNotifyAlawyRefresh = config.NotifyAlawyRefresh
        pWebSite = config.WebSite
        pIco = config.ICO
        pCurrentStockCode = config.CurrentStockCode
    End Sub

    'DataFilename -where should we store our data?
    Public ReadOnly Property DataFilename() As String
        Get
            'get our working folder...
            Dim folder As String
            folder = Environment.CurrentDirectory
            'return the folder with the name "Config.xml"..
            Return folder & "\Data\Config.xml"
        End Get
    End Property

End Module

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -