protected override void PageLeaveCore(PageLoadedDirection direction, ref bool cancel) { if (direction == PageLoadedDirection.Forward) { cancel = !Details.CanCreateBond(); } }
private void AcceptBtn_Click(object sender, EventArgs e) { if (Details.CanCreateBond()) { new CreateBondAction(Details.Connection, Details.BondName, Details.BondedPIFs, Details.AutoPlug, Details.MTU, Details.BondMode, Details.HashingAlgorithm).RunAsync(); Close(); } }