protected override void OnDropDownClosed(DropDownClosedEventArgs e) { base.OnDropDownClosed(e); if (_listBox.SelectedItem is ScriptValueList.ScriptEditorItem) { var scriptEditor = _provider.GetService(typeof(IScriptEditorService)) as IScriptEditorService; if (scriptEditor == null) { return; } var scriptSource = _scriptSource; if (string.IsNullOrEmpty(scriptSource)) { scriptSource = _report.DataSourceName; } object result; scriptEditor.EditScript(_report, scriptSource, _kind, this, "Expression", _scriptName, true, out result); } else if (_listBox.SelectedItem is ScriptValueList.ValueItem) { var item = _listBox.SelectedItem as ScriptValueList.ValueItem; Expression = ScriptValueHelper.TextToObject(item.Text, typeof(ScriptStringValue), item.IsExpression).ToString(); } }
protected override void OnDropDownClosed(DropDownClosedEventArgs e) { base.OnDropDownClosed(e); if (_emptyNames) { Value = _preValue; } }
private void CboPackage_DropDownClosed(object sender, DropDownClosedEventArgs e) { //throw new NotImplementedException(); if (pageLoad) { return; } txtDeposit.Focus(); }
private void TxtDateStart_DropDownClosed(object sender, DropDownClosedEventArgs e) { //throw new NotImplementedException(); if (txtDateStart.Text.Equals("")) { grfQue.Rows.Count = 1; grfFinish.Rows.Count = 1; return; } setGrfQue(); setGrfFinish(); }
private void Cbo_DropDownClosed(object sender, DropDownClosedEventArgs e) { //throw new NotImplementedException(); //MessageBox.Show("22", ""); String id = ""; ComboBoxItem item = new ComboBoxItem(); item = (ComboBoxItem)((C1ComboBox)sender).SelectedItem; if (item == null) { return; } grfStk[grfStk.Row, colId] = ""; grfStk[grfStk.Row, colCode] = item.Value; grfStk.Col = colQty; grfStk[grfStk.Row, colUnit] = ic.ivfDB.oStkdDB.getUnitName(item.Value.Trim()); grfStk[grfStk.Row, 0] = grfStk.Row; grfStk[grfStk.Row, colEdit] = "1"; //col.Selected = true; //if (grfStk.Rows.Count == grfStk.Row+1) grfStk.Rows.Add(); //item = (ComboBoxItem)item1; //item = (ComboBoxItem)item1; }
private void TxtDate_DropDownClosed(object sender, DropDownClosedEventArgs e) { //throw new NotImplementedException(); setRefreshTab(); }
private void c1ComboBox1_DropDownClosed(object sender, DropDownClosedEventArgs e) { btnOpen.Enabled = true; }
private void CboStaff_DropDownClosed(object sender, DropDownClosedEventArgs e) { //throw new NotImplementedException(); setAmtOnhand(); }