public TextBoxExAuto() { _acm = new AutoCompleteManager(); _acm.DataProvider = new SimpleStaticDataProvider(Entrence.ProviderList); _acm.AutoAppend = true; this.Loaded += AutoCompleteTextBoxLoaded; }
// GET: AutoComplete public JsonResult GetTableData(string q, int page, int pageLimit, string idFieldName, string textFieldName, string tableName, string dependentFieldName, string dependentFieldValue, string extraFields) { //List<IdTextInfo> aList = new List<IdTextInfo>(); DataTable aList = new DataTable(); AutoCompleteManager aRepo = new AutoCompleteManager(); int totalCount = 0; string data = ""; try { aList = aRepo.GetTableData(q, page, idFieldName, textFieldName, tableName, dependentFieldName, dependentFieldValue, extraFields); totalCount = aList.Rows.Count; data = JsonConvert.SerializeObject(aList); } catch (Exception ex) { } return(Json(new { data, totalCount, page }, JsonRequestBehavior.AllowGet)); }
public JsonResult GetTableDataById(string id, string idFieldName, string textFieldName, string tableName, string extraFields) { //List<IdTextInfo> aList = new List<IdTextInfo>(); DataTable aList = new DataTable(); AutoCompleteManager autoManager = new AutoCompleteManager(); int totalCount = 0; string data = ""; try { aList = autoManager.GetTableDataById(id, idFieldName, textFieldName, tableName, extraFields); totalCount = aList.Rows.Count; data = JsonConvert.SerializeObject(aList); } catch (Exception ex) { } return(Json(new { data }, JsonRequestBehavior.AllowGet)); }
protected void lnkSelectOrganisation_Click(object sender, EventArgs e) { AutoCompleteManager amManager = new AutoCompleteManager(); IAutocomplete org = amManager.GetIAutocompleteByReference(ucACSchoolOrganisation.SelectedID); ucACSchoolOrganisation.Populate(org); }
public Window1() { test(); InitializeComponent(); _acmBingSuggestion = new AutoCompleteManager(txtBingSearch); _acmBingSuggestion.DataProvider = new BingSuggestionProvider(); _acmBingSuggestion.Asynchronous = true; txtBingSearch.KeyDown += txtBingSearch_KeyDown; btnBingSearch.Click += btnBingSearch_Click; _acmRegistryPath = new AutoCompleteManager(txtRegistryPath); _acmRegistryPath.DataProvider = new RegistryDataProvider(); accbStates.ItemsSource = StateData.States; accbStates.AutoCompleteManager.DataProvider = new SimpleStaticDataProvider(StateData.States); accbStates.AutoCompleteManager.AutoAppend = true; _acmUrlHistory = new AutoCompleteManager(txtUrlHistory); _acmUrlHistory.DataProvider = new UrlHistoryDataProvider(); //_acmUrlHistory.Asynchronous = true; _acmUrlHistory.AutoAppend = true; }
/// <summary> /// Sets the Current Auto-Completer /// </summary> /// <param name="name">Syntax Name</param> private void SetCurrentAutoCompleter(String name) { //If disabled then no Auto-Completer will be set if (!this._enableAutoComplete) { this._autoCompleter = null; return; } if (this._completers.ContainsKey(name)) { this._autoCompleter = this._completers[name]; } else { this._autoCompleter = AutoCompleteManager.GetAutoCompleter(name); } if (this._autoCompleter != null) { //Cache auto-completer only if non-null if (!this._completers.ContainsKey(name)) { this._completers.Add(name, this._autoCompleter); } this._autoCompleter.Initialise(this._editor); if (!this._enableAutoComplete) { this._autoCompleter.State = AutoCompleteState.Disabled; } } }
public AutoCompleteComboBox() { this.IsEditable = true; this.IsTextSearchEnabled = false; this.GotMouseCapture += AutoCompleteComboBox_GotMouseCapture; _acm = new AutoCompleteManager(); }
private void Init() { root = new Root(this); outputBuilder = new StringBuilder(); autoCompleteManager = new AutoCompleteManager(this); recentCmdManager = new RecentCmdManager(); soundPlayer = new SoundPlayer(Properties.Resources.Keyboard_EnterClick); CmdProc = new CMDProcess(); FindHandle(); ClearInput(); LoadPlugin(); UpdateResolution(); RegisterEvent(); CmdProc.ExecuteUpdateWorkingDirectory(); void FindHandle() { Window window = Window.GetWindow(this); var wih = new WindowInteropHelper(window); Handle = wih.Handle; } void ClearInput() { InputEditText.Text = ""; InputEditText.Focus(); } void LoadPlugin() { //Left = 0d; //Top = 0d; //Width = 1920d; //OutputTextView.Text = "결과 출력 디스플레이\nExecute...\n존-새 밥오."; TestPlugin testPlugin = new TestPlugin(); root.pluginManager.registerPlugin(testPlugin); } void RegisterEvent() { InputEditText.KeyDown += OnKeyDown_InputEditText; InputEditText.PreviewKeyDown += OnPreviewKeyDown_InputEditText; CmdProc.OnOutputReceived += OnOutputReceived_CMDProc; InputContext.MouseDown += OnMouseDown_InputContext; Closing += OnClosing; root.loopEngine.AddLoopAction(OnTick); } }
private void Window_Loaded(object sender, RoutedEventArgs e) { string[] commandLineSuggestions = new string[Settings.Default.CommandLines.Count]; Settings.Default.CommandLines.CopyTo(commandLineSuggestions, 0); commandLineACM = new AutoCompleteManager(textBoxCommandLine); commandLineACM.DataProvider = new SimpleStaticDataProvider(commandLineSuggestions); commandLineACM.AutoAppend = true; textBoxCommandLine.Text = Settings.Default.RecentCommandLine ?? string.Empty; textBoxCommandLine.Focus(); textBoxCommandLine.SelectAll(); }
protected void lnkSelectSchool_Click(object sender, EventArgs e) { IAutocomplete org = null; AutoCompleteManager acManager = new AutoCompleteManager(); org = acManager.GetIAutocompleteByReference(acSchoolOrg.SelectedID); if (org != null) { acSchoolOrg.Populate(org); } }
private void consoleWindow_Loaded(object sender, RoutedEventArgs e) { realtimeConsoleCommands = new SortedSet <string>(); foreach (string item in Settings.Default.ConsoleCommandList.Split(';')) { realtimeConsoleCommands.Add(item); } consoleCommandACM = new AutoCompleteManager(textBoxCommand); consoleCommandACM.DataProvider = new SimpleStaticDataProvider(realtimeConsoleCommands); consoleCommandACM.AutoAppend = true; textBoxCommand.Focus(); }
/// <summary> /// Creates a new Editor Manager /// </summary> /// <param name="editor">AvalonEdit Editor</param> public EditorManager(TextEditor editor) { SyntaxManager.Initialise(); AutoCompleteManager.Initialise(); this._editor = editor; //Set up the Context Menu MenuItem cut = new MenuItem(); cut.Header = "Cut"; cut.InputGestureText = "Ctrl+X"; cut.Command = ApplicationCommands.Cut; this._contextMenu.Items.Add(cut); MenuItem copy = new MenuItem(); copy.Header = "Copy"; copy.InputGestureText = "Ctrl+C"; copy.Command = ApplicationCommands.Copy; this._contextMenu.Items.Add(copy); MenuItem paste = new MenuItem(); paste.Header = "Paste"; paste.InputGestureText = "Ctrl+V"; paste.Command = ApplicationCommands.Paste; this._contextMenu.Items.Add(paste); Separator sep = new Separator(); this._contextMenu.Items.Add(sep); this._select.Header = "Select Surrounding Symbol"; this._select.Click += new RoutedEventHandler(SelectSymbolClick); this._contextMenu.Items.Add(this._select); this._contextMenu.Opened += new RoutedEventHandler(ContextMenuOpened); this._editor.ContextMenu = this._contextMenu; //Register Event Handlers for the Editor this._editor.TextChanged += new EventHandler(EditorTextChanged); this._editor.TextArea.TextEntering += new TextCompositionEventHandler(EditorTextEntering); this._editor.TextArea.TextEntered += new TextCompositionEventHandler(EditorTextEntered); this._editor.TextArea.Caret.PositionChanged += new EventHandler(EditorCaretPositionChanged); this._editor.Document.Changed += new EventHandler <DocumentChangeEventArgs>(EditorDocumentChanged); this._editor.Document.UpdateFinished += new EventHandler(EditorDocumentUpdateFinished); this._editor.TextArea.MouseDoubleClick += new MouseButtonEventHandler(EditorTextDoubleClick); //Add the Validation Error Element Generator this._editor.TextArea.TextView.ElementGenerators.Add(new ValidationErrorElementGenerator(this)); }
private void PopulateFields() { AutoCompleteManager amManager = new AutoCompleteManager(); IAutocomplete org = amManager.GetIAutocompleteByReference(CRM_CalendarCPD.SchoolOrganisationReference); ucACSchoolOrganisation.Populate(org); txtAttendees.Text = CRM_CalendarCPD.Attendees.ToString(); if (CRM_CalendarCPD.ConfirmationSent != null) { txtConfirmationSent.Value = (DateTime)CRM_CalendarCPD.ConfirmationSent; } ddlLength.SelectedValue = CRM_CalendarCPD.Length.ToString(); ddlPackage.SelectedValue = CRM_CalendarCPD.CRM_PackageID.ToString(); txtInitials.Text = CRM_CalendarCPD.ConfirmationInitials; }
public MainWindow() { InitializeComponent(); _acmRegistryPath = new AutoCompleteManager(txtRegistryPath) { DataProvider = new RegistrySuggestions() }; accbStates.ItemsSource = StateData.States; accbStates.AutoCompleteManager.DataProvider = new StaticDataSuggestions(StateData.States); _acmGeocoding = new AutoCompleteManager(txtGeocoding) { //DataProvider = new SuggestionsProxy(new GisgraphySuggestions()) DataProvider = new KeyedValuesProxy <FullTextSearch.Document>(new GisgraphySuggestions()) { BlackListSize = 3000, CacheSize = 3000, MaxFailures = 3 }, Asynchronous = true }; actbFileSysPath.AutoCompleteManager.DataProvider = new FileSystemSuggestions(); // elasticsearch _acmElasticSearch = new AutoCompleteManager(txtEsSearch) { //DataProvider = new SuggestionsProxy(new GisgraphySuggestions()) DataProvider = new SuggestionsProxy(new ElasticSearchSuggestions( new RestClient() { BaseAddress = new Uri("http://localhost:9200/movies/movie") }, new[] { "producer", "director" })) { BlackListSize = 3000, CacheSize = 3000, MaxFailures = 3 }, Asynchronous = true }; }
private void AttachSuggester(object sender) { // no suggester, no suggestions ;) if (_suggester == null) { return; } var tb = (TextBox)sender; // ReSharper disable once ObjectCreationAsStatement var manager = new AutoCompleteManager { DataProvider = _suggester, Asynchronous = true, DataConnection = DataConnection }; manager.AttachTextBox(tb); }
public MainWindow() { InitializeComponent(); DataContext = this; Repository = new Repository <Diagnosis>(DiagnosisCollection, initialDiagnosisXML); DiagnosisCollection = Repository.LoadCollection(); DiagnosisViewSource = new CollectionViewSource(); DiagnosisViewSource.Source = DiagnosisCollection; SelectedDiagnosis = DiagnosisCollection.First(); Closed += MainWindow_Closed; // for WPF AutoCompleteBox (this is the s2progger one) var manager = new AutoCompleteManager(WpfAutoCompBox); manager.DataProvider = new WpfAutoCompBoxProvider( DiagnosisCollection); // Companies would be an ObservableCollection of Company objects }
public JavaScriptResult GetScriptByPageName(string pageName) { string javascript = ""; AutoCompleteManager autoManager = new AutoCompleteManager(); List <AutocompleteInfo> autoCompleteList = new List <AutocompleteInfo>(); try { autoCompleteList = autoManager.GetAutocompletesByPageName(pageName); javascript += "$(function(){ "; foreach (var item in autoCompleteList) { javascript += "SetAutocomplete('" + item.ControlName + "','" + item.IdFieldName + "','" + item.TextFieldName + "','" + item.TableName + "','" + item.DependentControlName + "','" + item.DependentFieldName + "','" + item.ExtraFields + "');"; javascript += "GetAutocomplete('" + item.ControlName + "','" + item.IdFieldName + "','" + item.TextFieldName + "','" + item.TableName + "','" + item.ExtraFields + "');"; if (!string.IsNullOrEmpty(item.DependentControlName) && item.IsMultiselect != true) { foreach (var itm in item.DependentControlName.Split(',')) { javascript += "$(\"[name='" + itm + "']\").change(function(){"; javascript += "$(\"[name='" + item.ControlName + "']\").html('');"; javascript += "});"; } } } javascript += "});"; } catch (Exception ex) { } return(JavaScript(javascript)); }
/// <summary> /// Sets the syntax configuring the associated text editor as appropriate /// </summary> /// <param name="syntax">Syntax</param> private void SetSyntax(String syntax) { if (this._enableHighlighting) { this._editor.SetHighlighter(syntax); } this.SyntaxValidator = SyntaxManager.GetValidator(syntax); if (this._editor.CanAutoComplete) { if (this.IsAutoCompleteEnabled) { this.TextEditor.AutoCompleter = AutoCompleteManager.GetAutoCompleter <T>(this.Syntax, this.TextEditor); } else { this.TextEditor.AutoCompleter = null; } } this.RaiseEvent(this.SyntaxChanged); }
private void PopulateFields() { AutoCompleteManager acManager = new AutoCompleteManager(); acSchoolOrg.Populate(acManager.GetIAutocompleteByReference(CRM_CalendarOutreach.SchoolOrgReference)); //acSchoolPerson.Populate(CRM_CalendarGroupBooking.CRM_PersonSchool); if (!String.IsNullOrEmpty(CRM_CalendarOutreach.Facilitator)) { acFacilitator.Populate(new ContactManager().Contacts.Single(c => c.Reference == CRM_CalendarOutreach.Facilitator)); } chkConfirmationSent.Checked = CRM_CalendarOutreach.ConfirmationSent; txtSpecialNeeds.Text = CRM_CalendarOutreach.SENNoChildren.ToString(); txtSpecialNeedsDetails.Text = CRM_CalendarOutreach.SENDetails; txtPupils.Text = CRM_CalendarOutreach.NoPupils.ToString(); txtAdults.Text = CRM_CalendarOutreach.NoAdults.ToString(); txtYearGroup.Text = CRM_CalendarOutreach.Yeargroup; txtAttendedAdults.Text = CRM_CalendarOutreach.ActualAdults.ToString(); txtAttendedChildren.Text = CRM_CalendarOutreach.ActualChildren.ToString(); txtAttendedTeachers.Text = CRM_CalendarOutreach.ActualTeachers.ToString(); txtInitials.Text = CRM_CalendarOutreach.ConfirmationInitials; txtWorkshopTimes.Text = CRM_CalendarOutreach.WorkshopTimes; if (CRM_CalendarOutreach.ConfirmationSentDate != null) { txtConfirmationSent.Value = (DateTime)CRM_CalendarOutreach.ConfirmationSentDate; } if (CRM_CalendarOutreach.CRM_OfferID != null) { ddlOffer.SelectedValue = CRM_CalendarOutreach.CRM_OfferID.ToString(); } }
public Document <TControl> New(String title, bool switchTo) { Document <TControl> doc = new Document <TControl>(this._factory.CreateAdaptor(), null, title); //Add the document to the collection of documents //Register for appropriate events on the document this._documents.Add(doc); this.RaiseDocumentCreated(doc); doc.ValidatorChanged += new DocumentChangedHandler <TControl>(this.HandleValidatorChanged); doc.Opened += new DocumentChangedHandler <TControl>(this.HandleTextChanged); doc.TextChanged += new DocumentChangedHandler <TControl>(this.HandleTextChanged); //Apply relevant global options to the Document doc.Syntax = this._defaultSyntax; doc.IsHighlightingEnabled = this._options.IsSyntaxHighlightingEnabled; doc.IsAutoCompleteEnabled = this._options.IsAutoCompletionEnabled; if (doc.IsAutoCompleteEnabled && doc.TextEditor.CanAutoComplete) { doc.TextEditor.AutoCompleter = AutoCompleteManager.GetAutoCompleter <TControl>(doc.Syntax, doc.TextEditor); } else { doc.TextEditor.AutoCompleter = null; } if (this._visualOptions != null) { doc.TextEditor.Apply <TFont, TColor>(this._visualOptions); } doc.TextEditor.SymbolSelector = this._options.CurrentSymbolSelector; //Switch to the new document if required if (switchTo) { this._current = this._documents.Count - 1; this.RaiseActiveDocumentChanged(this.ActiveDocument); } return(doc); }
public AutoCompleteTextBox() { _acm = new AutoCompleteManager(); _acm.DataProvider = new FileSysDataProvider(); this.Loaded += AutoCompleteTextBox_Loaded; }
private void PopulateFields() { AutoCompleteManager acManager = new AutoCompleteManager(); acSchoolOrg.Populate(acManager.GetIAutocompleteByReference(CRM_CalendarGroupBooking.SchoolOrgReference)); //acSchoolPerson.Populate(CRM_CalendarGroupBooking.CRM_PersonSchool); if (!String.IsNullOrEmpty(CRM_CalendarGroupBooking.Facilitator)) { acFacilitator.Populate(new ContactManager().Contacts.Single(c => c.Reference == CRM_CalendarGroupBooking.Facilitator)); } if (!String.IsNullOrEmpty(CRM_CalendarGroupBooking.FacilitatorTwo)) { acFacilitator2.Populate(new ContactManager().Contacts.Single(c => c.Reference == CRM_CalendarGroupBooking.FacilitatorTwo)); } if (!String.IsNullOrEmpty(CRM_CalendarGroupBooking.FacilitatorThree)) { acFacilitator3.Populate(new ContactManager().Contacts.Single(c => c.Reference == CRM_CalendarGroupBooking.FacilitatorThree)); } chkIsBookshopRequired.Checked = CRM_CalendarGroupBooking.IsBookshopRequired; chkIsWithin2Hours.Checked = CRM_CalendarGroupBooking.Within2HourSlot; chkRequiresLunch.Checked = CRM_CalendarGroupBooking.IsPackedLunchSpace; chkConfirmationSent.Checked = CRM_CalendarGroupBooking.ConfirmationSent; txtSpecialNeeds.Text = CRM_CalendarGroupBooking.SpecialNeeds.ToString(); txtPhone.Text = CRM_CalendarGroupBooking.Phone; txtEmail.Text = CRM_CalendarGroupBooking.Email; txtPupils.Text = CRM_CalendarGroupBooking.Pupils.ToString(); txtAdults.Text = CRM_CalendarGroupBooking.Adults.ToString(); txtYearGroup.Text = CRM_CalendarGroupBooking.Yeargroup; txtAttendedAdults.Text = CRM_CalendarGroupBooking.ActualAdults.ToString(); txtAttendedChildren.Text = CRM_CalendarGroupBooking.ActualChildren.ToString(); txtAttendedTeachers.Text = CRM_CalendarGroupBooking.ActualTeachers.ToString(); txtFurtherDetails.Text = CRM_CalendarGroupBooking.Details; txtInitials.Text = CRM_CalendarGroupBooking.ConfirmationInitials; if (CRM_CalendarGroupBooking.ConfirmationDateSent != null) { txtConfirmationSent.Value = (DateTime)CRM_CalendarGroupBooking.ConfirmationDateSent; } if (CRM_CalendarGroupBooking.EventID != null) { ddlEvent.SelectedValue = CRM_CalendarGroupBooking.EventID.ToString(); } if (CRM_CalendarGroupBooking.OfferID != null) { ddlOffer.SelectedValue = CRM_CalendarGroupBooking.OfferID.ToString(); } if (CRM_CalendarGroupBooking.CRM_ExhibitionID != null) { ddlOffer.SelectedValue = CRM_CalendarGroupBooking.CRM_ExhibitionID.ToString(); } }
protected void SaveRecord(bool newRecord) { // new record / exiting record // object oldEntity = null; if (newRecord) { CRM_CalendarOutreach = new CRM_CalendarOutreach(); CRM_CalendarOutreach.CRM_CalendarID = Entity.ID; db.CRM_CalendarOutreaches.InsertOnSubmit(CRM_CalendarOutreach); } else { oldEntity = CRM_CalendarOutreach.ShallowCopy(); } IAutocomplete org = new AutoCompleteManager().GetIAutocompleteByReference(acSchoolOrg.SelectedID); CRM_CalendarOutreach.SchoolOrgReference = org.Reference; CRM_CalendarOutreach.OrganisationName = org.Name; CRM_CalendarOutreach.ActualAdults = Convert.ToInt32(txtAttendedAdults.Text); CRM_CalendarOutreach.ActualChildren = Convert.ToInt32(txtAttendedChildren.Text); CRM_CalendarOutreach.ActualTeachers = Convert.ToInt32(txtAttendedTeachers.Text); CRM_CalendarOutreach.SENNoChildren = Convert.ToInt32(txtSpecialNeeds.Text); CRM_CalendarOutreach.SENDetails = txtSpecialNeedsDetails.Text; CRM_CalendarOutreach.WorkshopTimes = txtWorkshopTimes.Text; if (acFacilitator.SelectedID != "") { CRM_CalendarOutreach.Facilitator = acFacilitator.SelectedID; } else { CRM_CalendarOutreach.Facilitator = String.Empty; } if (ddlOffer.SelectedValue != "") { CRM_CalendarOutreach.CRM_OfferID = Convert.ToInt32(ddlOffer.SelectedValue); } else { CRM_CalendarOutreach.CRM_OfferID = null; } if (txtConfirmationSent.Text.Length != 0) { CRM_CalendarOutreach.ConfirmationSentDate = txtConfirmationSent.Value; } else { CRM_CalendarOutreach.ConfirmationSentDate = null; } CRM_CalendarOutreach.ConfirmationInitials = txtInitials.Text; db.SubmitChanges(); if (oldEntity != null) { CRM.Code.History.History.RecordLinqUpdate(AdminUser, oldEntity, CRM_CalendarOutreach); db.SubmitChanges(); } else { CRM.Code.History.History.RecordLinqInsert(AdminUser, CRM_CalendarOutreach); } }
protected void SaveRecord(bool newRecord) { // new record / exiting record // object oldEntity = null; if (newRecord) { CRM_CalendarGroupBooking = new CRM_CalendarGroupBooking(); CRM_CalendarGroupBooking.CRM_PersonSchoolID = null; // obsolete CRM_CalendarGroupBooking.CRM_CalendarID = Entity.ID; CRM_CalendarGroupBooking.IsOutreach = false; // superseded by outreach calendar type db.CRM_CalendarGroupBookings.InsertOnSubmit(CRM_CalendarGroupBooking); } else { oldEntity = CRM_CalendarGroupBooking.ShallowCopy(); } CRM_CalendarGroupBooking.IsBookshopRequired = chkIsBookshopRequired.Checked; CRM_CalendarGroupBooking.Within2HourSlot = chkIsWithin2Hours.Checked; CRM_CalendarGroupBooking.IsPackedLunchSpace = chkRequiresLunch.Checked; CRM_CalendarGroupBooking.ConfirmationSent = chkConfirmationSent.Checked; CRM_CalendarGroupBooking.SpecialNeeds = Convert.ToInt32(txtSpecialNeeds.Text); CRM_CalendarGroupBooking.Phone = txtPhone.Text; CRM_CalendarGroupBooking.Email = txtEmail.Text; CRM_CalendarGroupBooking.Pupils = Convert.ToInt32(txtPupils.Text); CRM_CalendarGroupBooking.Adults = Convert.ToInt32(txtAdults.Text); CRM_CalendarGroupBooking.Yeargroup = txtYearGroup.Text; IAutocomplete org = new AutoCompleteManager().GetIAutocompleteByReference(acSchoolOrg.SelectedID); CRM_CalendarGroupBooking.SchoolOrgReference = org.Reference; CRM_CalendarGroupBooking.OrganisationName = org.Name; CRM_CalendarGroupBooking.CRM_SchoolID = null; CRM_CalendarGroupBooking.ActualAdults = Convert.ToInt32(txtAttendedAdults.Text); CRM_CalendarGroupBooking.ActualChildren = Convert.ToInt32(txtAttendedChildren.Text); CRM_CalendarGroupBooking.ActualTeachers = Convert.ToInt32(txtAttendedTeachers.Text); if (acFacilitator.SelectedID != "") { CRM_CalendarGroupBooking.Facilitator = acFacilitator.SelectedID; } else { CRM_CalendarGroupBooking.Facilitator = String.Empty; } if (acFacilitator2.SelectedID != "") { CRM_CalendarGroupBooking.FacilitatorTwo = acFacilitator2.SelectedID; } else { CRM_CalendarGroupBooking.FacilitatorTwo = String.Empty; } if (acFacilitator3.SelectedID != "") { CRM_CalendarGroupBooking.FacilitatorThree = acFacilitator3.SelectedID; } else { CRM_CalendarGroupBooking.FacilitatorThree = String.Empty; } if (ddlEvent.SelectedValue != "") { CRM_CalendarGroupBooking.EventID = Convert.ToInt32(ddlEvent.SelectedValue); } else { CRM_CalendarGroupBooking.EventID = null; } if (ddlOffer.SelectedValue != "") { CRM_CalendarGroupBooking.OfferID = Convert.ToInt32(ddlOffer.SelectedValue); } else { CRM_CalendarGroupBooking.OfferID = null; } if (ddlExhibition.SelectedValue != "") { CRM_CalendarGroupBooking.CRM_ExhibitionID = Convert.ToInt32(ddlExhibition.SelectedValue); } else { CRM_CalendarGroupBooking.CRM_ExhibitionID = null; } if (txtConfirmationSent.Text.Length != 0) { CRM_CalendarGroupBooking.ConfirmationDateSent = txtConfirmationSent.Value; } else { CRM_CalendarGroupBooking.ConfirmationDateSent = null; } CRM_CalendarGroupBooking.ConfirmationInitials = txtInitials.Text; CRM_CalendarGroupBooking.Details = txtFurtherDetails.Text; db.SubmitChanges(); if (oldEntity != null) { CRM.Code.History.History.RecordLinqUpdate(AdminUser, oldEntity, CRM_CalendarGroupBooking); db.SubmitChanges(); } else { CRM.Code.History.History.RecordLinqInsert(AdminUser, CRM_CalendarGroupBooking); } }
public static TypeAutoComplete TypeAuto() { return(AutoCompleteManager.TypeAutoCompleteFromSelection()); }
public static StaticCommandParameterAutoComplete StringFieldAuto() { return(AutoCompleteManager.FieldAutoComplete(0, typeof(string))); }
public static StaticCommandParameterAutoComplete BoolFieldAuto() { return(AutoCompleteManager.FieldAutoComplete(0, typeof(bool))); }
public static StaticCommandParameterAutoComplete FloatFieldAuto() { return(AutoCompleteManager.FieldAutoComplete(0, typeof(float))); }
public static StaticCommandParameterAutoComplete VectorFieldAuto() { return(AutoCompleteManager.FieldAutoComplete(0, typeof(Vector3))); }
public AutoCompleteTextBox() { _acm = new AutoCompleteManager(); this.Loaded += AutoCompleteTextBox_Loaded; }