示例#1
0
        /* D O  C O L L E C T I O N  C H A N G E D */

        /*----------------------------------------------------------------------------
        *       %%Function: DoCollectionChanged
        *       %%Qualified: AzLog.AzLog.DoCollectionChanged
        *       %%Contact: rlittle
        *
        *  ----------------------------------------------------------------------------*/
        private void DoCollectionChanged(object sender, EventArgs e)
        {
            string sCollection = (string)m_cbxCollections.SelectedItem;

            m_azlc = AzLogCollection.LoadCollection(s_sRegRoot, sCollection);
            SyncUIToCollection();
            SetDefaultCollection(sCollection);
        }
示例#2
0
        /* L O A D  C O L L E C T I O N */

        /*----------------------------------------------------------------------------
        *       %%Function: LoadCollection
        *       %%Qualified: AzLog.AzLogCollection.LoadCollection
        *       %%Contact: rlittle
        *
        *  ----------------------------------------------------------------------------*/
        public static AzLogCollection LoadCollection(string sRegRoot, string sName)
        {
            AzLogCollection azlc = new AzLogCollection(sName);

            azlc.Load(sRegRoot);

            return(azlc);
        }
示例#3
0
        // a collection is a set of datasources.
        private void DoCreateCollection(object sender, EventArgs e)
        {
            string sName;

            if (TCore.UI.InputBox.ShowInputBox("Collection name", out sName))
            {
                m_cbxCollections.Items.Add(sName);
                m_cbxCollections.SelectedIndex = m_cbxCollections.Items.Count - 1;
                m_azlc = new AzLogCollection(sName);
                SyncUIToCollection();
            }
        }