private void AnaForm_Load(object sender, EventArgs e) { countCategory = _categoryService.GetCategories().Count; countSuppliers = _supplierService.GetSuppliers().Count; if (countCategory <= 0) { MessageBox.Show("Gorunuse Gore Ilk Defa Programi Aciyorsunuz. Lutfen Ilk Kategorinizi Giriniz."); } { CategoryOperationForm categoryOperationForm = new CategoryOperationForm(); categoryOperationForm.ShowDialog(); countCategory++; } if (countSuppliers <= 0) { MessageBox.Show("Gorunuse Gore Ilk Defa Programi Aciyorsunuz. Lutfen Ilk Tedarikcinizi Giriniz."); SupplierOperationForm supplierOperationForm = new SupplierOperationForm(); supplierOperationForm.ShowDialog(); countSuppliers++; } }
private void button2_Click(object sender, EventArgs e) { CategoryOperationForm categoryOperationForm = new CategoryOperationForm(); categoryOperationForm.ShowDialog(); }