示例#1
0
        private void BtnNewEqu_Click(object sender, EventArgs e)
        {
            var equipment = new Equipment()
            {
                ContractId = _contract.ContractId, RenewalId = GetActiveRenewal().RenewalId
            };
            var nev = new NewEquipment();

            nev.ContractView = this;
            //nev.SetCustomer(_customer);
            nev.MainParent = this.MdiParent;
            nev.ShowObject(equipment);
            nev.ShowDialog();
        }
示例#2
0
        private void newToolStripButton2_Click(object sender, EventArgs e)
        {
            var equipment = new Equipment()
            {
                ContractId = GetDefaultContract(_customer).ContractId
            };

            var nev = new NewEquipment();

            nev.CustomerView = this;
            //nev.SetCustomer(_customer);
            nev.MainParent = this.MdiParent;
            nev.ShowObject(equipment);
            nev.ShowDialog();
        }