예제 #1
0
        void IViewTab.Fill(Protocol protocol, ViewerItem item)
        {
            ((IViewTab)this).Reset();

            m_images = ParsingHelper.ExtractImages(protocol, item, true);
            int count = m_images.Length;

            if (count > 0)
            {
                ui_cbImages.Items.Clear();

                for (int i = 0; i < count; i++)
                {
                    ui_cbImages.Items.Add(ParsingHelper.GetContentName(m_images[i].Item1, i));
                }

                ui_cbImages.SelectedIndex = 0;

                if (count > 1)
                {
                    ui_cbImages.IsEnabled = true;
                }

                //this.SelectImage(0);
            }

            this.IsFilled = true;
        }