private void SetPanelStates(Object sender, exportControlEventArgs e) { bool state = (bool)e.getData; rangeCtrl.Enabled = state; regularExpressionCtrl.Enabled = state; }
private void SetExpression(Object sender, exportControlEventArgs e) { if (e.getData != null) { regularExpressionCtrl.RegularExpression = e.getData.ToString(); regularExpressionCtrl.CheckRegexButton(true); } else { regularExpressionCtrl.RegularExpression = ""; regularExpressionCtrl.CheckRegexButton(false); } }
private void SetRange(Object sender, exportControlEventArgs e) { Tuple <String, String> rangeData = (Tuple <String, String>)e.getData; if (rangeData.Item1 != null && rangeData.Item2 != null) { rangeCtrl.Start = rangeData.Item1; rangeCtrl.End = rangeData.Item2; rangeCtrl.CheckRangeButton(true); } else { rangeCtrl.Start = String.Empty; rangeCtrl.End = String.Empty; rangeCtrl.CheckRangeButton(false); } }
private void UpdateEndRange(Object sender, exportControlEventArgs e) { selectionCtrl.UpdateEndRange(e.getData.ToString()); }
private void UpdateRandom(Object sender, exportControlEventArgs e) { selectionCtrl.UpdateIsRandom((bool)e.getData); }
private void SetRandom(Object sender, exportControlEventArgs e) { rangeCtrl.Random = (bool)e.getData; }
private void UpdateRegularExpression(Object sender, exportControlEventArgs e) { selectionCtrl.UpdateRegularExpression(e.getData.ToString()); }