public Details_View(Oe.View o) : this() { this.OeView = o; _Path_Label.Content = o.Parent.Parent.Parent.Text + @"\" + o.Parent.Parent.Text + @"\Views\" + o.Text; var so = WMain.Instance.MySmoProvider.GetView(o); so.ParentDatabase = new MySmo.Database { Name = o.Parent.Parent.Name }; // for save this.MySmoView = so; this.DataContext = so; }
public Configures_View(Oe.View o) : this() { this.O = o; var cfgs = WMain.Instance.Configures.FindAll(a => { return((int)(a.TargetSqlElementType & SqlElementTypes.View) > 0 && a.Validate(o)); }); foreach (var cfg in cfgs) { var c = new Label { Content = (string)cfg.Properties[GenProperties.Caption] , ToolTip = (string)cfg.Properties[GenProperties.Tips] , Tag = cfg }; c.MouseDown += new MouseButtonEventHandler(c_MouseDown); _Configures_StackPanel.Children.Add(c); } }
public MySmo.View GetView(Oe.View oe_view) { return(GetView(_smo_server.Databases[oe_view.Parent.Parent.Name].Views[oe_view.Name, oe_view.Schema])); }