Example #1
0
        /// <summary>Wyświetla okno edycji kategorii.</summary>
        private void categoriesButton_Click(object sender, EventArgs e)
        {
            CategoriesListForm form = new CategoriesListForm(this);

            form.AddEvent += this.AddCategory;
            form.EditEvent += this.EditCategory;
            form.RemoveEvent += this.RemoveCategory;

            form.ShowDialog(this);
        }
Example #2
0
        private void categoryButton_Click(object sender, EventArgs e)
        {
            CategoriesListForm form = new CategoriesListForm(parent);

            form.AddEvent += parent.AddCategory;
            form.EditEvent += parent.EditCategory;
            form.RemoveEvent += parent.RemoveCategory;

            form.ShowDialog(this);

            this.categoriesComboBox.Items.Clear();
            foreach(string s in parent.portfel.categories)
                this.categoriesComboBox.Items.Add(s);
            this.categoriesComboBox.Items.Remove("stałe");
            this.categoriesComboBox.SelectedItem = this.categoriesComboBox.Items[0];
        }