public Details_Schema(Oe.Schema o) : this() { this.Schema = o; _Path_Label.Content = o.Parent.Parent.Parent.Text + @"\" + o.Parent.Parent.Text + @"\Schemas\" + o.Text; var so = WMain.Instance.MySmoProvider.GetSchema(o); this.MySmoSchema = so; this.DataContext = so; }
public Configures_Schema(Oe.Schema o) : this() { this.O = o; var cfgs = WMain.Instance.Configures.FindAll(a => { return((int)(a.TargetSqlElementType & SqlElementTypes.Schema) > 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.Schema GetSchema(Oe.Schema oe_schema) { return(GetSchema(_smo_server.Databases[oe_schema.Parent.Parent.Name].Schemas[oe_schema.Name])); }