示例#1
0
        static void Main(string[] args)
        {
            if (args != null && args.Length > 0)
            {
                string xoml = Path.GetTempPath() + "\\" + args[0];
                if (File.Exists(xoml))
                {
                    try
                    {
                        FLDesignerCore.FLDesigner designer = new FLDesignerCore.FLDesigner();
                        designer.BorderStyle = BorderStyle.FixedSingle;
                        designer.Size = new System.Drawing.Size(800, 600);
                        designer.LoadWorkflow(xoml);
                        designer.WorkflowView.SaveWorkflowImage(xoml + ".bmp", ImageFormat.Bmp);
                    }
                    catch{ }

                }
                return;
            }

            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Application.Run(new MainForm());
        }
示例#2
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.menuStrip1 = new System.Windows.Forms.MenuStrip();
     this.menuFile = new System.Windows.Forms.ToolStripMenuItem();
     this.menuNew = new System.Windows.Forms.ToolStripMenuItem();
     this.menuOpen = new System.Windows.Forms.ToolStripMenuItem();
     this.menuSave = new System.Windows.Forms.ToolStripMenuItem();
     this.menuSaveAs = new System.Windows.Forms.ToolStripMenuItem();
     this.toolStripMenuItem1 = new System.Windows.Forms.ToolStripSeparator();
     this.menuExit = new System.Windows.Forms.ToolStripMenuItem();
     this.toolsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.eFWebClientPathToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.menuHelp = new System.Windows.Forms.ToolStripMenuItem();
     this.aboutToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.statusStrip1 = new System.Windows.Forms.StatusStrip();
     this.toolStrip1 = new System.Windows.Forms.ToolStrip();
     this.btnNewSequntial = new System.Windows.Forms.ToolStripButton();
     this.btnOpen = new System.Windows.Forms.ToolStripButton();
     this.btnSave = new System.Windows.Forms.ToolStripButton();
     this.splitContainer1 = new System.Windows.Forms.SplitContainer();
     this.flDesigner1 = new FLDesignerCore.FLDesigner();
     this.splitContainer2 = new System.Windows.Forms.SplitContainer();
     this.propertyGrid1 = new System.Windows.Forms.PropertyGrid();
     this.panel1 = new System.Windows.Forms.Panel();
     this.label2 = new System.Windows.Forms.Label();
     this.txtModule = new System.Windows.Forms.RichTextBox();
     this.txtType = new System.Windows.Forms.RichTextBox();
     this.label1 = new System.Windows.Forms.Label();
     this.saveFileDialog1 = new System.Windows.Forms.SaveFileDialog();
     this.openFileDialog1 = new System.Windows.Forms.OpenFileDialog();
     this.menuStrip1.SuspendLayout();
     this.toolStrip1.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).BeginInit();
     this.splitContainer1.Panel1.SuspendLayout();
     this.splitContainer1.Panel2.SuspendLayout();
     this.splitContainer1.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.splitContainer2)).BeginInit();
     this.splitContainer2.Panel2.SuspendLayout();
     this.splitContainer2.SuspendLayout();
     this.panel1.SuspendLayout();
     this.SuspendLayout();
     //
     // menuStrip1
     //
     this.menuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
     this.menuFile,
     this.toolsToolStripMenuItem,
     this.menuHelp});
     this.menuStrip1.Location = new System.Drawing.Point(0, 0);
     this.menuStrip1.Name = "menuStrip1";
     this.menuStrip1.RenderMode = System.Windows.Forms.ToolStripRenderMode.Professional;
     this.menuStrip1.Size = new System.Drawing.Size(789, 25);
     this.menuStrip1.TabIndex = 0;
     this.menuStrip1.Text = "menuStrip1";
     //
     // menuFile
     //
     this.menuFile.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
     this.menuNew,
     this.menuOpen,
     this.menuSave,
     this.menuSaveAs,
     this.toolStripMenuItem1,
     this.menuExit});
     this.menuFile.Name = "menuFile";
     this.menuFile.Size = new System.Drawing.Size(39, 21);
     this.menuFile.Text = "File";
     this.menuFile.Click += new System.EventHandler(this.menuFile_Click);
     //
     // menuNew
     //
     this.menuNew.Name = "menuNew";
     this.menuNew.Size = new System.Drawing.Size(216, 22);
     this.menuNew.Text = "New Workflow";
     this.menuNew.Click += new System.EventHandler(this.menuNew_Click);
     //
     // menuOpen
     //
     this.menuOpen.Name = "menuOpen";
     this.menuOpen.Size = new System.Drawing.Size(216, 22);
     this.menuOpen.Text = "Open Existing Workflow";
     this.menuOpen.Click += new System.EventHandler(this.menuOpen_Click);
     //
     // menuSave
     //
     this.menuSave.Name = "menuSave";
     this.menuSave.Size = new System.Drawing.Size(216, 22);
     this.menuSave.Text = "Save Workflow";
     this.menuSave.Click += new System.EventHandler(this.menuSave_Click);
     this.menuSave.Paint += new System.Windows.Forms.PaintEventHandler(this.menuSave_Paint);
     //
     // menuSaveAs
     //
     this.menuSaveAs.Name = "menuSaveAs";
     this.menuSaveAs.Size = new System.Drawing.Size(216, 22);
     this.menuSaveAs.Text = "Save Workflow As";
     this.menuSaveAs.Click += new System.EventHandler(this.menuSaveAs_Click);
     this.menuSaveAs.Paint += new System.Windows.Forms.PaintEventHandler(this.menuSaveAs_Paint);
     //
     // toolStripMenuItem1
     //
     this.toolStripMenuItem1.Name = "toolStripMenuItem1";
     this.toolStripMenuItem1.Size = new System.Drawing.Size(213, 6);
     //
     // menuExit
     //
     this.menuExit.Name = "menuExit";
     this.menuExit.Size = new System.Drawing.Size(216, 22);
     this.menuExit.Text = "Exit";
     this.menuExit.Click += new System.EventHandler(this.menuExit_Click);
     //
     // toolsToolStripMenuItem
     //
     this.toolsToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
     this.eFWebClientPathToolStripMenuItem});
     this.toolsToolStripMenuItem.Name = "toolsToolStripMenuItem";
     this.toolsToolStripMenuItem.Size = new System.Drawing.Size(52, 21);
     this.toolsToolStripMenuItem.Text = "Tools";
     //
     // eFWebClientPathToolStripMenuItem
     //
     this.eFWebClientPathToolStripMenuItem.Name = "eFWebClientPathToolStripMenuItem";
     this.eFWebClientPathToolStripMenuItem.Size = new System.Drawing.Size(177, 22);
     this.eFWebClientPathToolStripMenuItem.Text = "EFWebClient Path";
     this.eFWebClientPathToolStripMenuItem.Click += new System.EventHandler(this.eFWebClientPathToolStripMenuItem_Click);
     //
     // menuHelp
     //
     this.menuHelp.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
     this.aboutToolStripMenuItem});
     this.menuHelp.Name = "menuHelp";
     this.menuHelp.Size = new System.Drawing.Size(47, 21);
     this.menuHelp.Text = "Help";
     //
     // aboutToolStripMenuItem
     //
     this.aboutToolStripMenuItem.Name = "aboutToolStripMenuItem";
     this.aboutToolStripMenuItem.Size = new System.Drawing.Size(111, 22);
     this.aboutToolStripMenuItem.Text = "About";
     this.aboutToolStripMenuItem.Click += new System.EventHandler(this.aboutToolStripMenuItem_Click);
     //
     // statusStrip1
     //
     this.statusStrip1.Location = new System.Drawing.Point(0, 608);
     this.statusStrip1.Name = "statusStrip1";
     this.statusStrip1.Size = new System.Drawing.Size(789, 22);
     this.statusStrip1.TabIndex = 2;
     this.statusStrip1.Text = "statusStrip1";
     //
     // toolStrip1
     //
     this.toolStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
     this.btnNewSequntial,
     this.btnOpen,
     this.btnSave});
     this.toolStrip1.Location = new System.Drawing.Point(0, 25);
     this.toolStrip1.Name = "toolStrip1";
     this.toolStrip1.RenderMode = System.Windows.Forms.ToolStripRenderMode.Professional;
     this.toolStrip1.Size = new System.Drawing.Size(789, 25);
     this.toolStrip1.TabIndex = 1;
     this.toolStrip1.Text = "toolStrip1";
     //
     // btnNewSequntial
     //
     this.btnNewSequntial.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
     this.btnNewSequntial.Image = global::FLDesigner.Properties.Resources._01;
     this.btnNewSequntial.ImageTransparentColor = System.Drawing.Color.Magenta;
     this.btnNewSequntial.Name = "btnNewSequntial";
     this.btnNewSequntial.Size = new System.Drawing.Size(23, 22);
     this.btnNewSequntial.Text = "New ";
     this.btnNewSequntial.ToolTipText = "New Sequential Workflow";
     this.btnNewSequntial.Click += new System.EventHandler(this.btnNewSequntial_Click);
     //
     // btnOpen
     //
     this.btnOpen.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
     this.btnOpen.Image = global::FLDesigner.Properties.Resources._03;
     this.btnOpen.ImageTransparentColor = System.Drawing.Color.Magenta;
     this.btnOpen.Name = "btnOpen";
     this.btnOpen.Size = new System.Drawing.Size(23, 22);
     this.btnOpen.Text = "Open Existing Item";
     this.btnOpen.ToolTipText = "Open ";
     this.btnOpen.Click += new System.EventHandler(this.btnOpen_Click);
     //
     // btnSave
     //
     this.btnSave.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
     this.btnSave.Image = global::FLDesigner.Properties.Resources._04;
     this.btnSave.ImageTransparentColor = System.Drawing.Color.Magenta;
     this.btnSave.Name = "btnSave";
     this.btnSave.Size = new System.Drawing.Size(23, 22);
     this.btnSave.Text = "Save";
     this.btnSave.Click += new System.EventHandler(this.btnSave_Click);
     //
     // splitContainer1
     //
     this.splitContainer1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                 | System.Windows.Forms.AnchorStyles.Left)
                 | System.Windows.Forms.AnchorStyles.Right)));
     this.splitContainer1.Location = new System.Drawing.Point(0, 97);
     this.splitContainer1.Name = "splitContainer1";
     //
     // splitContainer1.Panel1
     //
     this.splitContainer1.Panel1.Controls.Add(this.flDesigner1);
     //
     // splitContainer1.Panel2
     //
     this.splitContainer1.Panel2.Controls.Add(this.splitContainer2);
     this.splitContainer1.Size = new System.Drawing.Size(789, 508);
     this.splitContainer1.SplitterDistance = 593;
     this.splitContainer1.TabIndex = 9;
     this.splitContainer1.TabStop = false;
     //
     // flDesigner1
     //
     this.flDesigner1._ContextMenu = null;
     this.flDesigner1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
     this.flDesigner1.Dock = System.Windows.Forms.DockStyle.Fill;
     this.flDesigner1.Location = new System.Drawing.Point(0, 0);
     this.flDesigner1.Name = "flDesigner1";
     this.flDesigner1.Size = new System.Drawing.Size(593, 508);
     this.flDesigner1.TabIndex = 0;
     this.flDesigner1.ActivitySelected += new FLDesignerCore.FLDesigner.ActivitySelectedEventHandler(this.flDesinger1_ActivitySelected);
     this.flDesigner1.ActivityDeleted += new FLDesignerCore.FLDesigner.ActivityDeletedEventHandler(this.flDesigner1_ActivityDeleted);
     this.flDesigner1._KeyDown += new FLDesignerCore.FLDesigner._KeyDownEventHandler(this.flDesigner1__KeyDown);
     this.flDesigner1._KeyPress += new FLDesignerCore.FLDesigner._KeyPressEventHandler(this.flDesigner1__KeyPress);
     //
     // splitContainer2
     //
     this.splitContainer2.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
     this.splitContainer2.Dock = System.Windows.Forms.DockStyle.Fill;
     this.splitContainer2.Location = new System.Drawing.Point(0, 0);
     this.splitContainer2.Name = "splitContainer2";
     this.splitContainer2.Orientation = System.Windows.Forms.Orientation.Horizontal;
     //
     // splitContainer2.Panel1
     //
     this.splitContainer2.Panel1.AutoScroll = true;
     this.splitContainer2.Panel1.BackColor = System.Drawing.SystemColors.Control;
     //
     // splitContainer2.Panel2
     //
     this.splitContainer2.Panel2.Controls.Add(this.propertyGrid1);
     this.splitContainer2.Size = new System.Drawing.Size(192, 508);
     this.splitContainer2.SplitterDistance = 212;
     this.splitContainer2.TabIndex = 0;
     this.splitContainer2.TabStop = false;
     //
     // propertyGrid1
     //
     this.propertyGrid1.CommandsVisibleIfAvailable = false;
     this.propertyGrid1.Dock = System.Windows.Forms.DockStyle.Fill;
     this.propertyGrid1.Location = new System.Drawing.Point(0, 0);
     this.propertyGrid1.Name = "propertyGrid1";
     this.propertyGrid1.Size = new System.Drawing.Size(190, 290);
     this.propertyGrid1.TabIndex = 0;
     //
     // panel1
     //
     this.panel1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
     this.panel1.Controls.Add(this.label2);
     this.panel1.Controls.Add(this.txtModule);
     this.panel1.Controls.Add(this.txtType);
     this.panel1.Controls.Add(this.label1);
     this.panel1.Dock = System.Windows.Forms.DockStyle.Top;
     this.panel1.Location = new System.Drawing.Point(0, 50);
     this.panel1.Name = "panel1";
     this.panel1.Size = new System.Drawing.Size(789, 48);
     this.panel1.TabIndex = 10;
     //
     // label2
     //
     this.label2.AutoSize = true;
     this.label2.Location = new System.Drawing.Point(3, 26);
     this.label2.Name = "label2";
     this.label2.Size = new System.Drawing.Size(47, 12);
     this.label2.TabIndex = 4;
     this.label2.Text = "Module:";
     //
     // txtModule
     //
     this.txtModule.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                 | System.Windows.Forms.AnchorStyles.Right)));
     this.txtModule.BackColor = System.Drawing.SystemColors.Control;
     this.txtModule.BorderStyle = System.Windows.Forms.BorderStyle.None;
     this.txtModule.DetectUrls = false;
     this.txtModule.Location = new System.Drawing.Point(55, 24);
     this.txtModule.Name = "txtModule";
     this.txtModule.ReadOnly = true;
     this.txtModule.ScrollBars = System.Windows.Forms.RichTextBoxScrollBars.None;
     this.txtModule.Size = new System.Drawing.Size(718, 18);
     this.txtModule.TabIndex = 3;
     this.txtModule.TabStop = false;
     this.txtModule.Text = "Null";
     this.txtModule.WordWrap = false;
     //
     // txtType
     //
     this.txtType.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                 | System.Windows.Forms.AnchorStyles.Right)));
     this.txtType.BackColor = System.Drawing.SystemColors.Control;
     this.txtType.BorderStyle = System.Windows.Forms.BorderStyle.None;
     this.txtType.DetectUrls = false;
     this.txtType.Location = new System.Drawing.Point(55, 5);
     this.txtType.Name = "txtType";
     this.txtType.ReadOnly = true;
     this.txtType.ScrollBars = System.Windows.Forms.RichTextBoxScrollBars.None;
     this.txtType.Size = new System.Drawing.Size(718, 18);
     this.txtType.TabIndex = 3;
     this.txtType.TabStop = false;
     this.txtType.Text = "Null";
     this.txtType.WordWrap = false;
     //
     // label1
     //
     this.label1.AutoSize = true;
     this.label1.Location = new System.Drawing.Point(3, 5);
     this.label1.Name = "label1";
     this.label1.Size = new System.Drawing.Size(35, 12);
     this.label1.TabIndex = 0;
     this.label1.Text = "Type:";
     //
     // saveFileDialog1
     //
     this.saveFileDialog1.Filter = "Xoml File|*.xoml";
     //
     // openFileDialog1
     //
     this.openFileDialog1.FileName = "openFileDialog1";
     this.openFileDialog1.Filter = "Xoml File|*.xoml";
     //
     // MainForm
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
     this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
     this.ClientSize = new System.Drawing.Size(789, 630);
     this.Controls.Add(this.panel1);
     this.Controls.Add(this.splitContainer1);
     this.Controls.Add(this.toolStrip1);
     this.Controls.Add(this.statusStrip1);
     this.Controls.Add(this.menuStrip1);
     this.MainMenuStrip = this.menuStrip1;
     this.Name = "MainForm";
     this.Text = "Workflow Designer";
     this.FormClosed += new System.Windows.Forms.FormClosedEventHandler(this.MainForm_FormClosed);
     this.Load += new System.EventHandler(this.MainForm_Load);
     this.menuStrip1.ResumeLayout(false);
     this.menuStrip1.PerformLayout();
     this.toolStrip1.ResumeLayout(false);
     this.toolStrip1.PerformLayout();
     this.splitContainer1.Panel1.ResumeLayout(false);
     this.splitContainer1.Panel2.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).EndInit();
     this.splitContainer1.ResumeLayout(false);
     this.splitContainer2.Panel2.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.splitContainer2)).EndInit();
     this.splitContainer2.ResumeLayout(false);
     this.panel1.ResumeLayout(false);
     this.panel1.PerformLayout();
     this.ResumeLayout(false);
     this.PerformLayout();
 }