public WorkflowEditorWindow(EIBFormDesigner.Designer.FormDesigner designer)
 {
     form = designer;
     InitializeComponent();
     this.formulaText.Enabled = false;
     initContextMenu();
     formulaText.KeyPress += new KeyPressEventHandler(this.formulaText_Click);
     formulaText.ContextMenu = contextMenu;
 }
Exemple #2
0
 public UIEventManager(EIBFormDesigner.Designer.FormDesigner designer)
 {
     form = designer;
     propertiesManager = getPropertiesManagerInstance();
     if (toolBox == null)
     {
         toolBox = new ToolBox(form);
     }
     initContextMenu();
     form.propertyWindow.controlList.SelectedIndexChanged += new System.EventHandler(this.controlList_SelectedIndexChanged);
 }
 public FormulaEditorWindow(EIBFormDesigner.Designer.FormDesigner designer)
 {
     form = designer;
     InitializeComponent();
     this.formulaText.Enabled = false;
     initContextMenu();
     formulaText.KeyPress += new KeyPressEventHandler(this.formulaText_Click);
     formulaText.ContextMenu = contextMenu;
     //TreeView treeControl = (TreeView)sender;
     //selectedNode = treeControl.SelectedNode;
 }
Exemple #4
0
 public void InitiateSettings(EIBFormDesigner.Designer.FormDesigner form)
 {
     this.Name = EIBControlCollection.CheckControlForUniqueness<EIBTime>(this.Name);
     if (string.IsNullOrEmpty(this.ControlName))
     {
         this.ControlName = this.Name;
     }
     EIBControlCollection.Timelist.Add(this.Name, this.Name);
     this.currentForm = form;
     counter = 0;
     //ShowTimeSplit();
 }
Exemple #5
0
 public void InitiateSettings(EIBFormDesigner.Designer.FormDesigner form)
 {
     this.Name = EIBControlCollection.CheckControlForUniqueness<EIBPicture>(this.Name);
     if (string.IsNullOrEmpty(this.ControlName))
     {
         this.ControlName = this.Name;
     }
     if (string.IsNullOrEmpty(this.UniqueId))
     {
         this.UniqueId = this.Name;
     }
     if (this.Text == null)
     {
         this.Text = this.Name;
     }
     EIBControlCollection.Picturelist.Add(this.Name, this.Name);
     counter = 0;
 }
Exemple #6
0
 public void InitiateSettings(EIBFormDesigner.Designer.FormDesigner form)
 {
     baseFrame = form.currentBaseWindow.baseFrame;
     bmpBack = new Bitmap(baseFrame.Width, baseFrame.Height);
     Graphics.FromImage(bmpBack).Clear(baseFrame.BackColor);
     this.BackgroundImage = (Bitmap)bmpBack.Clone();
     counter++;
     createLine();
 }
        /// <summary>
        /// Initializes the DragDropHandler
        /// </summary>
        public static void Initialize(IUIEventManager eManager, EIBFormDesigner.Designer.FormDesigner designer)
        {
            eventManager = eManager;
            form = designer;
            if (m_Initialized)
                return;

            int idx = 0;

            // Collection of DataFormats from the app.config file
            NameValueCollection nvc =
                (NameValueCollection)ConfigurationSettings.GetConfig(m_DFSection);

            if (nvc == null)
                throw new Exception("Invalid section requested during Initialization.");

            // Store the collection in our internal collection
            for (idx = 0; idx < nvc.Count; idx++)
            {
                // Get the custom string for our new DataFormat
                // and generate a new DataFormat for it
                DataFormats.Format frmt = DataFormats.GetFormat(nvc[idx]);

                // Store the new DataFormat by object type
                m_htDataFormats.Add(nvc.GetKey(idx), frmt);
            }

            // Collection of DataFormatParents from the app.config file
            nvc = (NameValueCollection)ConfigurationSettings.GetConfig(m_DFPSection);

            // Store the collection in our internal collection
            for (idx = 0; idx < nvc.Count; idx++)
            {
                // Store the DataFormatParent mappins by parent object type
                // The value is a string[] of DataFormats that can be DragDropped
                // on the parent
                m_htDFParents.Add(nvc.GetKey(idx),
                    ((string)nvc[idx]).Split(new Char[] { ',' }));
            }

            m_Initialized = true;
        }
