private void setFilter(Filter f) { filter = FilterFabrica.createFilter(f); hideAllElsFilter(); if (string.IsNullOrEmpty(filter.getFirstParamName())) { return; } setText(aTextBox, aLabel, filter.getFirstParamName()); if (string.IsNullOrEmpty(filter.getSecondParamName())) { return; } setText(bTextBox, bLabel, filter.getSecondParamName()); darkCheckBox.Visible = filter.hasDarknessParam(); }
public Form1() { InitializeComponent(); filter = FilterFabrica.createFilter(0); }