Beispiel #1
0
 public void MakeNewMailsList(MailsList mailsList, params Mail[] mail)
 {
     foreach (Mail mailParam in mail)
     {
         AddMailItem(mailParam, mailsList);
     }
 }
Beispiel #2
0
        public void AddMailItem(Mail mail, MailsList list)
        {
            ListViewItem newMailItem = new Mail(mail.Sender, mail.Receiver, mail.Topic, mail.MsgContent, mail.AttachmentList);

            newMailItem.FontSize = 18;
            newMailItem.Margin   = new Thickness(5, 0, 0, 5);
            newMailItem.Content  = mail.Topic;
            list.Items.Insert(0, newMailItem);
        }
Beispiel #3
0
 public void ListComponents(MailsList list)
 {
     ////it's the same as Height=auto
     //list.Height = Double.NaN;
     //list.HorizontalAlignment = HorizontalAlignment.Stretch;
     //Grid.SetColumn(list, 1);
     //Grid.SetColumnSpan(list, 2);
     //Grid.SetRow(list, 2);
     //list.Background = Brushes.Ivory;
     //list.Margin = new Thickness(0, 0, 10, 10);
 }
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.gridView1 = ((System.Windows.Controls.Grid)(target));
                return;

            case 2:
                this.searchBox = ((Xceed.Wpf.Toolkit.WatermarkTextBox)(target));
                return;

            case 3:
                this.mailsBoxPanel = ((System.Windows.Controls.StackPanel)(target));
                return;

            case 4:
                this.treeViewMailBox = ((System.Windows.Controls.TreeView)(target));
                return;

            case 5:
                this.menu = ((System.Windows.Controls.Menu)(target));
                return;

            case 6:
                this.newMessageMenu = ((System.Windows.Controls.MenuItem)(target));

            #line 134 "..\..\MainWindow.xaml"
                this.newMessageMenu.Click += new System.Windows.RoutedEventHandler(this.NewMessage);

            #line default
            #line hidden
                return;

            case 7:
                this.importMenu = ((System.Windows.Controls.MenuItem)(target));

            #line 143 "..\..\MainWindow.xaml"
                this.importMenu.Click += new System.Windows.RoutedEventHandler(this.ImportFile);

            #line default
            #line hidden
                return;

            case 8:
                this.exportMenu = ((System.Windows.Controls.MenuItem)(target));

            #line 152 "..\..\MainWindow.xaml"
                this.exportMenu.Click += new System.Windows.RoutedEventHandler(this.ExportFile);

            #line default
            #line hidden
                return;

            case 9:
                this.exitMenu = ((System.Windows.Controls.MenuItem)(target));

            #line 161 "..\..\MainWindow.xaml"
                this.exitMenu.Click += new System.Windows.RoutedEventHandler(this.ExitApplication);

            #line default
            #line hidden
                return;

            case 10:
                this.mailsListXAML = ((HCI__Post_Service.MailsList)(target));
                return;

            case 11:
                this.buttonTray = ((System.Windows.Controls.ToolBarTray)(target));
                return;

            case 12:
                this.bBack = ((System.Windows.Controls.Button)(target));

            #line 192 "..\..\MainWindow.xaml"
                this.bBack.Click += new System.Windows.RoutedEventHandler(this.BackButtonClick);

            #line default
            #line hidden
                return;

            case 13:
                this.buttonReply = ((System.Windows.Controls.Button)(target));

            #line 195 "..\..\MainWindow.xaml"
                this.buttonReply.Click += new System.Windows.RoutedEventHandler(this.ReplyMessage);

            #line default
            #line hidden
                return;

            case 14:
                this.bReply = ((System.Windows.Controls.Image)(target));
                return;

            case 15:
                this.buttonReplyAll = ((System.Windows.Controls.Button)(target));

            #line 202 "..\..\MainWindow.xaml"
                this.buttonReplyAll.Click += new System.Windows.RoutedEventHandler(this.ReplyToAllMessage);

            #line default
            #line hidden
                return;

            case 16:
                this.bReplyAll = ((System.Windows.Controls.Image)(target));
                return;

            case 17:
                this.buttonForward = ((System.Windows.Controls.Button)(target));

            #line 209 "..\..\MainWindow.xaml"
                this.buttonForward.Click += new System.Windows.RoutedEventHandler(this.ForwardMessage);

            #line default
            #line hidden
                return;

            case 18:
                this.bForward = ((System.Windows.Controls.Image)(target));
                return;

            case 19:
                this.buttonStar = ((System.Windows.Controls.Button)(target));

            #line 216 "..\..\MainWindow.xaml"
                this.buttonStar.Click += new System.Windows.RoutedEventHandler(this.StarMessage);

            #line default
            #line hidden
                return;

            case 20:
                this.bStar = ((System.Windows.Controls.Image)(target));
                return;

            case 21:
                this.buttonNewMessage = ((System.Windows.Controls.Button)(target));

            #line 223 "..\..\MainWindow.xaml"
                this.buttonNewMessage.Click += new System.Windows.RoutedEventHandler(this.NewMessage);

            #line default
            #line hidden
                return;

            case 22:
                this.bNewMessage = ((System.Windows.Controls.Image)(target));
                return;

            case 23:
                this.buttonDelete = ((System.Windows.Controls.Button)(target));

            #line 230 "..\..\MainWindow.xaml"
                this.buttonDelete.Click += new System.Windows.RoutedEventHandler(this.ButtonDeleteClick);

            #line default
            #line hidden
                return;

            case 24:
                this.bDelete = ((System.Windows.Controls.Image)(target));
                return;

            case 25:
                this.displayedMail = ((HCI__Post_Service.UserControlFolder.ShowEmailMainWindowControl)(target));
                return;
            }
            this._contentLoaded = true;
        }
 public void SetCurrentMailsList(MailsList mailsList)
 {
     currentList = mailsList;
 }
        //Methods

        public void AddMailItem(Mail mail, MailsList list)
        {
            mailManager.AddMailItem(mail, list);
        }
 public void SetCurrentMailsList(MailsList mailsList)
 {
     buttonManager.SetCurrentMailsList(mailsList);
 }
 public void MakeNewMailsList(MailsList mailsList, params Mail[] mail)
 {
     mailManager.MakeNewMailsList(mailsList, mail);
 }