public SelectForm()
 {
     InitializeComponent();
     this.fasade = new ManagingDocsFacade();
     this.ViewAllButton.Click         += ViewAllButton_Click;
     this.dataGridView.CellFormatting += DataGridView1_CellFormatting;
     this.EditButton.Click            += EditData;
     this.ViewBeforeButton.Click      += ViewByDate;
 }
 public void TryGetUserFromDbThrowsNoSuchUserException()
 {
     try
     {
         var facade = new ManagingDocsFacade();
         //todo stub the adapter because tests don't work on data from the database
         facade.GetUserToken(DatabaseTables.FileCabinet, FakeModelObjects.GetUser());
     }
     catch (ArgumentNullException)
     {
     }
 }
 public AddForm()
 {
     InitializeComponent();
     fasade               = new ManagingDocsFacade();
     filePath             = string.Empty;
     this.OkButton.Click += OkButtonClick;
     foreach (TextBox tb in this.Controls.OfType <TextBox>().Where(x => x.CausesValidation == true))
     {
         tb.Validating += TextBoxValidate;
     }
     this.user    = FakeModelObjects.GetUser();
     this.cabinet = FakeModelObjects.GetCabinet(this.user);
 }
Exemple #4
0
 public RemoveForm()
 {
     InitializeComponent();
     this.fasade              = new ManagingDocsFacade();
     this.DeleteButton.Click += DeleteButtonClick;
 }