private void radioSort_CheckedChanged(object sender, EventArgs e) { if (sender == null || !(sender is RadioButton) || ((RadioButton)sender).Checked == false) { return; } if (radioByExt.Checked) { SortBy = Phones.PhoneComparer.SortBy.ext; } else { SortBy = Phones.PhoneComparer.SortBy.name; } //Get the phone tiles anew. This will force a resort according the preference we just set. FillTiles(true); }
private void radioSort_CheckedChanged(object sender,EventArgs e) { if(sender==null || !(sender is RadioButton) || ((RadioButton)sender).Checked==false) { return; } if(radioByExt.Checked) { SortBy=Phones.PhoneComparer.SortBy.ext; } else { SortBy=Phones.PhoneComparer.SortBy.name; } //Get the phone tiles anew. This will force a resort according the preference we just set. FillTiles(true); }