Beispiel #1
0
        /// <summary>
        /// Change image of the following
        /// </summary>
        private void Next()
        {
            string valueSet = "";

            if (SettingList.Random)
            {
                valueSet = PhotoList.Random();
            }
            else
            {
                valueSet = PhotoList.Photo();
            }

            var index = IListBox.Items.IndexOf(valueSet.GetLastPart());

            if (index != -1)
            {
                IListBox.SelectedItem = IListBox.Items[index];
            }

            Native.SetWindow(valueSet, SettingList.TypeImage);
        }