void ReleaseDesignerOutlets() { if (AddCustomer != null) { AddCustomer.Dispose(); AddCustomer = null; } if (Camera != null) { Camera.Dispose(); Camera = null; } if (EmployeesTableView != null) { EmployeesTableView.Dispose(); EmployeesTableView = null; } if (NavigationItem != null) { NavigationItem.Dispose(); NavigationItem = null; } }
void ReleaseDesignerOutlets() { if (AddCustomer != null) { AddCustomer.Dispose(); AddCustomer = null; } if (BillNumber != null) { BillNumber.Dispose(); BillNumber = null; } if (Egn != null) { Egn.Dispose(); Egn = null; } if (Error != null) { Error.Dispose(); Error = null; } }
void ReleaseDesignerOutlets() { if (AddCustomer != null) { AddCustomer.Dispose(); AddCustomer = null; } if (Camera != null) { Camera.Dispose(); Camera = null; } if (EmployeesTableView != null) { EmployeesTableView.Dispose(); EmployeesTableView = null; } if (mFullUpdateDateText != null) { mFullUpdateDateText.Dispose(); mFullUpdateDateText = null; } if (NavigationItem != null) { NavigationItem.Dispose(); NavigationItem = null; } if (RefreshBtn != null) { RefreshBtn.Dispose(); RefreshBtn = null; } }
private void addSaleToolStripMenuItem_Click(object sender, EventArgs e) { try { if (_LedgerReports != null && !_LedgerReports.IsDisposed) { _LedgerReports.Dispose(); } if (_LedgerStatement != null && !_LedgerStatement.IsDisposed) { _LedgerStatement.Dispose(); } if (_ListConsignmentDetails != null && !_ListConsignmentDetails.IsDisposed) { _ListConsignmentDetails.Dispose(); } if (_ListConsignments != null && !_ListConsignments.IsDisposed) { _ListConsignments.Dispose(); } if (_ListCustomers != null && !_ListCustomers.IsDisposed) { _ListCustomers.Dispose(); } if (_ListInventory != null && !_ListInventory.IsDisposed) { _ListInventory.Dispose(); } if (_AddConsignmentAdvanced != null && !_AddConsignmentAdvanced.IsDisposed) { _AddConsignmentAdvanced.Dispose(); } if (_AddCustomer != null && !_AddCustomer.IsDisposed) { _AddCustomer.Dispose(); } if (_AddItems != null && !_AddItems.IsDisposed) { _AddItems.Dispose(); } if (_DebitorSummary != null && !_DebitorSummary.IsDisposed) { _DebitorSummary.Dispose(); } if (_DeleteBill != null && !_DeleteBill.IsDisposed) { _DeleteBill.Dispose(); } if (_ItemHistoryReport != null && !_ItemHistoryReport.IsDisposed) { _ItemHistoryReport.Dispose(); } if (_AddBill.IsDisposed) { _AddBill = new AddBill(); } Home.Home_pnl.Visible = false; _AddBill.MdiParent = this; _AddBill.WindowState = FormWindowState.Maximized; _AddBill.Show(); _AddBill.Focus(); } catch (Exception ex) { notifyIcon1.ShowBalloonTip(1000, this.Name, ex.Message, ToolTipIcon.Info);; } }