コード例 #1
0
        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();
            }
        }
コード例 #2
0
 private void Awake()
 {
     Get = this;
     Hide();
 }
コード例 #3
0
 private void Awake()
 {
     Get       = this;
     _animator = GetComponentInChildren <Animator>();
 }