public void InitReportData(MailScreen parentScreen, long itemID, long threadID, string userName) { this.parentMailscreen = parentScreen; this.selectedMailItemID = itemID; this.selectedMailThreadID = threadID; this.selectedUserName = userName; }
public static void ShowPopup(MailScreen parent, string newBlockedUser) { Timer timer = new Timer { Interval = 30 }; timer.Tick += new EventHandler(MailUserBlockPopup.tooltipCallbackFunction); timer.Tag = "0"; timer.Enabled = true; MailUserBlockPopup popup = new MailUserBlockPopup(); popup.init(parent, newBlockedUser); popup.ShowDialog(InterfaceMgr.Instance.ParentForm); popup.Dispose(); timer.Stop(); timer.Dispose(); }
public void init(MailScreen parent, string header, string body, string from, string date) { body = body.Replace("\r\n", "\n"); body = body.Replace("\n", "\r\n"); this.m_parent = parent; base.Title = SK.Text("MailScreen_Mail", "Mail"); this.tbBody.Text = body; this.textBox2.Text = header; this.lblFromName.Text = from; this.lbDateValue.Text = date; this.lbFrom.Text = SK.Text("MailScreen_From", "From") + " :"; this.lbDate.Text = SK.Text("MailScreen_Date", "Date") + " :"; this.btnClose.Text = SK.Text("GENERIC_Close", "Close"); this.btnCopySelected.Text = SK.Text("MailScreen_CopySelected", "Copy Selected"); this.btnCopyClipboard.Text = SK.Text("MailScreen_CopyAll", "Copy All"); this.tbBody.Focus(); }
public void init(MailScreen parent, string newBlockedUser) { this.m_parent = parent; this.blockedNames = this.m_parent.getBlockedList(); if ((newBlockedUser.Length > 0) && !this.blockedNames.Contains(newBlockedUser)) { this.blockedNames.Add(newBlockedUser); this.m_parent.updateBlockedList(this.blockedNames); } this.listBoxSearch.Items.Clear(); foreach (string str in this.blockedNames) { this.listBoxSearch.Items.Add(str); } base.Title = SK.Text("MailBlock_title", "Manage Blocked Mail Users"); this.btnRemoveBlock.Text = SK.Text("MailBlock_remove", "Remove"); this.btnClose.Text = SK.Text("GENERIC_Close", "Close"); this.cbAggressive.Text = SK.Text("MailBlock", "Aggressive Blocking"); this.cbAggressive.Checked = this.m_parent.AggressiveBlocking; this.btnRemoveBlock.Enabled = false; }
public MailAttachmentPopup(MailScreen mailParent) { this.dockableControl = new DockableControl(this); this.InitializeComponent(); this.customPanel.init(base.Size, this, mailParent); }
public void init(Size parentSize, MailAttachmentPopup parent, MailScreen parentMail) { base.Size = parentSize; this.m_parent = parent; this.m_mailParent = parentMail; this.btnClose.Text.Text = SK.Text("GENERIC_Close", "Close"); this.btnClose.ImageNorm = (Image) GFXLibrary.button_132_normal; this.btnClose.ImageOver = (Image) GFXLibrary.button_132_over; this.btnClose.ImageClick = (Image) GFXLibrary.button_132_in; this.btnClose.setSizeToImage(); this.btnClose.Position = new Point((base.Width / 2) - (this.btnClose.Width / 2), (base.Height - this.btnClose.Height) - 5); this.btnClose.Text.Font = FontManager.GetFont("Arial", 9f, FontStyle.Regular); this.btnClose.TextYOffset = -2; this.btnClose.Text.Color = ARGBColors.Black; this.btnClose.setClickDelegate(new CustomSelfDrawPanel.CSDControl.CSD_ClickDelegate(this.closeClick), "Mail_Attachment_Close"); this.btnClose.Enabled = true; base.addControl(this.btnClose); this.initIconArea(); }