예제 #1
0
        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;
        }
예제 #2
0
        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);
            }
        }
예제 #3
0
 public MySmo.Schema GetSchema(Oe.Schema oe_schema)
 {
     return(GetSchema(_smo_server.Databases[oe_schema.Parent.Parent.Name].Schemas[oe_schema.Name]));
 }