예제 #1
0
 public TodoListForm(Business.Repositories.TodoRepository _todorepo, Business.Repositories.ContactRepository _contactRepository, Business.Repositories.AppointmentRepository _appointmentRepository)
 {
     this._todorepo              = _todorepo;
     this._contactRepository     = _contactRepository;
     this._appointmentRepository = _appointmentRepository;
     InitializeComponent();
     InitializeFormElements();
     this.DoubleBuffered = true;
 }
예제 #2
0
        public AddContactForm(Business.Repositories.ContactRepository _contactRepository)
        {
            this._contactRepository = _contactRepository;
            InitializeComponent();
            initializeSelectables();

            if (System.Diagnostics.Debugger.IsAttached)
            {
                this.generateRandomContactButton.Visible = true;
            }
            else
            {
                this.generateRandomContactButton.Visible = false;
            }
        }