Ejemplo n.º 1
0
 private void button5_Click(object sender, EventArgs e)
 {
     label12.Visible       = true;
     listView4.Visible     = true;
     dataGridView1.Visible = false;
     Notice_Update();
     ReportBox.SendToBack();
     NoticeBox.BringToFront();
 }
Ejemplo n.º 2
0
 private void button8_Click(object sender, EventArgs e)
 {
     NoticeBox.SendToBack();
     ReportBox.BringToFront();
     //举报id,举报者,被举报者,回复id,回复内容,举报原因,举报时间
     ReportListRefresh(1);
     label14.Visible       = true;
     dataGridView1.Visible = true;
     report_state          = 1; //回复
 }
Ejemplo n.º 3
0
 private void button7_Click(object sender, EventArgs e)
 {
     //举报id,举报者,被举报者,帖子id,帖子标题,举报原因,举报时间
     NoticeBox.SendToBack();
     ReportBox.BringToFront();
     label14.Visible       = true;
     dataGridView1.Visible = true;
     ReportListRefresh(0);
     report_state = 0;//帖子
 }
Ejemplo n.º 4
0
        public void AddReport()
        {
            ClearPanel();
            ReportControl      = new ReportBox();
            ReportControl.Dock = DockStyle.Fill;
            MainPanel.Controls.Add(ReportControl);
            int width  = (ReportControl.Width > this.Width) ? ReportControl.Width : this.Width;
            int height = (ReportControl.Height > (this.Height - MarginTop)) ? (ReportControl.Height + MarginTop) : this.Height;

            CurrentSize = new Size(width, height);
            //ChangeCurrentSize(CurrentSize);
            this.WindowState      = FormWindowState.Normal;
            ReportControl.RV.Dock = DockStyle.Fill;
        }
Ejemplo n.º 5
0
        private void Testbutton_Click(object sender, EventArgs e)
        {
            try
            {
                ReportBox.Text = "";
                Report("Beginning calc for " + CurrencyCombo.Text);
                ReadTestData(CurrencyCombo.Text);
                Report("Test data read.");
                ReportBox.Refresh();

                inputData.Holidays = Functions.GetHolidays(inputData.HolidayCentre);
                ZeroCouponCalc calc = new ZeroCouponCalc();

                if (inputData.LiborData.Count < 3 || inputData.FutureData.Count < 3 || inputData.SwapData.Count < 3)
                {
                    throw new Exception(string.Format("Not enough rates read in for {0} currency.", CurrencyCombo.Text));
                }

                string ret = calc.Calc(inputData);
                if (ret.Length > 0)
                {
                    Report("Error. Calc method returned:");
                    Report(ret);
                }
                else
                {
                    Report("Calc completed successfully");
                    Report("===========================");
                    foreach (OutputPoint rate in calc.Output)
                    {
                        Report(rate.Date.ToString("dd MMM yy") + "\t" + rate.Term + "\t" + rate.Rate);
                    }
                }
            }
            catch (Exception ex)
            {
                Report("Error:");
                Report(ex.Message);
            }
        }
Ejemplo n.º 6
0
 //*************************************************************************************************************
 private void SendError_Load(object sender, EventArgs e)
 {
     BuildReport();
     ReportBox.Text = Report;
     ReportBox.Select(0, 0);
 }