Exemple #8
0
 public void InitiateSettings(EIBFormDesigner.Designer.FormDesigner form)
 {
     if (form != null)
     {
         EIBTreeNode treeNode = new EIBTreeNode();
         treeNode.InitiateSettings(null);
         //treeNode.ControlName = "treeNode0";
         //treeNode.Text = "treeNode0";
         this.Nodes.Add(treeNode);
     }
     this.Name = EIBControlCollection.CheckControlForUniqueness<EIBTreeView>(this.Name);
     if (string.IsNullOrEmpty(this.ControlName))
     {
         this.ControlName = this.Name;
     }
     if (string.IsNullOrEmpty(this.UniqueId))
     {
         this.UniqueId = this.Name;
     }
     if (this.Text == null)
     {
         this.Text = this.Name;
     }
     EIBControlCollection.TreeViewlist.Add(this.Name, this.Name);
     counter = 0;
     //counter++;
 }
Exemple #9
0
 public void InitiateSettings(EIBFormDesigner.Designer.FormDesigner form)
 {
     this.Size = new Size(width, height);
     this.Name = "search" + counter;
     checkUniqueness(this.Name);
     searchNames.Add(this.Name, this.Name);
     if (string.IsNullOrEmpty(this.ControlName))
     {
         this.ControlName = this.Name;
     }
     this.Margin = new Padding(0, 0, 0, 0);
     this.Text = "search" + counter.ToString();
     this.Font = SystemFonts.DefaultFont;
     counter++;
 }
Exemple #10
0
        public void InitiateSettings(EIBFormDesigner.Designer.FormDesigner form)
        {
            this.Name = EIBControlCollection.CheckControlForUniqueness<EIBMenuItem>(this.Name);

            this.ControlName = this.Name;
            if (string.IsNullOrEmpty(this.UniqueId))
            {
                this.UniqueId = this.Name;
            }
            if (this.Text == null)
            {
                this.Text = this.Name;
            }
            EIBControlCollection.MenuItemlist.Add(this.Name, this.Name);
            //counter++;
        }
Exemple #11
0
 public void InitiateSettings(EIBFormDesigner.Designer.FormDesigner form)
 {
     this.Size = new Size(width, height);
     this.Name = "node" + counter;
     if (string.IsNullOrEmpty(this.controlName))
     {
         this.ControlName = this.Name;
     }
     this.Text = "node" + counter;
     this.nodeIdText.Text = this.WorkFlowNode.WorkFlowNodeId;
     this.nodeIdText.Enabled = false;
     counter++;
 }
Exemple #12
0
        public void InitiateSettings(EIBFormDesigner.Designer.FormDesigner form)
        {
            this.Text = "row" + counter;
            if (string.IsNullOrEmpty(this.Name))
            {
                this.Name = "row" + counter;
            }
            if (string.IsNullOrEmpty(this.ControlName))
            {
                this.ControlName = this.Name;
            }

            counter++;
            this.Margin = new Padding(0, 0, 0, 0);
            this.Size = new Size(width, height);
        }
Exemple #13
0
 public void InitiateSettings(EIBFormDesigner.Designer.FormDesigner form)
 {
     this.Name = "relationship" + counter;
     if (string.IsNullOrEmpty(this.ControlName))
     {
         this.controlName = this.Name;
     }
     counter++;
 }
Exemple #14
0
 public void InitiateSettings(EIBFormDesigner.Designer.FormDesigner form)
 {
     designerForm = form;
     /*
     this.CellBorderStyle = TableLayoutPanelCellBorderStyle.Inset;
      */
     this.BackColor = Color.White;
     this.Size = new Size(width, height);
     if (string.IsNullOrEmpty(this.Name))
     {
         this.Name = "lattice" + counter;
     }
     if (string.IsNullOrEmpty(this.ControlName))
     {
         this.ControlName = this.Name;
     }
     this.Margin = new Padding(0, 0, 0, 0);
     this.Text = "lattice" + counter.ToString();
     this.Font = SystemFonts.DefaultFont;
     counter++;
 }
Exemple #15
0
        public void InitiateSettings(EIBFormDesigner.Designer.FormDesigner form)
        {
            this.Name = EIBControlCollection.CheckControlForUniqueness<EIBMenuItem>(this.Name);

            this.ControlName = this.Name;
            EIBControlCollection.MenuItemlist.Add(this.Name, this.Name);
            //counter++;
        }
