Exemplo n.º 1
0
 public ListBoundWatch(Bound_Conclav bnb, SeeHistory see)
 {
     InitializeComponent();
     _Bnb           = bnb;
     See            = see;
     this.BackColor = Color.FromArgb(126, _Bnb.Bound.Img_color);
     foreach (Control item in this.Controls)
     {
         item.DoubleClick += ListBoundWatch_DoubleClick;
     }
 }
Exemplo n.º 2
0
        private void LoadBounds(Bound_Conclav bd)
        {
            Call_cnt++;
            BoundListLayPannel.RowCount++;
            BoundListLayPannel.RowStyles.Add(new RowStyle(SizeType.AutoSize));
            ListBoundWatch newOne = new ListBoundWatch(bd, SeeHistory);

            newOne.Tag         = bd;
            newOne.BorderStyle = BorderStyle.None;
            newOne.Dock        = DockStyle.Top;
            BoundListLayPannel.Controls.Add(newOne, 0, BoundListLayPannel.RowCount);
        }
Exemplo n.º 3
0
        public BoundWatchCntrlFrm(Bound_Conclav bnc, SeeHistory mod = SeeHistory.WithHistory)
        {
            InitializeComponent();
            Bound_Cnc = bnc;
            Mode      = mod;
            Program.ShowedForms.Add(new TagWatcher(Bound_Cnc.Bound.Base.Name, Mode));
            Tag = Program.ShowedForms.Last();
            name_lbl.DataBindings.Add(new Binding("Text", Bound, "Base.Name", true, DataSourceUpdateMode.OnPropertyChanged));
            ticker_lbl.DataBindings.Add(new Binding("Text", Bound, "Base.Ticker", true, DataSourceUpdateMode.OnPropertyChanged));
            pic_box_pb.DataBindings.Add(new Binding("Image", Bound, "Img_exct", true));
            nominal_lbl.DataBindings.Add(new Binding("Text", Bound, "Nominal", true, DataSourceUpdateMode.OnPropertyChanged, 0m, "F1"));
            pay_period_lbl.DataBindings.Add(new Binding("Text", Bound, "Pay_period", true, DataSourceUpdateMode.OnPropertyChanged, 0m, "D"));

            prev_pay_lbl.DataBindings.Add(new Binding("Text", Bound, "Prev_pay_dt", true, DataSourceUpdateMode.OnPropertyChanged, 0m, "dd.MM.yyyy"));
            next_pay_lbl.DataBindings.Add(new Binding("Text", Bound, "Next_pay_dt", true, DataSourceUpdateMode.OnPropertyChanged, 0m, "dd.MM.yyyy"));
            end_pay_lbl.DataBindings.Add(new Binding("Text", Bound, "End_pay_dt", true, DataSourceUpdateMode.OnPropertyChanged, 0m, "dd.MM.yyyy"));

            coupon_prc_lbl.DataBindings.Add(new Binding("Text", Bound, "Cpn_Percent", true, DataSourceUpdateMode.OnPropertyChanged, 0m, "F2"));
            coupon_val_lbl.DataBindings.Add(new Binding("Text", Bound, "Cpn_val", true, DataSourceUpdateMode.OnPropertyChanged, 0m, "F2"));


            offert_date_lbl.DataBindings.Add(new Binding("Enabled", Bound, "HaveOffert", true, DataSourceUpdateMode.OnPropertyChanged));
            offert_pay_lbl.DataBindings.Add(new Binding("Enabled", Bound, "HaveOffert", true, DataSourceUpdateMode.OnPropertyChanged));
            offert_pay_prc_lbl.DataBindings.Add(new Binding("Enabled", Bound, "HaveOffert", true, DataSourceUpdateMode.OnPropertyChanged));
            offert_pay_sum_lbl.DataBindings.Add(new Binding("Enabled", Bound, "HaveOffert", true, DataSourceUpdateMode.OnPropertyChanged));
            amort_date_lbl.DataBindings.Add(new Binding("Enabled", Bound, "HaveAmort", true, DataSourceUpdateMode.OnPropertyChanged));
            amort_pay_lbl.DataBindings.Add(new Binding("Enabled", Bound, "HaveAmort", true, DataSourceUpdateMode.OnPropertyChanged));
            amort_pay_prc_lbl.DataBindings.Add(new Binding("Enabled", Bound, "HaveAmort", true, DataSourceUpdateMode.OnPropertyChanged));
            amort_pay_sum_lbl.DataBindings.Add(new Binding("Enabled", Bound, "HaveAmort", true, DataSourceUpdateMode.OnPropertyChanged));
            if (Bound.HaveOffert)
            {
                offert_date_lbl.DataBindings.Add(new Binding("Text", Bound.ClouserOffert, "offerdate", true, DataSourceUpdateMode.OnPropertyChanged, "", "dd.MM.yyyy"));
                offert_pay_lbl.DataBindings.Add(new Binding("Text", Bound.ClouserOffert, "facevalue", true, DataSourceUpdateMode.OnPropertyChanged, "", "F2"));
                offert_pay_prc_lbl.DataBindings.Add(new Binding("Text", Bound, "OffertPerc", true, DataSourceUpdateMode.OnPropertyChanged, "", "F1"));
            }
            if (Bound.HaveAmort)
            {
                amort_date_lbl.DataBindings.Add(new Binding("Text", Bound.ClouserAmort, "amortdate", true, DataSourceUpdateMode.OnPropertyChanged, "", "dd.MM.yyyy"));
                amort_pay_lbl.DataBindings.Add(new Binding("Text", Bound.ClouserAmort, "value", true, DataSourceUpdateMode.OnPropertyChanged, "", "F2"));
                amort_pay_prc_lbl.DataBindings.Add(new Binding("Text", Bound.ClouserAmort, "valueprc", true, DataSourceUpdateMode.OnPropertyChanged, "", "F1"));
            }


            SwitchType(mod);

            GraphicsPath gp = new GraphicsPath();

            gp.AddEllipse(pic_box_pb.DisplayRectangle);
            pic_box_pb.Region = new Region(gp);
        }