void ReleaseDesignerOutlets() { if (BtnCancel != null) { BtnCancel.Dispose(); BtnCancel = null; } if (BtnSave != null) { BtnSave.Dispose(); BtnSave = null; } if (LblGross != null) { LblGross.Dispose(); LblGross = null; } if (LblNet != null) { LblNet.Dispose(); LblNet = null; } if (LblVat != null) { LblVat.Dispose(); LblVat = null; } if (TxtGross != null) { TxtGross.Dispose(); TxtGross = null; } if (TxtNet != null) { TxtNet.Dispose(); TxtNet = null; } if (txtVat != null) { txtVat.Dispose(); txtVat = null; } }
void ReleaseDesignerOutlets() { if (AmountDoneBar != null) { AmountDoneBar.Dispose(); AmountDoneBar = null; } if (AmountDoneBtn != null) { AmountDoneBtn.Dispose(); AmountDoneBtn = null; } if (BtnCancel != null) { BtnCancel.Dispose(); BtnCancel = null; } if (BtnClose != null) { BtnClose.Dispose(); BtnClose = null; } if (BtnDelete != null) { BtnDelete.Dispose(); BtnDelete = null; } if (BtnOk != null) { BtnOk.Dispose(); BtnOk = null; } if (BtnRevenueDone != null) { BtnRevenueDone.Dispose(); BtnRevenueDone = null; } if (BtnTaxDone != null) { BtnTaxDone.Dispose(); BtnTaxDone = null; } if (LblAmount != null) { LblAmount.Dispose(); LblAmount = null; } if (LblDescription != null) { LblDescription.Dispose(); LblDescription = null; } if (LblRevenue != null) { LblRevenue.Dispose(); LblRevenue = null; } if (LblTaxType != null) { LblTaxType.Dispose(); LblTaxType = null; } if (LblTitle != null) { LblTitle.Dispose(); LblTitle = null; } if (LblVat != null) { LblVat.Dispose(); LblVat = null; } if (RevenueDoneBar != null) { RevenueDoneBar.Dispose(); RevenueDoneBar = null; } if (RevenuePicker != null) { RevenuePicker.Dispose(); RevenuePicker = null; } if (ScrollVw != null) { ScrollVw.Dispose(); ScrollVw = null; } if (TaxtTypePicker != null) { TaxtTypePicker.Dispose(); TaxtTypePicker = null; } if (TaxTypeDoneBar != null) { TaxTypeDoneBar.Dispose(); TaxTypeDoneBar = null; } if (TxtAmount != null) { TxtAmount.Dispose(); TxtAmount = null; } if (TxtDescription != null) { TxtDescription.Dispose(); TxtDescription = null; } if (TxtRevenue != null) { TxtRevenue.Dispose(); TxtRevenue = null; } if (TxtTaxType != null) { TxtTaxType.Dispose(); TxtTaxType = null; } if (TxtVat != null) { TxtVat.Dispose(); TxtVat = null; } }