public GenericObjectContainer(ViewList viewList, object obj)
        {
            InitializeComponent();


            toolTip_Info1.SetToolTip(textBox_Name, "Name");

            this.viewList = viewList;
            this.obj      = obj;

            ObjectType(obj);
            Coloring();
        }
示例#2
0
        internal void EditMode(Bill bill, ViewList viewList)
        {
            this.viewList                   = viewList;
            this.bill                       = bill;
            textBox_Name.Text               = bill.Name;
            textBox_Currency.Text           = bill.Currency;
            numericUpDown_Cost.Value        = bill.Cost;
            comboBox_Type.SelectedItem      = bill.Type;
            dateTimePicker_PaymentDue.Value = bill.PaymentDue;

            if (bill.Frequency == 1)
            {
                checkBox_Yearly.Checked = true;
            }

            button_CreateBill.Text = "Save Changes";
        }