Created a form to manage categories and sub-categories along with their properties.
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
using System.Data.SqlClient;
|
||||
using System.Drawing;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace InventoryTest
|
||||
{
|
||||
public partial class Form1 : Form
|
||||
{
|
||||
private static string ConnectionString { get; } = "Server=DESKTOP-HJES64T;Database=main;Integrated Security=true;";
|
||||
|
||||
public Form1()
|
||||
{
|
||||
InitializeComponent();
|
||||
|
||||
ManageCategoriesToolStripMenuItem.Click += ShowCategoryManagerForm;
|
||||
}
|
||||
|
||||
private void ShowCategoryManagerForm(object sender, EventArgs e)
|
||||
{
|
||||
var form = new CategoryManager(ConnectionString);
|
||||
form.Show();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user