public SpecialtiesController(StorageContext context, SpecialtiesForm view) { _view = view; _view.Load += LoadHandler; _view.RefreshData += RefreshDataHandler; _view.ChangeData += ChangeDataHandler; _context = context; }
private void OpenSpecialtiesHandler() { var specForm = new SpecialtiesForm(); var specController = new SpecialtiesController(_context, specForm); _form.Hide(); specForm.ShowDialog(); _form.Show(); }
static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); SpecialtiesForm specForm = new SpecialtiesForm(); StorageContext context = new StorageContext(); _ = new SpecialtiesController(specForm, context); Application.Run(specForm); }
public SpecialtiesController(SpecialtiesForm view, StorageContext context) { _view = view; _view.Load += LoadHandler; _view.RefreshData += RefreshDataHandler; _view.ChangeData += ChangeDataHandler; _view.AddData += AddDataHandler; _view.DeleteData += DeleteDataHandler; _view.ShowGroupsWindow += ShowGroupsWindowHandler; _context = context; }
static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); var context = new StorageContext(); var specWindow = new SpecialtiesForm(); var specController = new SpecialtiesController(context, specWindow); Application.Run(specWindow); }