void ReleaseDesignerOutlets() { if (RemoveButton != null) { RemoveButton.Dispose(); RemoveButton = null; } if (AddButton != null) { AddButton.Dispose(); AddButton = null; } if (RemoveAllButton != null) { RemoveAllButton.Dispose(); RemoveAllButton = null; } if (AllReturnAttrCheckBox != null) { AllReturnAttrCheckBox.Dispose(); AllReturnAttrCheckBox = null; } if (AttributeToExportComboBox != null) { AttributeToExportComboBox.Dispose(); AttributeToExportComboBox = null; } if (AttributeToExportTableView != null) { AttributeToExportTableView.Dispose(); AttributeToExportTableView = null; } if (FormatComboBox != null) { FormatComboBox.Dispose(); FormatComboBox = null; } if (ScopeComboBox != null) { ScopeComboBox.Dispose(); ScopeComboBox = null; } }
public override void AwakeFromNib() { base.AwakeFromNib(); _attrToExportDs = new AttributeTableViewDataSource(); AttributeToExportTableView.DataSource = _attrToExportDs; foreach (var item in _returnedAttrList) { AttributeToExportComboBox.Add((NSString)item); } foreach (var item in VMDirConstants.ResultExportFormatList) { FormatComboBox.Add((NSString)item); } foreach (var item in VMDirConstants.ResultExportScopeList) { ScopeComboBox.Add((NSString)item); } AttributeToExportComboBox.SelectItem(0); FormatComboBox.SelectItem(0); ScopeComboBox.SelectItem(0); SetVisibility(false); }