Exemple #16
0
 public void InitiateSettings(EIBFormDesigner.Designer.FormDesigner form)
 {
     this.Name = "placeholder" + counter;
     this.Name = EIBControlCollection.CheckControlForUniqueness<EIBPlaceHolder>(this.Name);
     if (this.ControlName == null)
     {
         this.ControlName = this.Name;
     }
     EIBControlCollection.PlaceHolderlist.Add(this.Name, this.Name);
     if (string.IsNullOrEmpty(this.Name))
     {
         this.Name = "placeholder" + counter;
     }
     if (string.IsNullOrEmpty(this.ControlName))
     {
         this.ControlName = this.Name;
     }
     if (string.IsNullOrEmpty(this.UniqueId))
     {
         this.UniqueId = this.Name;
     }
     this.Font = new Font(this.Font.FontFamily, 8f);
     this.AccessibleName = "placeholder" + counter;
     this.Margin = new Padding(0, 0, 0, 0);
     this.AllowDrop = true;
     counter = 0;
 }
Exemple #17
0
 public ToolBox(EIBFormDesigner.Designer.FormDesigner formDesigner)
 {
     eibFormDesigner = formDesigner;
     initTools();
 }
Exemple #18
0
 public void InitiateSettings(EIBFormDesigner.Designer.FormDesigner form)
 {
     this.Name = EIBControlCollection.CheckControlForUniqueness<EIBTabPage>(this.Name);
     if (string.IsNullOrEmpty(this.ControlName))
     {
         this.ControlName = this.Name;
     }
     EIBControlCollection.TabPagelist.Add(this.Name, this.Name);
 }
Exemple #19
0
 public void InitiateSettings(EIBFormDesigner.Designer.FormDesigner form)
 {
     this.Name = EIBControlCollection.CheckControlForUniqueness<EIBTextBox>(this.Name);
     if (this.ControlName == null)
     {
         this.ControlName = this.Name;
     }
     EIBControlCollection.TextBoxlist.Add(this.Name, this.Name);
     counter = 0;
 }
Exemple #20
0
 //public void checkUniqueness(string buttonName)
 //{
 //    if (buttonNames.Contains(buttonName))
 //    {
 //        counter++;
 //        this.Name = "button" + counter;
 //        checkUniqueness(this.Name);
 //    }
 //}
 public void InitiateSettings(EIBFormDesigner.Designer.FormDesigner form)
 {
     this.Size = new Size(width, height);
     //this.Name = "button" + counter;
     this.FlatStyle = FlatStyle.Popup;
     this.Margin = new Padding(0, 0, 0, 0);
     this.Font = SystemFonts.DefaultFont;
     this.Dock = DockStyle.Left;
     counter++;
 }
Exemple #21
0
 public void InitiateSettings(EIBFormDesigner.Designer.FormDesigner form)
 {
     this.Name = EIBControlCollection.CheckControlForUniqueness<EIBSchedular>(this.Name);
     if (string.IsNullOrEmpty(this.ControlName))
     {
         this.ControlName = this.Name;
     }
     EIBControlCollection.Schedularlist.Add(this.Name, this.Name);
     counter = 0;
 }
Exemple #22
0
        public void InitiateSettings(EIBFormDesigner.Designer.FormDesigner form)
        {
            EIBTabPage tabPage1 = new EIBTabPage();
            tabPage1.InitiateSettings(null);
            EIBTabPage tabPage2 = new EIBTabPage();
            tabPage2.InitiateSettings(null);
            tabPage1.Text = tabPage1.Name;
            tabPage2.Text = tabPage2.Name;
            this.Controls.Add(tabPage1);
            this.Controls.Add(tabPage2);
            this.Size = new Size(width, height);
            this.Name = EIBControlCollection.CheckControlForUniqueness<EIBTabControl>(this.Name);
            if (string.IsNullOrEmpty(this.ControlName))
            {
                this.ControlName = this.Name;
            }
            if (string.IsNullOrEmpty(this.UniqueId))
            {
                this.UniqueId = this.Name;
            }
            if (this.Text == null)
            {
                this.Text = this.Name;
            }
            EIBControlCollection.TabControllist.Add(this.Name, this.Name);

            //EIBTabPage tabPage1 = new EIBTabPage();
            //EIBTabPage tabPage2 = new EIBTabPage();
            //tabPage1.InitiateSettings(null);
            //tabPage2.InitiateSettings(null);
            //tabPage1.Text = "tabPage1";
            //tabPage2.Text = "tabPage2";
            //this.Controls.Add(tabPage1);
            //this.Controls.Add(tabPage2);
            //this.Size = new Size(width, height);
            //this.Name = "tabControl" + counter;
            //this.ControlName = this.Name;
            //this.Margin = new Padding(0, 0, 0, 0);
            //this.Text = "tabControl" + counter.ToString();
            //counter++;
        }