Пример #1
0
        //load up selected locations and return to LoanInquiry
        private void customButtonContinue_Click(object sender, EventArgs e)
        {
            LoanInquiry  loanInquiry = (LoanInquiry)this._ownerfrm;
            List <Shops> selected    = new List <Shops>();

            loanInquiry.selectedShops.Clear();

            foreach (ShopsTreenode node in LocationsTreeview)
            {
                if (node.Level.Equals(ShopsTreenode.NodeLevel.Shop) && node.NodeCheckBox.Checked)
                {
                    Shops location = new Shops();
                    location.Market = LocationsTreeview[node.NodeMarket].NodeValue;
                    location.Region = LocationsTreeview[node.NodeRegion].NodeValue;
                    location.Shop   = node.NodeValue;

                    loanInquiry.selectedShops.Add(location);
                }
            }

            loanInquiry.Size     = new System.Drawing.Size(961, 646);
            loanInquiry.Location = new System.Drawing.Point(159, 57);

            this.Close();
        }
Пример #2
0
        //back to main menu via parent form
        private void customButtonCancel_Click(object sender, EventArgs e)
        {
            LoanInquiry loanInquiry = (LoanInquiry)this._ownerfrm;

            loanInquiry.NavControlBox.Action = NavBox.NavAction.CANCEL;
        }