Пример #1
0
        private void linksListBox_SelectedIndexChanged(object sender, EventArgs e)
        {
            m_currentId = linksListBox.SelectedIndex + 1;

            m_registryManager = null;
            m_registryManager = new CRegistryManager();
            m_customSlotData  = CRegistryManager.GetCustomSlots();

            string[] linkValues = CCustomSlot.GetDataFromId(m_customSlotData, m_currentId, false);

            if (linkValues != null)
            {
                LinkTitle.Text = linkValues[0];
                LinkPath.Text  = linkValues[1];
                LinkArgs.Text  = linkValues[2];
            }
            else
            {
                LinkTitle.Text = "";
                LinkPath.Text  = "";
                LinkArgs.Text  = "";
            }

            #if DEBUG
            Framework.Log("Listbox refreshed");
            #endif
        }
Пример #2
0
        private void RefreshListBox()
        {
            //m_customSlotData = customSlotData;
            m_customSlotData = CRegistryManager.GetCustomSlots();

            //Add slots values to the ListBox
            int i = 0;

            foreach (string noFormat in m_customSlotData)
            {
                if (i != 0)
                {
                    string[] values = CCustomSlot.GetDataFromId(m_customSlotData, i);
                    if (values != null)
                    {
                        linksListBox.Items.Add(values[0]);
                    }
                    else
                    {
                        linksListBox.Items.Add("Custom link " + i);
                    }
                }
                i++;
            }
        }
Пример #3
0
        //Custom slots
        private void SetCustomSlots()
        {
            Framework.Log("Set custom links");

            ResetCustomSlots();

            int i = 0;

            foreach (string noFormat in m_customSlotData)
            {
                string[] values = CCustomSlot.GetDataFromId(m_customSlotData, i);
                if (values != null)
                {
                    Button currentButton = CCustomSlot.GetButtonFromId(this, i);

                    currentButton.Text    = values[0];
                    currentButton.Enabled = true;
                }

                i++;
            }
        }
Пример #4
0
 private void customSlotButton6_Click(object sender, EventArgs e)
 {
     CCustomSlot.ExeSlotAction(6, m_customSlotData);
 }