Example #1
0
        public void btn_msg(object sender, EventArgs e)
        {
            Button button = (Button)sender;
            string s      = (sender as Button).Name;

            this.Close();
            var m = new InputExpense(s);

            m.Show();
        }
Example #2
0
        private void button1_Click(object sender, EventArgs e)
        {
            string category = CategoryName.Text;

            if (string.IsNullOrEmpty(category))
            {
                MessageBox.Show("Please enter the category");
            }
            else
            {
                MessageBox.Show("Category was added successfully");
                //CategoriesClass.Instance().AddCategory(category);
                var m = new InputExpense(category);
                m.Show();
                this.Close();
                AddCategoryAsync(category);
            }
        }