private void MenuEdit_Click(object sender, RoutedEventArgs e) { var point = ListBox1.SelectedItem as Location.TModel.Location.AreaAndDev.Point; //var point = new DbModel.Location.AreaAndDev.Point(); var win = new ItemInfoWindow(point); win.SaveEvent += (w, p) => { var p1 = p as Point; var bll = AppContext.GetLocationBll(); var r = new AreaService(bll).EditPoint(p1); return(r != null); }; if (win.ShowDialog() == true) { DrawArea(); } }
private void Awake() { Get = this; Hide(); }
private void Awake() { Get = this; _animator = GetComponentInChildren <Animator>(); }