void MapSearchControlSetSource(object sender, DataEventArgs e)
 {
     _mapSearchControl.Close();
     _mapSearchControl = null;
     SetSource((LocationResult)e.Data);
 }
 void DialogContentClosed(object sender, DataEventArgs e)
 {
     OnClosed();
 }
 void ComboItems_SelectionChanged(object sender, DataEventArgs dataEventArgs)
 {
     _categoryId = categoryCombo.SelectedItem.ToString();
     PopulateSubCategory();
 }
 public void InvokeDetailControlAdded(DataEventArgs e)
 {
     EventHandler<DataEventArgs> handler = DetailControlAdded;
     if (handler != null) handler(this, e);
 }
 void ComboItems_SelectionChanged(object sender, DataEventArgs dataEventArgs)
 {
     SetEventProperties();
 }
Beispiel #6
0
 private void MoveAccomodationConnectors(DataEventArgs dataEventArgs)
 {
     var values = dataEventArgs.Data as float[];
     var point = _hotelExplorer.TranslatePoint(new Point(0, 0), MainCanvas);
     if(values!=null)
     {
         foreach (var line in _connectors)
         {
             line.X2 = point.X + _hotelExplorer.Width/2;
             line.Y2 = point.Y + _hotelExplorer.Height/2;
         }
     }
 }
Beispiel #7
0
 public void OnClosed(DataEventArgs dataEventArgs)
 {
     if (Closed != null)
         Closed(this, dataEventArgs);
 }