Пример #1
0
        private void CatalogForm_Load(object sender, EventArgs e)
        {
            PopulateList.PopulateProductList(productList);
            productList.Sorting = SortOrder.Ascending;
            Version ver = new Version(Application.ProductVersion);

            tsVersion.Text = "v" + ver.ToString(2);
        }
Пример #2
0
        private void FeatureForm_Load(object sender, EventArgs e)
        {
            if (_productCode != null)
            {
                PopulateList.PopulateFeatureList(featureList, _productCode);
                switch (featureList.Items.Count)
                {
                case 0: tsCount.Text = "No items."; break;

                case 1: tsCount.Text = "1 item."; break;

                default: tsCount.Text = String.Format("{0} items.", featureList.Items.Count); break;
                }
            }
        }
Пример #3
0
 private void refreshToolStripMenuItem_Click(object sender, EventArgs e)
 {
     // TODO: It would be nice to preserve selection and improve redraw.
     productList.SelectedItems.Clear();  // /To reset selection count
     PopulateList.PopulateProductList(productList);
 }