Exemplo n.º 1
0
        public MainForm()
        {
            Instance = this;
            category = new Categories();

            InitializeComponent();
            InitializeApp();

            AppDomain.CurrentDomain.ProcessExit += new EventHandler(OnProcessExit);

            category = CategoryHandler.Load(CategoryHandler.filePath);

            category.InitUI();

            ChangeAddButton(StateManager.APP_STATE);

            childForms = new List <Form>();
        }
Exemplo n.º 2
0
 static void OnProcessExit(object sender, EventArgs e)
 {
     CategoryHandler.Save();
 }