예제 #1
0
        public Home()
        {
            InitializeComponent();

            email = new Email();
            bobbinRequestManagerControl = new BobbinRequestManagerControl();
            badgeRequestManagerControl  = new BadgeRequestManagerControl();
            bobbinMailControl           = new MailControl(bobbinRequestManagerControl.getBobbinRequestManager());
            badgeMailControl            = new MailControl(badgeRequestManagerControl.getBadgeRequestManager());
        }
예제 #2
0
        public OpenCallModal()
        {
            InitializeComponent();
            DataContext = new OpenCallViewControl();

            email = new Email();
            openCallManagerControl = new OpenCallManagerControl();
            companyControl         = new CompanyControl();

            mailControl = new MailControl(openCallManagerControl.getOpenCallManager());

            fillCBCompany();
        }
        public void TestFindCouldNotAllocateEmpsMethod()
        {
            MailControl mailControl = new MailControl();

            mailControl.TransferMail();
        }
예제 #4
0
        private void button1_Click(object sender, EventArgs e)
        {
            MailControl mailControl = new MailControl();

            mailControl.RemoveDuplicate();
        }
예제 #5
0
 /// <summary>
 /// Callback method after deserialization
 /// </summary>
 /// <param name="sender">sender</param>
 public void OnDeserialization(object sender)
 {
     Control = new MailControl(Properties, Emails);
 }
예제 #6
0
 /// <summary>
 /// Initializes a new inbox object, with the values of the properties struct given in the argument.
 /// </summary>
 /// <param name="properties">MailboxProperties struct, that carries the necessary data for the mailbox.</param>
 public Mailbox(MailBoxProperties properties)
 {
     Properties = properties;
     Control    = new MailControl(properties, Emails);
 }