void Completion_MatchSelected(object o, MatchSelectedArgs args) { Street = args.Model.GetValue(args.Iter, (int)columns.Street).ToString(); StreetDistrict = args.Model.GetValue(args.Iter, (int)columns.District).ToString(); ExistOnOSM = true; args.RetVal = true; }
void Completion_MatchSelected(object o, MatchSelectedArgs args) { var node = args.Model.GetValue(args.Iter, 1); Subject = node; OnChangedByUser(); args.RetVal = true; }
void Completion_MatchSelected(object o, MatchSelectedArgs args) { var node = args.Model.GetValue(args.Iter, (int)СompletionColumn.Item); SelectSubjectByNode(node); OnChangedByUser(); args.RetVal = true; }
private void Completion_MatchSelected(object o, MatchSelectedArgs args) { var house = (HouseDTO)args.Model.GetValue(args.Iter, 0); BuildingName = house.ComplexNumber; FiasGuid = house.FiasGuid; FiasHouse = house; args.RetVal = true; }
private void Completion_MatchSelected(object o, MatchSelectedArgs args) { CityName = args.Model.GetValue(args.Iter, (int)Columns.Name).ToString(); CityTypeName = args.Model.GetValue(args.Iter, (int)Columns.TypeName).ToString(); CityTypeNameShort = args.Model.GetValue(args.Iter, (int)Columns.TypeNameShort).ToString(); FiasGuid = (Guid)args.Model.GetValue(args.Iter, (int)Columns.FiasGuid); FireCityChange(); args.RetVal = true; }
void Completion_MatchSelected(object o, MatchSelectedArgs args) { city = args.Model.GetValue(args.Iter, (int)columns.City).ToString(); cityDistrict = args.Model.GetValue(args.Iter, (int)columns.District).ToString(); locality = (LocalityType)args.Model.GetValue(args.Iter, (int)columns.Locality); UpdateText(); OsmId = (long)args.Model.GetValue(args.Iter, (int)columns.OsmId); OnCitySelected(); args.RetVal = true; }
void Completion_MatchSelected(object o, MatchSelectedArgs args) { if (args.Model.GetValue(args.Iter, (int)columns.Street).ToString() == "Загрузка...") { args.RetVal = false; return; } Street = args.Model.GetValue(args.Iter, (int)columns.Street).ToString(); StreetDistrict = args.Model.GetValue(args.Iter, (int)columns.District).ToString(); ExistOnOSM = true; args.RetVal = true; }
void HandleMatchSelected(object sender, MatchSelectedArgs args) { string name = args.Model.GetValue(args.Iter, TextColumn) as string; //Log.DebugFormat ("match selected..{0}", name); int pos = entry.Position; string updated_text = completion_logic.ReplaceKey(entry.Text, name, ref pos); Completing = true; entry.Text = updated_text; entry.Position = pos; Completing = false; args.RetVal = true; //Log.Debug ("done w/ match selected"); }
private void Completion_MatchSelected(object o, MatchSelectedArgs args) { if (args.Model.GetValue(args.Iter, (int)columns.StreetName).ToString() == "Загрузка...") { args.RetVal = false; return; } FiasGuid = (Guid)args.Model.GetValue(args.Iter, (int)columns.FiasGuid); StreetName = args.Model.GetValue(args.Iter, (int)columns.StreetName).ToString(); StreetDistrict = args.Model.GetValue(args.Iter, (int)columns.StreeDistrict)?.ToString(); StreetTypeName = args.Model.GetValue(args.Iter, (int)columns.StreetTypeName).ToString(); StreetTypeNameShort = args.Model.GetValue(args.Iter, (int)columns.StreetTypeNameShort).ToString(); FireStreetChange(); args.RetVal = true; }
private void HandleMatchSelected(object sender, MatchSelectedArgs args) { // Delete what the user had entered in case their casing wasn't the same entry.DeleteText(entry.Position - transformed_key.Length, entry.Position); string name = args.Model.GetValue(args.Iter, TextColumn) as string; //Console.WriteLine ("match selected..{0}", name); int pos = entry.Position; completing = true; entry.InsertText(name, ref pos); completing = false; entry.Position += name.Length; args.RetVal = true; //Console.WriteLine ("done w/ match selected"); }
void Completion_MatchSelected(object o, MatchSelectedArgs args) { House = args.Model.GetValue(args.Iter, 0).ToString(); args.RetVal = true; }
void Completion_MatchSelected(object o, MatchSelectedArgs args) { Text = (string)args.Model.GetValue(args.Iter, 0); args.RetVal = true; }
void Completion_MatchSelected(object o, MatchSelectedArgs args) { SelectedParty = (PartyData)args.Model.GetValue(args.Iter, 0); args.RetVal = true; }