Esempio n. 1
0
        public FormMapColumn(ScriptObject parent)
        {
            InitializeComponent();

            _parent         = parent;
            ucHeading1.Text = "";
            Controller.ShadeMainForm();
        }
Esempio n. 2
0
        public FormIndex(ScriptObject parent)
        {
            InitializeComponent();
            this.BackColor = Slyce.Common.Colors.BackgroundColor;

            _parent         = parent;
            ucHeading1.Text = "";
            Controller.ShadeMainForm();
        }
Esempio n. 3
0
        public FormMapColumn(ScriptObject parent, MapColumn mapColumn)
        {
            InitializeComponent();
            this.BackColor = Slyce.Common.Colors.BackgroundColor;

            _parent         = parent;
            _mapColumn      = mapColumn;
            ucHeading1.Text = "";
            Controller.ShadeMainForm();
        }
Esempio n. 4
0
        public FormRelationship(Relationship relationship, ScriptObject[] scriptObjects)
        {
            InitializeComponent();
            ucHeading1.Text = "";

            _parent = relationship.Parent;
            _primaryRelationship = relationship;
            _scriptObjects       = scriptObjects;
            Controller.ShadeMainForm();
        }
Esempio n. 5
0
        public FormColumn(Column column)
        {
            InitializeComponent();
            this.BackColor = Slyce.Common.Colors.BackgroundColor;

            _parent         = column.Parent;
            _column         = column;
            ucHeading1.Text = "";
            Controller.ShadeMainForm();
        }
Esempio n. 6
0
        public FormKey(Key key)
        {
            InitializeComponent();
            this.BackColor = Slyce.Common.Colors.BackgroundColor;

            _parent         = key.Parent;
            _key            = key;
            ucHeading1.Text = "";
            Controller.ShadeMainForm();
        }
Esempio n. 7
0
        public FormIndex(Index index)
        {
            InitializeComponent();
            this.BackColor = Slyce.Common.Colors.BackgroundColor;

            _parent         = index.Parent;
            _index          = index;
            ucHeading1.Text = "";
            Controller.ShadeMainForm();
        }
Esempio n. 8
0
        public FormScriptObject(ScriptObject[] scriptObjects, ArchAngel.Providers.Database.Model.Database parentDatabase)
        {
            InitializeComponent();
            this.BackColor      = Slyce.Common.Colors.BackgroundColor;
            this.ParentDatabase = parentDatabase;

            _scriptObjects  = scriptObjects;
            ucHeading1.Text = "";
            Controller.ShadeMainForm();
        }
Esempio n. 9
0
        public FormScriptObject(ScriptObject scriptObject, ScriptObject[] scriptObjects)
        {
            InitializeComponent();
            this.BackColor = Slyce.Common.Colors.BackgroundColor;

            _scriptObject   = scriptObject;
            _scriptObjects  = scriptObjects;
            ucHeading1.Text = "";
            Controller.ShadeMainForm();
        }
Esempio n. 10
0
        public FormFilter(Filter filter, ScriptObject[] scriptObjects)
        {
            InitializeComponent();
            this.BackColor = Slyce.Common.Colors.BackgroundColor;

            _parent         = filter.Parent;
            _filter         = filter;
            _scriptObjects  = scriptObjects;
            ucHeading1.Text = "";
            Controller.ShadeMainForm();
        }
Esempio n. 11
0
 public FormSelectDatabase()
 {
     InitializeComponent();
     this.BackColor       = Slyce.Common.Colors.BackgroundColor;
     _delegateSetProperty = new FormSelectDatabase_DelegateSetProperty(this.SetObjectProperty);
     _delegateGetProperty = new FormSelectDatabase_DelegateGetProperty(this.GetObjectProperty);
     _delegateCallMethod  = new FormSelectDatabase_DelegateCallMethod(this.CallObjectMethod);
     Populate();
     ucHeading1.Text = "";
     Controller.ShadeMainForm();
 }
Esempio n. 12
0
 public FormObjectOptionEdit(ArchAngel.Interfaces.ITemplate.IOption option, ArchAngel.Interfaces.ITemplate.IUserOption userOption, ArchAngel.Interfaces.IScriptBaseObject iteratorObject)
 {
     InitializeComponent();
     IteratorObject  = iteratorObject;
     this.BackColor  = Slyce.Common.Colors.BackgroundColor;
     ucHeading1.Text = "";
     CurrentOption   = option;
     UserOption      = userOption;
     OriginalValue   = UserOption.Value;
     Controller.ShadeMainForm();
     Populate();
 }
