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();
 }
예제 #2
0
        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();
        }
예제 #3
0
 private void btnReport_Click(object sender, EventArgs e)
 {
     if (this.reasonSelected && this.summaryProvided)
     {
         RemoteServices.Instance.set_ReportMail_UserCallBack(new RemoteServices.ReportMail_UserCallBack(this.parentMailscreen.ReportMailCallback));
         RemoteServices.Instance.ReportMail(this.selectedMailItemID, this.selectedMailThreadID, this.cbReason.SelectedItem.ToString(), this.tbDescription.Text);
         GameEngine.Instance.playInterfaceSound("ReportsGeneric_close");
         this.closeControl(true);
         InterfaceMgr.Instance.reactiveMainWindow();
         if (this.selectedUserName.Length > 0)
         {
             MailUserBlockPopup popup = new MailUserBlockPopup();
             popup.init(this.parentMailscreen, this.selectedUserName);
             popup.ShowDialog(InterfaceMgr.Instance.ParentForm);
             popup.Dispose();
         }
     }
 }
 private void btnReport_Click(object sender, EventArgs e)
 {
     if (this.reasonSelected && this.summaryProvided)
     {
         RemoteServices.Instance.set_ReportMail_UserCallBack(new RemoteServices.ReportMail_UserCallBack(this.parentMailscreen.ReportMailCallback));
         RemoteServices.Instance.ReportMail(this.selectedMailItemID, this.selectedMailThreadID, this.cbReason.SelectedItem.ToString(), this.tbDescription.Text);
         GameEngine.Instance.playInterfaceSound("ReportsGeneric_close");
         this.closeControl(true);
         InterfaceMgr.Instance.reactiveMainWindow();
         if (this.selectedUserName.Length > 0)
         {
             MailUserBlockPopup popup = new MailUserBlockPopup();
             popup.init(this.parentMailscreen, this.selectedUserName);
             popup.ShowDialog(InterfaceMgr.Instance.ParentForm);
             popup.Dispose();
         }
     }
 }