Esempio n. 13
0
        void btnFileBrowse_Click(object sender, EventArgs e)
        {
            OpenFileDialog fileBrowser = new OpenFileDialog();

            fileBrowser.FileName = ((TextBox)InputControl).Text;
            Controller.ShadeMainForm();

            if (fileBrowser.ShowDialog(this) == DialogResult.OK)
            {
                ((TextBox)InputControl).Text = fileBrowser.FileName;
            }
            Controller.UnshadeMainForm();
        }
Esempio n. 14
0
        void btnColorBrowse_Click(object sender, EventArgs e)
        {
            ColorDialog colorBrowser = new ColorDialog();

            colorBrowser.Color = ((Label)InputControl).BackColor;
            Controller.ShadeMainForm();

            if (colorBrowser.ShowDialog(this) == DialogResult.OK)
            {
                ((Label)InputControl).BackColor = colorBrowser.Color;
            }
            Controller.UnshadeMainForm();
        }
Esempio n. 15
0
        void btnDirectoryBrowse_Click(object sender, EventArgs e)
        {
            FolderBrowserDialog directoryBrowser = new FolderBrowserDialog();

            directoryBrowser.SelectedPath = ((TextBox)InputControl).Text;
            Controller.ShadeMainForm();

            if (directoryBrowser.ShowDialog(this) == DialogResult.OK)
            {
                ((TextBox)InputControl).Text = directoryBrowser.SelectedPath;
            }
            Controller.UnshadeMainForm();
        }
Esempio n. 16
0
        public FormFilter2(Form parentForm, Filter filter, ScriptObject[] scriptObjects)
        {
            this.Owner        = parentForm;
            this.Owner.Cursor = Cursors.WaitCursor;
            InitializeComponent();
            this.BackColor = Slyce.Common.Colors.BackgroundColor;

            _parent           = filter.Parent;
            _filter           = filter;
            _scriptObjects    = scriptObjects;
            ucHeading1.Text   = "";
            this.Text         = "Edit Filter " + _filter.Name;
            IsAddingNewFilter = false;
            Controller.ShadeMainForm();
            InitContentItems();
            Populate();
            this.Owner.Cursor = Cursors.Default;
        }
Esempio n. 17
0
 public FormFilter2(Form parentForm, ScriptObject parent, ScriptObject[] scriptObjects)
 {
     this.Owner = parentForm;
     //this.Owner.ParentForm = parenForm;
     this.Owner.Cursor = Cursors.WaitCursor;
     InitializeComponent();
     this.BackColor    = Slyce.Common.Colors.BackgroundColor;
     ucHeading1.Text   = "";
     this.Text         = "Add New Filter";
     IsAddingNewFilter = true;
     _parent           = parent;
     _scriptObjects    = scriptObjects;
     Controller.ShadeMainForm();
     ResizeControls();
     InitContentItems();
     Populate();
     this.Owner.Cursor = Cursors.Default;
 }
Esempio n. 18
0
        public FormRelationship(Type type, ScriptObject parent, ScriptObject[] scriptObjects)
        {
            InitializeComponent();
            Controller.ShadeMainForm();
            this.BackColor  = Slyce.Common.Colors.BackgroundColor;
            ucHeading1.Text = "";

            _parent        = parent;
            _scriptObjects = scriptObjects;

            if (type == typeof(OneToOneRelationship))
            {
                checkBoxIsBase.Visible      = true;
                radioButtonOneToOne.Checked = true;
                tabStripRelationship.Pages.RemoveAt(1);
            }

            if (type == typeof(OneToManyRelationship))
            {
                radioButtonOneToMany.Checked = true;
                tabStripRelationship.Pages.RemoveAt(1);
            }

            if (type == typeof(ManyToOneRelationship))
            {
                radioButtonManyToOne.Checked = true;
                tabStripRelationship.Pages.RemoveAt(1);
            }

            if (type == typeof(ManyToManyRelationship))
            {
                radioButtonManyToMany.Checked = true;

                tabStripRelationship.Pages.RemoveAt(0);
                tabStripRelationship.Pages.RemoveAt(1);
            }
        }