/// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(ScriptingAutopilotForm));
     this.richTextBox1 = new System.Windows.Forms.RichTextBox();
     this.SuspendLayout();
     //
     // richTextBox1
     //
     this.richTextBox1.Dock = System.Windows.Forms.DockStyle.Fill;
     this.richTextBox1.Location = new System.Drawing.Point(0, 0);
     this.richTextBox1.Name = "richTextBox1";
     this.richTextBox1.Size = new System.Drawing.Size(292, 382);
     this.richTextBox1.TabIndex = 0;
     this.richTextBox1.Text = "";
     //
     // ScriptingAutopilotForm
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
     this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
     this.ClientSize = new System.Drawing.Size(292, 382);
     this.Controls.Add(this.richTextBox1);
     this.DockAreas = ((WeifenLuo.WinFormsUI.Docking.DockAreas)(((((WeifenLuo.WinFormsUI.Docking.DockAreas.Float | WeifenLuo.WinFormsUI.Docking.DockAreas.DockLeft)
                 | WeifenLuo.WinFormsUI.Docking.DockAreas.DockRight)
                 | WeifenLuo.WinFormsUI.Docking.DockAreas.DockTop)
                 | WeifenLuo.WinFormsUI.Docking.DockAreas.DockBottom)));
     this.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
     this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
     this.Name = "ScriptingAutopilotForm";
     this.ShowHint = WeifenLuo.WinFormsUI.Docking.DockState.DockBottom;
     this.Text = "ScriptingAutopilot";
     this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.ScriptingAutopilotForm_FormClosing_1);
     this.ResumeLayout(false);
 }
예제 #2
0
 public UDPMulticastListener(int port, string address, System.Windows.Forms.RichTextBox rich, SerialPort vport)
 {
     this.port = port;
     this.address = address;
     this.rich = rich;
     this.vport = vport;
 }
    static void Main()
    {
        // If your RTF file isn't in the same folder as the .exe file for the project,
        // specify the path to the file in the following assignment statement.
        string path = @"test.rtf";

        //Create the RichTextBox. (Requires a reference to System.Windows.Forms.)
        System.Windows.Forms.RichTextBox rtBox = new System.Windows.Forms.RichTextBox();

        // Get the contents of the RTF file. When the contents of the file are
        // stored in the string (rtfText), the contents are encoded as UTF-16.
        string rtfText = System.IO.File.ReadAllText(path);

        // Display the RTF text. This should look like the contents of your file.
        System.Windows.Forms.MessageBox.Show(rtfText);

        // Use the RichTextBox to convert the RTF code to plain text.
        rtBox.Rtf = rtfText;
        string plainText = rtBox.Text;

        // Display the plain text in a MessageBox because the console can't
        // display the Greek letters. You should see the following result:
        //   The Greek word for "psyche" is spelled ψυχή. The Greek letters are
        //   encoded in Unicode.
        //   These characters are from the extended ASCII character set (Windows
        //   code page 1252): âäӑå
        System.Windows.Forms.MessageBox.Show(plainText);

        // Output the plain text to a file, encoded as UTF-8.
        System.IO.File.WriteAllText(@"output.txt", plainText);
    }
예제 #4
0
        public override string ToText(Subtitle subtitle, string title)
        {
            var sb = new StringBuilder();
            sb.AppendLine(title);
            sb.AppendLine(@"1ab

23/03/2012
03/05/2012
**:**:**.**
01:00:00.00
**:**:**.**
**:**:**.**
01:01:01.12
01:02:30.00
01:02:54.01
**:**:**.**
**:**:**.**
01:19:33.08
");

            int count = 1;
            foreach (Paragraph p in subtitle.Paragraphs)
            {
                sb.AppendLine(string.Format("{0}:  {1}  {2}\r\n{3}", count.ToString(CultureInfo.InvariantCulture).PadLeft(9, ' '), MakeTimeCode(p.StartTime), MakeTimeCode(p.EndTime), p.Text));
                count++;
            }

            var rtBox = new System.Windows.Forms.RichTextBox { Text = sb.ToString().Trim() };
            return rtBox.Rtf;
        }
예제 #5
0
        public override void LoadSubtitle(Subtitle subtitle, List<string> lines, string fileName)
        {
            _errorCount = 0;
            var sb = new StringBuilder();
            foreach (string line in lines)
                sb.AppendLine(line);

            string rtf = sb.ToString().Trim();
            if (!rtf.StartsWith("{\\rtf"))
                return;

            var rtBox = new System.Windows.Forms.RichTextBox();
            try
            {
                rtBox.Rtf = rtf;
            }
            catch (Exception exception)
            {
                System.Diagnostics.Debug.WriteLine(exception.Message);
                return;
            }
            string text = rtBox.Text;
            rtBox.Dispose();
            LoadF4TextSubtitle(subtitle, text);
        }
예제 #6
0
        /// <summary>
        /// This method is required for Windows Forms designer support.
        /// Do not change the method contents inside the source code editor. The Forms designer might
        /// not be able to load this method if it was changed manually.
        /// </summary>
        private void InitializeComponent()
        {
            this.richTextBox1 = new System.Windows.Forms.RichTextBox();
            this.SuspendLayout();
            //
            // richTextBox1
            //
            this.richTextBox1.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.richTextBox1.BackColor = System.Drawing.Color.White;
            this.richTextBox1.BorderStyle = System.Windows.Forms.BorderStyle.None;
            this.richTextBox1.Cursor = System.Windows.Forms.Cursors.Arrow;
            this.richTextBox1.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.richTextBox1.Location = new System.Drawing.Point(13, 13);
            this.richTextBox1.Name = "richTextBox1";
            this.richTextBox1.ReadOnly = true;
            this.richTextBox1.Size = new System.Drawing.Size(490, 273);
            this.richTextBox1.TabIndex = 0;
            this.richTextBox1.Text = "";
            //
            // HelpForm
            //
            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
            this.ClientSize = new System.Drawing.Size(515, 298);
            this.Controls.Add(this.richTextBox1);
            this.Name = "HelpForm";
            this.Text = "HelpForm";
            this.Load += new System.EventHandler(this.OnLoad);
            this.ResumeLayout(false);

        }
예제 #7
0
        public override string ToText(Subtitle subtitle, string title)
        {
            var sb = new StringBuilder();
            sb.AppendLine("#\tAppearance\tCaption\t");
            sb.AppendLine();
            int count = 1;
            for (int i = 0; i < subtitle.Paragraphs.Count; i++)
            {
                Paragraph p = subtitle.Paragraphs[i];
                string text = Utilities.RemoveHtmlTags(p.Text);
                sb.AppendLine(string.Format("{0}\t{1}\t{2}\t", count.ToString().PadLeft(5, ' '), MakeTimeCode(p.StartTime), text));
                sb.AppendLine("\t\t\t\t");
                Paragraph next = subtitle.GetParagraphOrDefault(i + 1);
                if (next == null || Math.Abs(p.EndTime.TotalMilliseconds - next.StartTime.TotalMilliseconds) > 50)
                {
                    count++;
                    sb.AppendLine(string.Format("{0}\t{1}", count.ToString().PadLeft(5, ' '), MakeTimeCode(p.EndTime)));
                }
                count++;
            }

            var rtBox = new System.Windows.Forms.RichTextBox();
            rtBox.Text = sb.ToString();
            string rtf = rtBox.Rtf;
            rtBox.Dispose();
            return rtf;
        }
예제 #8
0
        public override void LoadSubtitle(Subtitle subtitle, List<string> lines, string fileName)
        {
            _errorCount = 0;
            var sb = new StringBuilder();
            foreach (string line in lines)
                sb.AppendLine(line);

            string rtf = sb.ToString().Trim();
            if (!rtf.StartsWith("{\\rtf"))
                return;

            string[] arr = null;
            var rtBox = new System.Windows.Forms.RichTextBox();
            try
            {
                rtBox.Rtf = rtf;
                arr = rtBox.Text.Replace("\r", string.Empty).Split('\n');
            }
            catch (Exception exception)
            {
                System.Diagnostics.Debug.WriteLine(exception.Message);
                return;
            }
            finally
            {
                rtBox.Dispose();
            }

            lines = new List<string>();
            foreach (string s in arr)
                lines.Add(s);
            base.LoadSubtitle(subtitle, lines, fileName);
        }
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.RTB = new System.Windows.Forms.RichTextBox();
     this.SuspendLayout();
     //
     // RTB
     //
     this.RTB.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.RTB.Location = new System.Drawing.Point(0, 1);
     this.RTB.Name = "RTB";
     this.RTB.Size = new System.Drawing.Size(784, 475);
     this.RTB.TabIndex = 0;
     this.RTB.Text = "";
     this.RTB.LinkClicked += new System.Windows.Forms.LinkClickedEventHandler(this.RTB_LinkClicked);
     this.RTB.MouseClick += new System.Windows.Forms.MouseEventHandler(this.RTB_MouseClick);
     this.RTB.KeyDown += new System.Windows.Forms.KeyEventHandler(this.RTB_KeyDown);
     this.RTB.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.RTB_KeyPress);
     this.RTB.MouseMove += new System.Windows.Forms.MouseEventHandler(this.RTB_MouseMove);
     //
     // HelpForm
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
     this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
     this.ClientSize = new System.Drawing.Size(784, 474);
     this.Controls.Add(this.RTB);
     this.Name = "HelpForm";
     this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
     this.Text = "DH ShapeMaker Help";
     this.Load += new System.EventHandler(this.HelpForm_Load);
     this.ResumeLayout(false);
 }
예제 #10
0
 public static string ConvertStringToRtf(string str)
 {
     System.Windows.Forms.RichTextBox richTextBox = new System.Windows.Forms.RichTextBox();
     richTextBox.Text = str;
     richTextBox.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
     return richTextBox.Rtf;
 }
 private void ConvertRtfTextInSTAThread(object rtf)
 {
     var threadData = rtf as ConvertRtfThreadData;
     System.Windows.Forms.RichTextBox rtBox = new System.Windows.Forms.RichTextBox();
     rtBox.Rtf = threadData.RtfText;
     threadData.HtmlText = rtBox.Text;
 }
 /// <summary> 
 /// Required method for Designer support - do not modify 
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.richTextBoxConsole = new System.Windows.Forms.RichTextBox();
     this.SuspendLayout();
     //
     // richTextBoxConsole
     //
     this.richTextBoxConsole.AcceptsTab = true;
     this.richTextBoxConsole.BackColor = System.Drawing.Color.Black;
     this.richTextBoxConsole.Dock = System.Windows.Forms.DockStyle.Fill;
     this.richTextBoxConsole.Font = new System.Drawing.Font("Consolas", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.richTextBoxConsole.ForeColor = System.Drawing.Color.White;
     this.richTextBoxConsole.Location = new System.Drawing.Point(0, 0);
     this.richTextBoxConsole.Name = "richTextBoxConsole";
     this.richTextBoxConsole.ReadOnly = true;
     this.richTextBoxConsole.Size = new System.Drawing.Size(150, 150);
     this.richTextBoxConsole.TabIndex = 0;
     this.richTextBoxConsole.Text = "";
     this.richTextBoxConsole.TextChanged += new System.EventHandler(this.richTextBoxConsole_TextChanged);
     //
     // ConsoleControl
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
     this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
     this.Controls.Add(this.richTextBoxConsole);
     this.Name = "ConsoleControl";
     this.ResumeLayout(false);
 }
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.rb = new System.Windows.Forms.RichTextBox();
     this.SuspendLayout();
     //
     // rb
     //
     this.rb.Dock = System.Windows.Forms.DockStyle.Fill;
     this.rb.Location = new System.Drawing.Point(0, 0);
     this.rb.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
     this.rb.Name = "rb";
     this.rb.ReadOnly = true;
     this.rb.Size = new System.Drawing.Size(663, 406);
     this.rb.TabIndex = 0;
     this.rb.Text = "";
     this.rb.LinkClicked += new System.Windows.Forms.LinkClickedEventHandler(this.rb_LinkClicked);
     //
     // helpForm
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F);
     this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
     this.ClientSize = new System.Drawing.Size(663, 406);
     this.Controls.Add(this.rb);
     this.Font = new System.Drawing.Font("Microsoft Sans Serif", 10F);
     this.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
     this.Name = "helpForm";
     this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
     this.Text = "Справка";
     this.ResumeLayout(false);
 }
예제 #14
0
        /// <summary> 
        /// Required method for Designer support - do not modify 
        /// the contents of this method with the code editor.
        /// </summary>
        private void InitializeComponent()
        {
            this.listBoxMessages = new System.Windows.Forms.RichTextBox();
            this.SuspendLayout();
            // 
            // listBoxMessages
            // 
            this.listBoxMessages.BackColor = System.Drawing.SystemColors.Info;
            this.listBoxMessages.Dock = System.Windows.Forms.DockStyle.Fill;
            this.listBoxMessages.Font = new System.Drawing.Font("Arial", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.listBoxMessages.Location = new System.Drawing.Point(0, 0);
            this.listBoxMessages.Name = "listBoxMessages";
            this.listBoxMessages.ReadOnly = true;
            this.listBoxMessages.Size = new System.Drawing.Size(723, 377);
            this.listBoxMessages.TabIndex = 0;
            this.listBoxMessages.Tag = "";
            this.listBoxMessages.Text = "";
            // 
            // LoggerView
            // 
            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
            this.Controls.Add(this.listBoxMessages);
            this.BackColor = System.Drawing.SystemColors.Info;
            this.Name = "LoggerView";
            this.Size = new System.Drawing.Size(723, 377);
            this.ResumeLayout(false);

        }
예제 #15
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Abount));
     this.richTextBox1 = new System.Windows.Forms.RichTextBox();
     this.SuspendLayout();
     //
     // richTextBox1
     //
     this.richTextBox1.Dock = System.Windows.Forms.DockStyle.Fill;
     this.richTextBox1.Location = new System.Drawing.Point(0, 0);
     this.richTextBox1.Name = "richTextBox1";
     this.richTextBox1.Size = new System.Drawing.Size(441, 153);
     this.richTextBox1.TabIndex = 0;
     this.richTextBox1.Text = resources.GetString("richTextBox1.Text");
     //
     // Abount
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
     this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
     this.ClientSize = new System.Drawing.Size(441, 153);
     this.Controls.Add(this.richTextBox1);
     this.Name = "Abount";
     this.Text = "Abount";
     this.ResumeLayout(false);
 }
예제 #16
0
 public override string ToText(Subtitle subtitle, string title)
 {
     var u52 = new UnknownSubtitle52();
     using (var rtBox = new System.Windows.Forms.RichTextBox { Text = u52.ToText(subtitle, title) })
     {
         return rtBox.Rtf;
     }
 }
예제 #17
0
 public override string ToText(Subtitle subtitle, string title)
 {
     System.Windows.Forms.RichTextBox rtBox = new System.Windows.Forms.RichTextBox();
     rtBox.Text = base.ToText(subtitle, title);
     string rtf = rtBox.Rtf;
     rtBox.Dispose();
     return rtf;
 }
예제 #18
0
 /// <summary>
 /// 此為設計工具支援所需的方法 - 請勿使用程式碼編輯器
 /// 修改這個方法的內容。
 /// </summary>
 private void InitializeComponent()
 {
     this.components = new System.ComponentModel.Container();
     this.messageTextBox = new System.Windows.Forms.RichTextBox();
     this.startButtom = new System.Windows.Forms.Button();
     this.timer = new System.Windows.Forms.Timer(this.components);
     this.snoopyImage = new System.Windows.Forms.PictureBox();
     ((System.ComponentModel.ISupportInitialize)(this.snoopyImage)).BeginInit();
     this.SuspendLayout();
     //
     // messageTextBox
     //
     this.messageTextBox.Font = new System.Drawing.Font("微軟正黑體", 14F);
     this.messageTextBox.Location = new System.Drawing.Point(142, 420);
     this.messageTextBox.Name = "messageTextBox";
     this.messageTextBox.Size = new System.Drawing.Size(558, 38);
     this.messageTextBox.TabIndex = 0;
     this.messageTextBox.Text = "";
     //
     // startButtom
     //
     this.startButtom.Font = new System.Drawing.Font("微軟正黑體", 14F);
     this.startButtom.Location = new System.Drawing.Point(22, 420);
     this.startButtom.Name = "startButtom";
     this.startButtom.Size = new System.Drawing.Size(104, 38);
     this.startButtom.TabIndex = 2;
     this.startButtom.Text = "GO!";
     this.startButtom.UseVisualStyleBackColor = true;
     this.startButtom.Click += new System.EventHandler(this.startButtom_Click);
     //
     // timer
     //
     this.timer.Interval = 50;
     this.timer.Tick += new System.EventHandler(this.timer_Tick);
     //
     // snoopyImage
     //
     this.snoopyImage.Location = new System.Drawing.Point(331, 152);
     this.snoopyImage.Name = "snoopyImage";
     this.snoopyImage.Size = new System.Drawing.Size(73, 70);
     this.snoopyImage.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom;
     this.snoopyImage.TabIndex = 5;
     this.snoopyImage.TabStop = false;
     //
     // Form1
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
     this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
     this.ClientSize = new System.Drawing.Size(790, 487);
     this.Controls.Add(this.snoopyImage);
     this.Controls.Add(this.startButtom);
     this.Controls.Add(this.messageTextBox);
     this.Name = "Form1";
     this.Text = "Form1";
     this.Load += new System.EventHandler(this.Form1_Load);
     ((System.ComponentModel.ISupportInitialize)(this.snoopyImage)).EndInit();
     this.ResumeLayout(false);
 }
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FrmChat));
     this.splitter1 = new System.Windows.Forms.Splitter();
     this.rtbSendMessage = new System.Windows.Forms.RichTextBox();
     this.rtbConversation = new System.Windows.Forms.RichTextBox();
     this.SuspendLayout();
     //
     // splitter1
     //
     this.splitter1.Dock = System.Windows.Forms.DockStyle.Bottom;
     this.splitter1.Location = new System.Drawing.Point(0, 197);
     this.splitter1.Name = "splitter1";
     this.splitter1.Size = new System.Drawing.Size(341, 39);
     this.splitter1.TabIndex = 3;
     this.splitter1.TabStop = false;
     //
     // rtbSendMessage
     //
     this.rtbSendMessage.Location = new System.Drawing.Point(0, 197);
     this.rtbSendMessage.Multiline = false;
     this.rtbSendMessage.Name = "rtbSendMessage";
     this.rtbSendMessage.Size = new System.Drawing.Size(340, 38);
     this.rtbSendMessage.TabIndex = 6;
     this.rtbSendMessage.Text = "";
     this.rtbSendMessage.KeyDown += new System.Windows.Forms.KeyEventHandler(this.rtbSendMessage_KeyDown);
     //
     // rtbConversation
     //
     this.rtbConversation.BackColor = System.Drawing.SystemColors.ControlLightLight;
     this.rtbConversation.Dock = System.Windows.Forms.DockStyle.Fill;
     this.rtbConversation.Location = new System.Drawing.Point(0, 0);
     this.rtbConversation.Name = "rtbConversation";
     this.rtbConversation.ReadOnly = true;
     this.rtbConversation.Size = new System.Drawing.Size(341, 197);
     this.rtbConversation.TabIndex = 7;
     this.rtbConversation.Text = "";
     //
     // FrmChat
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F);
     this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
     this.ClientSize = new System.Drawing.Size(341, 236);
     this.Controls.Add(this.rtbConversation);
     this.Controls.Add(this.rtbSendMessage);
     this.Controls.Add(this.splitter1);
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
     this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
     this.MaximizeBox = false;
     this.Name = "FrmChat";
     this.Text = "Chat";
     this.Activated += new System.EventHandler(this.FrmChat_Activated);
     this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.FrmChat_FormClosing);
     this.Load += new System.EventHandler(this.FrmChat_Load);
     this.ResumeLayout(false);
 }
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.components = new System.ComponentModel.Container();
     this.button1 = new System.Windows.Forms.Button();
     this.button2 = new System.Windows.Forms.Button();
     this.robotPort = new System.IO.Ports.SerialPort(this.components);
     this.richTextBox1 = new System.Windows.Forms.RichTextBox();
     this.SuspendLayout();
     //
     // button1
     //
     this.button1.Location = new System.Drawing.Point(12, 12);
     this.button1.Name = "button1";
     this.button1.Size = new System.Drawing.Size(75, 23);
     this.button1.TabIndex = 0;
     this.button1.Text = "Test";
     this.button1.UseVisualStyleBackColor = true;
     this.button1.Click += new System.EventHandler(this.button1_Click);
     //
     // button2
     //
     this.button2.Location = new System.Drawing.Point(93, 12);
     this.button2.Name = "button2";
     this.button2.Size = new System.Drawing.Size(97, 23);
     this.button2.TabIndex = 1;
     this.button2.Text = "Walk in square";
     this.button2.UseVisualStyleBackColor = true;
     this.button2.Visible = false;
     this.button2.Click += new System.EventHandler(this.button2_Click);
     //
     // robotPort
     //
     this.robotPort.DataReceived += new System.IO.Ports.SerialDataReceivedEventHandler(this.robotPort_DataReceived);
     //
     // richTextBox1
     //
     this.richTextBox1.Location = new System.Drawing.Point(12, 40);
     this.richTextBox1.Name = "richTextBox1";
     this.richTextBox1.Size = new System.Drawing.Size(314, 96);
     this.richTextBox1.TabIndex = 2;
     this.richTextBox1.Text = "";
     //
     // Form1
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
     this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
     this.ClientSize = new System.Drawing.Size(338, 148);
     this.Controls.Add(this.richTextBox1);
     this.Controls.Add(this.button2);
     this.Controls.Add(this.button1);
     this.Name = "Form1";
     this.Text = "PDACmd";
     this.Load += new System.EventHandler(this.Form1_Load);
     this.ResumeLayout(false);
 }
예제 #21
0
 /// <summary> 
 /// Required method for Designer support - do not modify 
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.richTextBox1 = new System.Windows.Forms.RichTextBox();
     this.signup = new System.Windows.Forms.Button();
     this.SuspendLayout();
     //
     // Banner
     //
     this.Banner.Subtitle = "Limited functionnalities when no account is configured.";
     this.Banner.Title = "No account";
     //
     // richTextBox1
     //
     this.richTextBox1.BackColor = System.Drawing.SystemColors.Control;
     this.richTextBox1.BorderStyle = System.Windows.Forms.BorderStyle.None;
     this.richTextBox1.Location = new System.Drawing.Point(47, 72);
     this.richTextBox1.Name = "richTextBox1";
     this.richTextBox1.ReadOnly = true;
     this.richTextBox1.Size = new System.Drawing.Size(347, 118);
     this.richTextBox1.TabIndex = 1;
     this.richTextBox1.TabStop = false;
     this.richTextBox1.Text = "You can request a free evaluation account by visiting our website at teambox.co";
     this.richTextBox1.LinkClicked += new System.Windows.Forms.LinkClickedEventHandler(this.richTextBox1_LinkClicked);
     //
     // signup
     //
     this.signup.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.signup.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.signup.Location = new System.Drawing.Point(334, 194);
     this.signup.Name = "signup";
     this.signup.Size = new System.Drawing.Size(95, 23);
     this.signup.TabIndex = 2;
     this.signup.Text = "Signup";
     this.signup.UseVisualStyleBackColor = true;
     this.signup.Visible = false;
     this.signup.Click += new System.EventHandler(this.signup_Click);
     //
     // ConfigKPPCreateAccount
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
     this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
     this.Controls.Add(this.richTextBox1);
     this.Controls.Add(this.signup);
     this.Name = "ConfigKPPCreateAccount";
     this.Size = new System.Drawing.Size(432, 220);
     this.WizardBack += new Wizard.UI.WizardPageEventHandler(this.ConfigKPPCreateAccount_WizardBack);
     this.WizardFinish += new System.ComponentModel.CancelEventHandler(this.ConfigKPPCreateAccount_WizardFinish);
     this.WizardNext += new Wizard.UI.WizardPageEventHandler(this.ConfigKPPCreateAccount_WizardNext);
     this.SetActive += new System.ComponentModel.CancelEventHandler(this.ConfigKPPCreateAccount_SetActive);
     this.Controls.SetChildIndex(this.signup, 0);
     this.Controls.SetChildIndex(this.richTextBox1, 0);
     this.Controls.SetChildIndex(this.Banner, 0);
     this.ResumeLayout(false);
 }
예제 #22
0
		/// <summary>
		/// Required method for Designer support - do not modify
		/// the contents of this method with the code editor.
		/// </summary>
		void InitializeComponent() {
			treeView1 = new System.Windows.Forms.TreeView();
			richTextBox1 = new System.Windows.Forms.RichTextBox();
			tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel();
			tableLayoutPanel1.SuspendLayout();
			SuspendLayout();
			// 
			// treeView1
			// 
			treeView1.Dock = System.Windows.Forms.DockStyle.Fill;
			treeView1.Location = new System.Drawing.Point(13, 13);
			treeView1.Name = "treeView1";
			treeView1.Size = new System.Drawing.Size(114, 391);
			treeView1.TabIndex = 0;
			// 
			// richTextBox1
			// 
			richTextBox1.Dock = System.Windows.Forms.DockStyle.Fill;
			richTextBox1.Location = new System.Drawing.Point(133, 13);
			richTextBox1.Name = "richTextBox1";
			richTextBox1.ReadOnly = true;
			richTextBox1.ShortcutsEnabled = false;
			richTextBox1.Size = new System.Drawing.Size(432, 391);
			richTextBox1.TabIndex = 1;
			richTextBox1.Text = "";
			// 
			// tableLayoutPanel1
			// 
			tableLayoutPanel1.ColumnCount = 2;
			tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 120F));
			tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F));
			tableLayoutPanel1.Controls.Add(treeView1);
			tableLayoutPanel1.Controls.Add(richTextBox1, 1, 0);
			tableLayoutPanel1.Dock = System.Windows.Forms.DockStyle.Fill;
			tableLayoutPanel1.Location = new System.Drawing.Point(0, 0);
			tableLayoutPanel1.Name = "tableLayoutPanel1";
			tableLayoutPanel1.Padding = new System.Windows.Forms.Padding(10);
			tableLayoutPanel1.RowCount = 1;
			tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F));
			tableLayoutPanel1.Size = new System.Drawing.Size(578, 417);
			tableLayoutPanel1.TabIndex = 2;
			// 
			// HelpForm
			// 
			AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
			AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
			ClientSize = new System.Drawing.Size(578, 417);
			Controls.Add(tableLayoutPanel1);
			Name = "HelpForm";
			Text = "HelpForm";
			tableLayoutPanel1.ResumeLayout(false);
			ResumeLayout (false);

		}
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.richTextBox = new System.Windows.Forms.RichTextBox();
     this.closeButton = new System.Windows.Forms.Button();
     this.SuspendLayout();
     //
     // richTextBox
     //
     this.richTextBox.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.richTextBox.BackColor = System.Drawing.SystemColors.Window;
     this.richTextBox.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
     this.richTextBox.Location = new System.Drawing.Point(3, 3);
     this.richTextBox.Name = "richTextBox";
     this.richTextBox.ReadOnly = true;
     this.richTextBox.ShortcutsEnabled = false;
     this.richTextBox.Size = new System.Drawing.Size(586, 395);
     this.richTextBox.TabIndex = 1;
     this.richTextBox.Text = "";
     this.richTextBox.LinkClicked += new System.Windows.Forms.LinkClickedEventHandler(this.richTextBox_LinkClicked);
     //
     // closeButton
     //
     this.closeButton.Anchor = System.Windows.Forms.AnchorStyles.Bottom;
     this.closeButton.DialogResult = System.Windows.Forms.DialogResult.Cancel;
     this.closeButton.Location = new System.Drawing.Point(245, 407);
     this.closeButton.Name = "closeButton";
     this.closeButton.Size = new System.Drawing.Size(102, 23);
     this.closeButton.TabIndex = 2;
     this.closeButton.Text = "Close";
     this.closeButton.UseVisualStyleBackColor = true;
     //
     // AboutForm
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
     this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
     this.ClientSize = new System.Drawing.Size(592, 446);
     this.Controls.Add(this.closeButton);
     this.Controls.Add(this.richTextBox);
     this.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
     this.MaximizeBox = false;
     this.MinimizeBox = false;
     this.MinimumSize = new System.Drawing.Size(600, 480);
     this.Name = "AboutForm";
     this.Padding = new System.Windows.Forms.Padding(3);
     this.ShowIcon = false;
     this.ShowInTaskbar = false;
     this.SizeGripStyle = System.Windows.Forms.SizeGripStyle.Show;
     this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
     this.Text = "About CDR Decoder ...";
     this.ResumeLayout(false);
 }
		/// <summary>
		/// This method is required for Windows Forms designer support.
		/// Do not change the method contents inside the source code editor. The Forms designer might
		/// not be able to load this method if it was changed manually.
		/// </summary>
		private void InitializeComponent()
		{
			System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FormIsNumberValid));
			this.richTextBoxResults = new System.Windows.Forms.RichTextBox();
			this.buttonClose = new System.Windows.Forms.Button();
			this.SuspendLayout();
			// 
			// richTextBoxResults
			// 
			this.richTextBoxResults.BackColor = System.Drawing.SystemColors.Control;
			this.richTextBoxResults.BorderStyle = System.Windows.Forms.BorderStyle.None;
			this.richTextBoxResults.DetectUrls = false;
			this.richTextBoxResults.ImeMode = System.Windows.Forms.ImeMode.Off;
			this.richTextBoxResults.Location = new System.Drawing.Point(12, 12);
			this.richTextBoxResults.Name = "richTextBoxResults";
			this.richTextBoxResults.ReadOnly = true;
			this.richTextBoxResults.ScrollBars = System.Windows.Forms.RichTextBoxScrollBars.None;
			this.richTextBoxResults.Size = new System.Drawing.Size(284, 112);
			this.richTextBoxResults.TabIndex = 0;
			this.richTextBoxResults.TabStop = false;
			this.richTextBoxResults.Text = "";
			// 
			// buttonClose
			// 
			this.buttonClose.Location = new System.Drawing.Point(240, 130);
			this.buttonClose.Name = "buttonClose";
			this.buttonClose.Size = new System.Drawing.Size(56, 23);
			this.buttonClose.TabIndex = 1;
			this.buttonClose.Text = "关闭";
			this.buttonClose.UseVisualStyleBackColor = true;
			this.buttonClose.Click += new System.EventHandler(this.ButtonCloseClick);
			// 
			// FormIsNumberValid
			// 
			this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
			this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
			this.BackColor = System.Drawing.SystemColors.Control;
			this.ClientSize = new System.Drawing.Size(308, 165);
			this.Controls.Add(this.buttonClose);
			this.Controls.Add(this.richTextBoxResults);
			this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
			this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
			this.MaximizeBox = false;
			this.MaximumSize = new System.Drawing.Size(324, 204);
			this.MinimizeBox = false;
			this.Name = "FormIsNumberValid";
			this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
			this.Text = "号码有效性验证";
			this.Load += new System.EventHandler(this.FormIsNumberValidLoad);
			this.ResumeLayout(false);

		}
예제 #25
0
        public override string ToText(Subtitle subtitle, string title)
        {
            string format = "[{0}]{3}{3}{2}{3}{3}[{1}]{3}";
            var sb = new StringBuilder();
            foreach (Paragraph p in subtitle.Paragraphs)
            {
                sb.AppendLine(string.Format(format, EncodeTimeCode(p.StartTime), EncodeTimeCode(p.EndTime), p.Text, Environment.NewLine));
            }

            System.Windows.Forms.RichTextBox rtBox = new System.Windows.Forms.RichTextBox();
            rtBox.Text = sb.ToString();
            return rtBox.Rtf;
        }
예제 #26
0
        public RichTextBoxEx()
        {
            this.richTextBox1 = this;
            //this.richTextBox1.AllowDrop = true;
            //this.richTextBox1.EnableAutoDragDrop = true;
            this.richTextBox1.AcceptsTab = true;
            this.richTextBox1.HideSelection = false;
            //this.richTextBox1.ScrollBars = RichTextBoxScrollBars.Vertical;

            CanPasteBitmap = true;
            CanPasteColorText = true;
            CanZoom = true;
        }
예제 #27
0
 /// <summary>
 /// Basic Constructor
 /// </summary>
 /// <param name="defaultRules">Option to set default rules or not</param>
 public SyntaxHighlighter(bool defaultRules = true)
 {
     this._highlightRules = new HighlightRules();
     this._backupRtf = new System.Windows.Forms.RichTextBox();
     this.DefaultTextColor = Color.Black;
     this.DefaultTextBackColor = Color.White;
     this.DefaultFont = new Font("Lucida Console", 10);
     if (defaultRules)
     {
         this.SetDefaultKeywords();
         this.SetDefaultRules();
     }
 }
예제 #28
0
		/// <summary>
		/// This method is required for Windows Forms designer support.
		/// Do not change the method contents inside the source code editor. The Forms designer might
		/// not be able to load this method if it was changed manually.
		/// </summary>
		private void InitializeComponent()
		{
			this.scoresText = new System.Windows.Forms.RichTextBox();
			this.ConnectBtn = new System.Windows.Forms.Button();
			this.portNameCombo = new System.Windows.Forms.ComboBox();
			this.SuspendLayout();
			// 
			// scoresText
			// 
			this.scoresText.Location = new System.Drawing.Point(14, 22);
			this.scoresText.Name = "scoresText";
			this.scoresText.Size = new System.Drawing.Size(120, 203);
			this.scoresText.TabIndex = 0;
			this.scoresText.Text = "";
			// 
			// ConnectBtn
			// 
			this.ConnectBtn.Enabled = false;
			this.ConnectBtn.Location = new System.Drawing.Point(160, 47);
			this.ConnectBtn.Name = "ConnectBtn";
			this.ConnectBtn.Size = new System.Drawing.Size(109, 23);
			this.ConnectBtn.TabIndex = 2;
			this.ConnectBtn.Text = "Connect";
			this.ConnectBtn.UseVisualStyleBackColor = true;
			this.ConnectBtn.Click += new System.EventHandler(this.ConnectBtnClick);
			// 
			// portNameCombo
			// 
			this.portNameCombo.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
			this.portNameCombo.FormattingEnabled = true;
			this.portNameCombo.Location = new System.Drawing.Point(160, 22);
			this.portNameCombo.Name = "portNameCombo";
			this.portNameCombo.Size = new System.Drawing.Size(109, 21);
			this.portNameCombo.Sorted = true;
			this.portNameCombo.TabIndex = 3;
			this.portNameCombo.SelectionChangeCommitted += new System.EventHandler(this.PortNameComboSelectionChangeCommitted);
			// 
			// MainForm
			// 
			this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
			this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
			this.ClientSize = new System.Drawing.Size(284, 262);
			this.Controls.Add(this.portNameCombo);
			this.Controls.Add(this.ConnectBtn);
			this.Controls.Add(this.scoresText);
			this.Name = "MainForm";
			this.Text = "buttons5";
			this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.MainFormFormClosing);
			this.ResumeLayout(false);

		}
        public void convertXlsRTFtoHTML(object sender, RoutedEventArgs e)
        {
            try
            {
                Thread.CurrentThread.CurrentCulture = new CultureInfo("en-US");

                var excelApp = new Microsoft.Office.Interop.Excel.Application();
                excelApp.Workbooks.Open((myTextBox5.Text), Type.Missing, Type.Missing,
                                                       Type.Missing, Type.Missing,
                                                       Type.Missing, Type.Missing,
                                                       Type.Missing, Type.Missing,
                                                       Type.Missing, Type.Missing,
                                                       Type.Missing, Type.Missing,
                                                       Type.Missing, Type.Missing);
                var ws = excelApp.Worksheets;
                var worksheet = (Worksheet)ws.get_Item("Sheet1");
                System.Windows.Forms.RichTextBox rtBox = new System.Windows.Forms.RichTextBox();
                object[,] values = new object[(Int32.Parse(upperRow5.Text) - Int32.Parse(lowerRow5.Text) + 1), (Int32.Parse(upperColumn5.Text) - Int32.Parse(lowerColumn5.Text) + 1)];//(object[,])range.Value2;

                for (int row = Int32.Parse(lowerRow5.Text); row <= Int32.Parse(upperRow5.Text); row++)
                {
                    for (int column = Int32.Parse(lowerColumn5.Text); column <= Int32.Parse(upperColumn5.Text); column++)
                    {
                        string cellName = convertCell(row, column);
                        string cellVal = Convert.ToString(worksheet.Range[cellName].Value);
                        try
                        {
                            // Convert RTF to HTML
                            cellVal = markupConverter.ConvertRtfToHtml(cellVal);
                        }
                        catch (Exception ex2) { }

                        // Avoid Excel Formula Error
                        cellVal = "'" + cellVal;

                        worksheet.Range[cellName].Value = cellVal.Substring(0, cellVal.Length);
                    }
                }

                excelApp.ActiveWorkbook.SaveCopyAs(myTextBox6.Text);

                excelApp.ActiveWorkbook.Close(true);
                excelApp.Quit();
               }
            catch (Exception ex)
            {
                MessageBox.Show("Error while converting: " + ex.ToString());
            }

            MessageBox.Show("Excel Conversion Complete!");
        }
예제 #30
0
		/// <summary>
		/// Required method for Designer support - do not modify
		/// the contents of this method with the code editor.
		/// </summary>
		private void InitializeComponent()
		{
			System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(WinForm_About));
			this.button_OK = new System.Windows.Forms.Button();
			this.richTextBox_About = new System.Windows.Forms.RichTextBox();
			this.SuspendLayout();
			// 
			// button_OK
			// 
			this.button_OK.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
			this.button_OK.Location = new System.Drawing.Point(547, 233);
			this.button_OK.Name = "button_OK";
			this.button_OK.Size = new System.Drawing.Size(87, 24);
			this.button_OK.TabIndex = 1;
			this.button_OK.Text = "OK";
			this.button_OK.Click += new System.EventHandler(this.button_OK_Click);
			// 
			// richTextBox_About
			// 
			this.richTextBox_About.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.richTextBox_About.BackColor = System.Drawing.Color.White;
			this.richTextBox_About.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
			this.richTextBox_About.ForeColor = System.Drawing.Color.Black;
			this.richTextBox_About.Location = new System.Drawing.Point(10, 9);
			this.richTextBox_About.Name = "richTextBox_About";
			this.richTextBox_About.ReadOnly = true;
			this.richTextBox_About.Size = new System.Drawing.Size(624, 215);
			this.richTextBox_About.TabIndex = 8;
			this.richTextBox_About.Text = "";
			this.richTextBox_About.MouseDown += new System.Windows.Forms.MouseEventHandler(this.richTextBox_About_MouseDown);
			this.richTextBox_About.TextChanged += new System.EventHandler(this.richTextBox_About_TextChanged);
			this.richTextBox_About.LinkClicked += new System.Windows.Forms.LinkClickedEventHandler(this.richTextBox_About_LinkClicked);
			// 
			// WinForm_About
			// 
			this.AutoScaleBaseSize = new System.Drawing.Size(5, 14);
			this.BackColor = System.Drawing.SystemColors.Control;
			this.ClientSize = new System.Drawing.Size(645, 267);
			this.Controls.Add(this.richTextBox_About);
			this.Controls.Add(this.button_OK);
			this.Font = new System.Drawing.Font("Tahoma", 8.25F);
			this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow;
			this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
			this.Name = "WinForm_About";
			this.ShowInTaskbar = false;
			this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
			this.Text = "ArtCSB Info";
			this.ResumeLayout(false);
		}
예제 #31
0
        public override void LoadSubtitle(Subtitle subtitle, List <string> lines, string fileName)
        {
            subtitle.Paragraphs.Clear();
            subtitle.Header = null;
            byte[] buffer = File.ReadAllBytes(fileName);

            int       i    = 128;
            Paragraph last = null;

            while (i < buffer.Length - 20)
            {
                if (buffer[i] == 0x0b)
                {
                    string timeCode = Encoding.ASCII.GetString(buffer, i + 1, 11);
                    if (timeCode != "00:00:00:00" && regexTimeCodes.IsMatch(timeCode))
                    {
                        Paragraph p = new Paragraph();
                        p.StartTime = DecodeTimeCode(timeCode.Split(':'));
                        bool italic     = buffer[i + 22] == 3; // 3=italic, 1=normal
                        int  textStart  = i + 25;              // text starts 25 chars after time code
                        int  textLength = 0;
                        while (textStart + textLength < buffer.Length && buffer[textStart + textLength] != 0)
                        {
                            textLength++;
                        }
                        if (textLength > 0)
                        {
                            p.Text = Encoding.GetEncoding(1252).GetString(buffer, textStart, textLength);
                            int rtIndex = p.Text.IndexOf("{\\rtf1");
                            if (rtIndex >= 0 && rtIndex < 10)
                            {
                                var rtBox = new System.Windows.Forms.RichTextBox();
                                try
                                {
                                    rtBox.Rtf = p.Text.Substring(rtIndex);
                                    p.Text    = rtBox.Text;
                                }
                                catch (Exception exception)
                                {
                                    System.Diagnostics.Debug.WriteLine(exception.Message);
                                }
                            }
                            else if (italic)
                            {
                                p.Text = "<i>" + p.Text + "</i>";
                            }
                        }
                        else
                        {
                            p.Text = string.Empty;
                        }
                        last = p;
                        subtitle.Paragraphs.Add(p);
                    }
                }
                i++;
            }
            if (last != null)
            {
                last.EndTime.TotalMilliseconds = last.StartTime.TotalMilliseconds + Utilities.GetOptimalDisplayMilliseconds(last.Text);
            }

            for (i = 0; i < subtitle.Paragraphs.Count - 1; i++)
            {
                subtitle.Paragraphs[i].EndTime.TotalMilliseconds = subtitle.Paragraphs[i + 1].StartTime.TotalMilliseconds;
            }
            for (i = subtitle.Paragraphs.Count - 1; i >= 0; i--)
            {
                if (string.IsNullOrEmpty(subtitle.Paragraphs[i].Text))
                {
                    subtitle.Paragraphs.RemoveAt(i);
                }
            }

            var deletes = new List <int>();

            for (i = 0; i < subtitle.Paragraphs.Count - 1; i++)
            {
                if (subtitle.Paragraphs[i].StartTime.TotalMilliseconds == subtitle.Paragraphs[i + 1].StartTime.TotalMilliseconds)
                {
                    subtitle.Paragraphs[i].Text   += Environment.NewLine + subtitle.Paragraphs[i + 1].Text;
                    subtitle.Paragraphs[i].EndTime = subtitle.Paragraphs[i + 1].EndTime;
                    deletes.Add(i + 1);
                }
            }
            deletes.Reverse();
            foreach (int index in deletes)
            {
                subtitle.Paragraphs.RemoveAt(index);
            }

            for (i = 0; i < subtitle.Paragraphs.Count - 1; i++)
            {
                if (subtitle.Paragraphs[i].StartTime.TotalMilliseconds == subtitle.Paragraphs[i + 1].StartTime.TotalMilliseconds)
                {
                }
                else if (subtitle.Paragraphs[i].EndTime.TotalMilliseconds == subtitle.Paragraphs[i + 1].StartTime.TotalMilliseconds)
                {
                    subtitle.Paragraphs[i].EndTime.TotalMilliseconds = subtitle.Paragraphs[i + 1].StartTime.TotalMilliseconds - 1;
                }
            }
            subtitle.Renumber(1);

            // adjust all times
            if (buffer.Length > 1364)
            {
                try
                {
                    string   adjust = Encoding.GetEncoding(1252).GetString(buffer, 1354, 11); // 00:59:59:28
                    TimeCode tc     = DecodeTimeCode(adjust.Split(':'));
                    if (tc.TotalMilliseconds > 0)
                    {
                        subtitle.AddTimeToAllParagraphs(TimeSpan.FromMilliseconds(-tc.TotalMilliseconds));
                    }
                }
                catch
                {
                }
            }
        }
예제 #32
0
        private static string addDocumentToCouch(String docName, out string msg, out bool added, System.Windows.Forms.RichTextBox textBox)
        {
            added = false;
            msg   = string.Empty;

            DocumentType = PawnObjects.Doc.Document.DocTypeNames.PDF;
            string fileName     = docName;
            int    lastSlashIdx = fileName.LastIndexOf('\\');
            string fName        = fileName.Substring(lastSlashIdx + 1);
            var    sErrCode     = string.Empty;
            var    sErrText     = string.Empty;

            byte[]   fileBytes   = File.ReadAllBytes(fileName);
            Document couchDocObj = (PawnObjects.Doc.Document) new Document_Couch(fileName, fName, DocumentType);

            couchDocObj.SetPropertyData("jak prop1", "value");
            string storageID = System.Guid.NewGuid().ToString();

            GldocName = storageID;
            // Console.WriteLine("Added doc name :" + GldocName);
            SecuredCouchConnector CouchConnectorObj = null;

            //StorageID = "1234";
            if (couchDocObj.SetSourceData(fileBytes, storageID, false))
            {
                var dStorage = new DocStorage_CouchDB();

                CouchConnectorObj = new SecuredCouchConnector(hostname, portName, secWebPort, dbName, userid, pass, isSec);
                dStorage.SecuredAddDocument(CouchConnectorObj, ref couchDocObj, out sErrCode, out sErrText);
                if (sErrCode == "0")
                {
                    added = true;
                    msg   = "Added" + fileName;
                    textBox.AppendText("Document ID:" + GldocName);
                    textBox.AppendText("\n");
                }
                else
                {
                    added = false;
                    msg   = sErrText;
                }
            }
            return(storageID);
        }
예제 #33
0
 /// <summary>
 /// This method is required for Windows Forms designer support.
 /// Do not change the method contents inside the source code editor. The Forms designer might
 /// not be able to load this method if it was changed manually.
 /// </summary>
 private void InitializeComponent()
 {
     this.textBox1     = new System.Windows.Forms.TextBox();
     this.textBox2     = new System.Windows.Forms.TextBox();
     this.textBox3     = new System.Windows.Forms.TextBox();
     this.richTextBox1 = new System.Windows.Forms.RichTextBox();
     this.label1       = new System.Windows.Forms.Label();
     this.label2       = new System.Windows.Forms.Label();
     this.label3       = new System.Windows.Forms.Label();
     this.label4       = new System.Windows.Forms.Label();
     this.SuspendLayout();
     //
     // textBox1
     //
     this.textBox1.Location = new System.Drawing.Point(143, 53);
     this.textBox1.Name     = "textBox1";
     this.textBox1.Size     = new System.Drawing.Size(273, 20);
     this.textBox1.TabIndex = 0;
     //
     // textBox2
     //
     this.textBox2.Location = new System.Drawing.Point(143, 94);
     this.textBox2.Name     = "textBox2";
     this.textBox2.Size     = new System.Drawing.Size(273, 20);
     this.textBox2.TabIndex = 1;
     //
     // textBox3
     //
     this.textBox3.Location = new System.Drawing.Point(143, 129);
     this.textBox3.Name     = "textBox3";
     this.textBox3.Size     = new System.Drawing.Size(273, 20);
     this.textBox3.TabIndex = 2;
     //
     // richTextBox1
     //
     this.richTextBox1.Location = new System.Drawing.Point(60, 217);
     this.richTextBox1.Name     = "richTextBox1";
     this.richTextBox1.Size     = new System.Drawing.Size(506, 176);
     this.richTextBox1.TabIndex = 4;
     this.richTextBox1.Text     = "";
     //
     // label1
     //
     this.label1.Location = new System.Drawing.Point(60, 50);
     this.label1.Name     = "label1";
     this.label1.Size     = new System.Drawing.Size(77, 23);
     this.label1.TabIndex = 5;
     this.label1.Text     = "First Name";
     //
     // label2
     //
     this.label2.Location = new System.Drawing.Point(60, 94);
     this.label2.Name     = "label2";
     this.label2.Size     = new System.Drawing.Size(77, 23);
     this.label2.TabIndex = 6;
     this.label2.Text     = "Last Name";
     //
     // label3
     //
     this.label3.Location = new System.Drawing.Point(60, 129);
     this.label3.Name     = "label3";
     this.label3.Size     = new System.Drawing.Size(77, 28);
     this.label3.TabIndex = 7;
     this.label3.Text     = "MIddle Name";
     //
     // label4
     //
     this.label4.Location = new System.Drawing.Point(60, 186);
     this.label4.Name     = "label4";
     this.label4.Size     = new System.Drawing.Size(77, 28);
     this.label4.TabIndex = 8;
     this.label4.Text     = "PLATFORM";
     //
     // pnlSetCand
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
     this.AutoScaleMode       = System.Windows.Forms.AutoScaleMode.Font;
     this.Controls.Add(this.label4);
     this.Controls.Add(this.label3);
     this.Controls.Add(this.label2);
     this.Controls.Add(this.label1);
     this.Controls.Add(this.richTextBox1);
     this.Controls.Add(this.textBox3);
     this.Controls.Add(this.textBox2);
     this.Controls.Add(this.textBox1);
     this.Name = "pnlSetCand";
     this.Size = new System.Drawing.Size(790, 486);
     this.ResumeLayout(false);
     this.PerformLayout();
 }
 /// <summary>
 /// This method is required for Windows Forms designer support.
 /// Do not change the method contents inside the source code editor. The Forms designer might
 /// not be able to load this method if it was changed manually.
 /// </summary>
 private void InitializeComponent()
 {
     this.panel1       = new System.Windows.Forms.Panel();
     this.richTextBox2 = new System.Windows.Forms.RichTextBox();
     this.button1      = new System.Windows.Forms.Button();
     this.txt          = new System.Windows.Forms.RichTextBox();
     this.panel1.SuspendLayout();
     this.SuspendLayout();
     //
     // panel1
     //
     this.panel1.Controls.Add(this.richTextBox2);
     this.panel1.Controls.Add(this.button1);
     this.panel1.Controls.Add(this.txt);
     this.panel1.Location = new System.Drawing.Point(13, 13);
     this.panel1.Name     = "panel1";
     this.panel1.Size     = new System.Drawing.Size(557, 315);
     this.panel1.TabIndex = 0;
     //
     // richTextBox2
     //
     this.richTextBox2.BorderStyle  = System.Windows.Forms.BorderStyle.None;
     this.richTextBox2.Location     = new System.Drawing.Point(3, 286);
     this.richTextBox2.Name         = "richTextBox2";
     this.richTextBox2.ReadOnly     = true;
     this.richTextBox2.Size         = new System.Drawing.Size(392, 24);
     this.richTextBox2.TabIndex     = 2;
     this.richTextBox2.TabStop      = false;
     this.richTextBox2.Text         = "(c) https://github.com/ajaxvs";
     this.richTextBox2.LinkClicked += new System.Windows.Forms.LinkClickedEventHandler(this.onLinkClick);
     this.richTextBox2.TextChanged += new System.EventHandler(this.RichTextBox2TextChanged);
     //
     // button1
     //
     this.button1.DialogResult            = System.Windows.Forms.DialogResult.OK;
     this.button1.Font                    = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
     this.button1.Location                = new System.Drawing.Point(413, 239);
     this.button1.Name                    = "button1";
     this.button1.Size                    = new System.Drawing.Size(128, 64);
     this.button1.TabIndex                = 0;
     this.button1.Text                    = "OK";
     this.button1.UseVisualStyleBackColor = true;
     this.button1.Click                  += new System.EventHandler(this.Button1Click);
     //
     // txt
     //
     this.txt.Location = new System.Drawing.Point(15, 15);
     this.txt.Name     = "txt";
     this.txt.ReadOnly = true;
     this.txt.Size     = new System.Drawing.Size(526, 210);
     this.txt.TabIndex = 0;
     this.txt.TabStop  = false;
     this.txt.Text     = "\nIf you like this app - feel free to say \"Thanks\" with:\n\n# Webmoney:\nZ35423677653" +
                         "1\nR600482511370\n\n# BTC:\n1KQC1BTfZ2KNa4fN8s8sB7jMahACdymoQX\n";
     this.txt.LinkClicked += new System.Windows.Forms.LinkClickedEventHandler(this.onLinkClick);
     //
     // frmSayThanks
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F);
     this.AutoScaleMode       = System.Windows.Forms.AutoScaleMode.Font;
     this.ClientSize          = new System.Drawing.Size(582, 335);
     this.Controls.Add(this.panel1);
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
     this.MaximizeBox     = false;
     this.MinimizeBox     = false;
     this.Name            = "frmSayThanks";
     this.ShowIcon        = false;
     this.ShowInTaskbar   = false;
     this.StartPosition   = System.Windows.Forms.FormStartPosition.CenterParent;
     this.Text            = "Say Thanks";
     this.panel1.ResumeLayout(false);
     this.ResumeLayout(false);
 }
예제 #35
0
        /// <summary>
        /// Рассщитать мощности компонент спектра и записать их в RichTextBox и в файл fileName
        /// </summary>
        /// <param name="fileName">Имя файла</param>
        /// <param name="richtext">Имя RichTextBox</param>
        /// <param name="x"></param>
        /// <param name="zaglav">Заглавие</param>
        public void Spectr_Out_Text(string fileName, System.Windows.Forms.RichTextBox richtext, bool x, string zaglav)
        {
            StreamWriter sw         = new StreamWriter(fileName, x);
            double       ULF_border = 0.015; // Верхняя граница сверхнизкой частоты
            double       VLF_border = 0.04;  // Верхняя граница очень низкой частоты
            double       LF_border  = 0.15;  // Верхняя граница низкой частоты
            double       HF_border  = 0.4;   // Верхняя граница высокой частоты

            double P_ULF = 0;                //мощности компонент
            double P_VLF = 0;
            double P_LF  = 0;
            double P_HF  = 0;
            double P_SUM = 0;

            double P_ULF_sred = 0;// средние мощности компонент
            double P_VLF_sred = 0;
            double P_LF_sred  = 0;
            double P_HF_sred  = 0;
            double P_SUM_sred = 0;

            double P_ULF_sred_proc = 0;// средние мощности компонент в процентах
            double P_VLF_sred_proc = 0;
            double P_LF_sred_proc  = 0;
            double P_HF_sred_proc  = 0;


            double P_LF_HF = 0;
            double UHF     = 0;//Индекс централизации

            double MMMM = 1;
            int    a1 = 0, a2 = 0, a3 = 0, a4 = 0;

            for (int i = 0; i < N_line_new - 1; i++)
            {
                if ((DW * MMMM / (2 * 3.14)) < ULF_border)
                {
                    P_ULF = P_ULF + Amp_spectr_pow[i];
                    a1++;
                }
                if ((DW * MMMM / (2 * 3.14)) < VLF_border && (DW * MMMM / (2 * 3.14)) >= ULF_border)
                {
                    P_VLF = P_VLF + Amp_spectr_pow[i];
                    a2++;
                }
                if ((DW * MMMM / (2 * 3.14)) < LF_border && (DW * MMMM / (2 * 3.14)) >= VLF_border)
                {
                    P_LF = P_LF + Amp_spectr_pow[i];
                    a3++;
                }
                if ((DW * MMMM / (2 * 3.14)) < HF_border && (DW * MMMM / (2 * 3.14)) >= LF_border)
                {
                    P_HF = P_HF + Amp_spectr_pow[i];
                    a4++;
                }

                MMMM = MMMM + 1;
            }
            MMMM = 0;

            P_SUM      = P_HF + P_LF + P_VLF + P_ULF; //Суммарная мощность спектра
            P_SUM_sred = P_SUM / HF_border;
            P_ULF_sred = P_ULF / (ULF_border);        // средние мощности компонент
            P_VLF_sred = P_VLF / (VLF_border - ULF_border);
            P_LF_sred  = P_LF / (LF_border - VLF_border);
            P_HF_sred  = P_HF / (HF_border - LF_border);

            P_ULF_sred_proc = 100 * P_ULF / P_SUM;// средние мощности компонент в процентах
            P_VLF_sred_proc = 100 * P_VLF / P_SUM;
            P_LF_sred_proc  = 100 * P_LF / P_SUM;
            P_HF_sred_proc  = 100 * P_HF / P_SUM;

            P_LF_HF = P_LF_sred / P_HF_sred;    //Отношение высокочастотного и низкочастотного
            UHF     = 100 * P_ULF / P_SUM_sred; // Индекс централизации

            richtext.Text = "HF " + System.Convert.ToString(Math.Round(P_HF_sred_proc, 3)) + "%" + "\n"
                            + "LF " + System.Convert.ToString(Math.Round(P_LF_sred_proc, 3)) + "%" + "\n"
                            + "VLF " + System.Convert.ToString(Math.Round(P_VLF_sred_proc, 3)) + "%" + "\n"
                            + "UVLF " + System.Convert.ToString(Math.Round(P_ULF_sred_proc, 3)) + "%" + "\n"
                            + "HFav " + System.Convert.ToString(Math.Round(P_HF_sred, 3)) + "%" + "\n"
                            + "LFav " + System.Convert.ToString(Math.Round(P_LF_sred, 3)) + "%" + "\n"
                            + "VLFav " + System.Convert.ToString(Math.Round(P_VLF_sred, 3)) + "%" + "\n"
                            + "UVLFav " + System.Convert.ToString(Math.Round(P_ULF_sred, 3)) + "%" + "\n"
                            + "(LF/HF)av " + System.Convert.ToString(Math.Round(P_LF_HF, 3)) + "\n"
                            + "ТР " + System.Convert.ToString(Math.Round(P_SUM_sred, 3)) + "мс2" + "\n"
                            + "UHF " + System.Convert.ToString(Math.Round(UHF, 3)) + "%" + "\n";
            sw.WriteLine();
            sw.WriteLine(zaglav);
            sw.WriteLine("HF " + System.Convert.ToString(Math.Round(P_HF_sred_proc, 3)) + "%");
            sw.WriteLine("LF " + System.Convert.ToString(Math.Round(P_LF_sred_proc, 3)) + "%" + "\n");
            sw.WriteLine("VLF " + System.Convert.ToString(Math.Round(P_VLF_sred_proc, 3)) + "%" + "\n");
            sw.WriteLine("UVLF " + System.Convert.ToString(Math.Round(P_ULF_sred_proc, 3)) + "%" + "\n");

            sw.WriteLine("HFav " + System.Convert.ToString(Math.Round(P_HF_sred, 3)) + "%");
            sw.WriteLine("LFav " + System.Convert.ToString(Math.Round(P_LF_sred, 3)) + "%" + "\n");
            sw.WriteLine("VLFav " + System.Convert.ToString(Math.Round(P_VLF_sred, 3)) + "%" + "\n");
            sw.WriteLine("UVLFav " + System.Convert.ToString(Math.Round(P_ULF_sred, 3)) + "%" + "\n");

            sw.WriteLine("(LF/HF)av " + System.Convert.ToString(Math.Round(P_LF_HF, 3)) + "\n");
            sw.WriteLine("ТР " + System.Convert.ToString(Math.Round(P_SUM_sred, 3)) + "мс2" + "\n");
            sw.WriteLine("UHF " + System.Convert.ToString(Math.Round(UHF, 3)) + "%" + "\n");
            sw.WriteLine();


            sw.Close();
        }
예제 #36
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.components = new System.ComponentModel.Container();
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(AMUPostFrm));
     this.panel1             = new System.Windows.Forms.Panel();
     this.tabControl1        = new System.Windows.Forms.TabControl();
     this.tabPage1           = new System.Windows.Forms.TabPage();
     this.tabPage2           = new System.Windows.Forms.TabPage();
     this.txtXML             = new System.Windows.Forms.TextBox();
     this.panel2             = new System.Windows.Forms.Panel();
     this.tabControl2        = new System.Windows.Forms.TabControl();
     this.tabPage3           = new System.Windows.Forms.TabPage();
     this.textBox1           = new System.Windows.Forms.TextBox();
     this.btnPost            = new System.Windows.Forms.Button();
     this.contextMenuStrip1  = new System.Windows.Forms.ContextMenuStrip(this.components);
     this.toolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem();
     this.panel3             = new System.Windows.Forms.Panel();
     richTextBox1            = new System.Windows.Forms.RichTextBox();
     progressBar1            = new System.Windows.Forms.ProgressBar();
     this.label1             = new System.Windows.Forms.Label();
     this.panel1.SuspendLayout();
     this.tabControl1.SuspendLayout();
     this.tabPage2.SuspendLayout();
     this.panel2.SuspendLayout();
     this.tabControl2.SuspendLayout();
     this.tabPage3.SuspendLayout();
     this.contextMenuStrip1.SuspendLayout();
     this.panel3.SuspendLayout();
     this.SuspendLayout();
     //
     // panel1
     //
     this.panel1.Controls.Add(this.tabControl1);
     this.panel1.Dock     = System.Windows.Forms.DockStyle.Top;
     this.panel1.Location = new System.Drawing.Point(0, 0);
     this.panel1.Name     = "panel1";
     this.panel1.Size     = new System.Drawing.Size(1219, 481);
     this.panel1.TabIndex = 0;
     //
     // tabControl1
     //
     this.tabControl1.Controls.Add(this.tabPage1);
     this.tabControl1.Controls.Add(this.tabPage2);
     this.tabControl1.Dock                  = System.Windows.Forms.DockStyle.Fill;
     this.tabControl1.Location              = new System.Drawing.Point(0, 0);
     this.tabControl1.Name                  = "tabControl1";
     this.tabControl1.SelectedIndex         = 0;
     this.tabControl1.Size                  = new System.Drawing.Size(1219, 481);
     this.tabControl1.TabIndex              = 0;
     this.tabControl1.SelectedIndexChanged += new System.EventHandler(this.tabControl1_SelectedIndexChanged);
     //
     // tabPage1
     //
     this.tabPage1.Location = new System.Drawing.Point(4, 22);
     this.tabPage1.Name     = "tabPage1";
     this.tabPage1.Padding  = new System.Windows.Forms.Padding(3);
     this.tabPage1.Size     = new System.Drawing.Size(1211, 455);
     this.tabPage1.TabIndex = 0;
     this.tabPage1.Text     = "Data Viewer";
     this.tabPage1.UseVisualStyleBackColor = true;
     //
     // tabPage2
     //
     this.tabPage2.Controls.Add(this.txtXML);
     this.tabPage2.Location = new System.Drawing.Point(4, 22);
     this.tabPage2.Name     = "tabPage2";
     this.tabPage2.Padding  = new System.Windows.Forms.Padding(3);
     this.tabPage2.Size     = new System.Drawing.Size(1211, 455);
     this.tabPage2.TabIndex = 1;
     this.tabPage2.Text     = "XML Viewer";
     this.tabPage2.UseVisualStyleBackColor = true;
     //
     // txtXML
     //
     this.txtXML.Dock       = System.Windows.Forms.DockStyle.Fill;
     this.txtXML.Location   = new System.Drawing.Point(3, 3);
     this.txtXML.Multiline  = true;
     this.txtXML.Name       = "txtXML";
     this.txtXML.ScrollBars = System.Windows.Forms.ScrollBars.Both;
     this.txtXML.Size       = new System.Drawing.Size(1205, 449);
     this.txtXML.TabIndex   = 0;
     //
     // panel2
     //
     this.panel2.Controls.Add(this.tabControl2);
     this.panel2.Controls.Add(this.btnPost);
     this.panel2.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.panel2.Location = new System.Drawing.Point(0, 481);
     this.panel2.Name     = "panel2";
     this.panel2.Size     = new System.Drawing.Size(1219, 182);
     this.panel2.TabIndex = 1;
     //
     // tabControl2
     //
     this.tabControl2.Controls.Add(this.tabPage3);
     this.tabControl2.Location      = new System.Drawing.Point(4, 46);
     this.tabControl2.Name          = "tabControl2";
     this.tabControl2.SelectedIndex = 0;
     this.tabControl2.Size          = new System.Drawing.Size(1215, 133);
     this.tabControl2.TabIndex      = 1;
     //
     // tabPage3
     //
     this.tabPage3.Controls.Add(this.textBox1);
     this.tabPage3.Location = new System.Drawing.Point(4, 22);
     this.tabPage3.Name     = "tabPage3";
     this.tabPage3.Padding  = new System.Windows.Forms.Padding(3);
     this.tabPage3.Size     = new System.Drawing.Size(1207, 107);
     this.tabPage3.TabIndex = 0;
     this.tabPage3.Text     = "Output";
     this.tabPage3.UseVisualStyleBackColor = true;
     //
     // textBox1
     //
     this.textBox1.Dock       = System.Windows.Forms.DockStyle.Fill;
     this.textBox1.Location   = new System.Drawing.Point(3, 3);
     this.textBox1.Multiline  = true;
     this.textBox1.Name       = "textBox1";
     this.textBox1.ScrollBars = System.Windows.Forms.ScrollBars.Vertical;
     this.textBox1.Size       = new System.Drawing.Size(1201, 101);
     this.textBox1.TabIndex   = 0;
     //
     // btnPost
     //
     this.btnPost.Location = new System.Drawing.Point(579, 6);
     this.btnPost.Name     = "btnPost";
     this.btnPost.Size     = new System.Drawing.Size(132, 34);
     this.btnPost.TabIndex = 0;
     this.btnPost.Text     = "Update";
     this.btnPost.UseVisualStyleBackColor = true;
     this.btnPost.Click += new System.EventHandler(this.btnPost_Click);
     //
     // contextMenuStrip1
     //
     this.contextMenuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
         this.toolStripMenuItem1
     });
     this.contextMenuStrip1.Name         = "contextMenuStrip1";
     this.contextMenuStrip1.Size         = new System.Drawing.Size(108, 26);
     this.contextMenuStrip1.Text         = "Delete";
     this.contextMenuStrip1.ItemClicked += new System.Windows.Forms.ToolStripItemClickedEventHandler(this.contextMenuScript1_ItemClicked);
     //
     // toolStripMenuItem1
     //
     this.toolStripMenuItem1.Name = "toolStripMenuItem1";
     this.toolStripMenuItem1.Size = new System.Drawing.Size(107, 22);
     this.toolStripMenuItem1.Text = "Delete";
     //
     // panel3
     //
     this.panel3.Controls.Add(richTextBox1);
     this.panel3.Controls.Add(progressBar1);
     this.panel3.Controls.Add(this.label1);
     this.panel3.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.panel3.Location = new System.Drawing.Point(0, 481);
     this.panel3.Name     = "panel3";
     this.panel3.Size     = new System.Drawing.Size(1219, 182);
     this.panel3.TabIndex = 2;
     //
     // richTextBox1
     //
     richTextBox1.Dock     = System.Windows.Forms.DockStyle.Bottom;
     richTextBox1.Font     = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     richTextBox1.Location = new System.Drawing.Point(0, -194);
     richTextBox1.Name     = "richTextBox1";
     richTextBox1.Size     = new System.Drawing.Size(1219, 376);
     richTextBox1.TabIndex = 5;
     richTextBox1.Text     = "";
     //
     // progressBar1
     //
     progressBar1.Location = new System.Drawing.Point(61, 152);
     progressBar1.Name     = "progressBar1";
     progressBar1.Size     = new System.Drawing.Size(1097, 40);
     progressBar1.TabIndex = 4;
     progressBar1.Visible  = false;
     //
     // label1
     //
     this.label1.AutoSize  = true;
     this.label1.Font      = new System.Drawing.Font("Microsoft Sans Serif", 15.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.label1.ForeColor = System.Drawing.Color.Gray;
     this.label1.Location  = new System.Drawing.Point(457, 91);
     this.label1.Name      = "label1";
     this.label1.Size      = new System.Drawing.Size(264, 25);
     this.label1.TabIndex  = 3;
     this.label1.Text      = "Processing... Please Wait.";
     this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
     //
     // AMUPostFrm
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
     this.AutoScaleMode       = System.Windows.Forms.AutoScaleMode.Font;
     this.ClientSize          = new System.Drawing.Size(1219, 663);
     this.Controls.Add(this.panel3);
     this.Controls.Add(this.panel2);
     this.Controls.Add(this.panel1);
     this.Icon          = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
     this.MaximizeBox   = false;
     this.MinimizeBox   = false;
     this.Name          = "AMUPostFrm";
     this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
     this.Text          = "AllocationMarker Update  - RSystems FinanceTools ";
     this.panel1.ResumeLayout(false);
     this.tabControl1.ResumeLayout(false);
     this.tabPage2.ResumeLayout(false);
     this.tabPage2.PerformLayout();
     this.panel2.ResumeLayout(false);
     this.tabControl2.ResumeLayout(false);
     this.tabPage3.ResumeLayout(false);
     this.tabPage3.PerformLayout();
     this.contextMenuStrip1.ResumeLayout(false);
     this.panel3.ResumeLayout(false);
     this.panel3.PerformLayout();
     this.ResumeLayout(false);
 }
예제 #37
0
 public override string ToText(Subtitle subtitle, string title)
 {
     System.Windows.Forms.RichTextBox rtBox = new System.Windows.Forms.RichTextBox();
     rtBox.Text = ToF4Text(subtitle, title);
     return(rtBox.Rtf);
 }
예제 #38
0
 /// <summary>
 /// Осуществлет интерпретацию программы
 /// </summary>
 /// <param name="web">Браузер</param>
 /// <param name="input">Окно ввода</param>
 /// <param name="output">Окно вывода</param>
 /// init run
 public void interpretation(System.Windows.Forms.TextBox input, System.Windows.Forms.RichTextBox output)
 {
     pars.analyze();
     exec = new Executer(pars.getTableId(), input, output, wb);
     exec.execute();
 }
예제 #39
0
        /// <summary>
        /// Fills the rich edit.
        /// </summary>
        /// <param name="rich">The rich.</param>
        /// <param name="value">The value.</param>
        public void FillRichEdit(System.Windows.Forms.RichTextBox rich, string value)
        {
            rich.Text = string.Empty;
            this.Line = value;

            RTFBuilder sb = new RTFBuilder {
                BackColor = rich.BackColor
            };

            while (this.TokenId != TokenKind.tkNull)
            {
                Color forecolor;
                switch (this.TokenId)
                {
                case TokenKind.tkKey:
                    forecolor = Color.Blue;
                    break;

                case TokenKind.tkFunction:
                    forecolor = Color.Fuchsia;
                    break;

                case TokenKind.tkGreyKeyword:
                    forecolor = Color.Gray;
                    break;

                case TokenKind.tkFuKeyword:
                    forecolor = Color.Fuchsia;
                    break;

                case TokenKind.tkDatatype:
                    forecolor = Color.Blue;
                    break;

                case TokenKind.tkNumber:
                    forecolor = Color.Red;
                    break;

                case TokenKind.tkString:
                    forecolor = Color.Red;
                    break;

                case TokenKind.tkComment:
                    forecolor = Color.DarkGreen;
                    break;

                default:
                    forecolor = Color.Black;
                    break;
                }

                sb.ForeColor = forecolor;
                if (this.Token == Environment.NewLine || this.Token == "\r" || this.Token == "\n")
                {
                    sb.AppendLine();
                }
                else
                {
                    sb.Append(this.Token);
                }

                this.Next();
            }

            rich.Rtf = sb.ToString();
        }
예제 #40
0
 /// <summary>
 /// This method is required for Windows Forms designer support.
 /// Do not change the method contents inside the source code editor. The Forms designer might
 /// not be able to load this method if it was changed manually.
 /// </summary>
 private void InitializeComponent()
 {
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(MainForm));
     this.descriptionBox = new System.Windows.Forms.RichTextBox();
     this.label1         = new System.Windows.Forms.Label();
     this.label2         = new System.Windows.Forms.Label();
     this.SuspendLayout();
     //
     // descriptionBox
     //
     this.descriptionBox.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.descriptionBox.BackColor   = System.Drawing.SystemColors.Window;
     this.descriptionBox.BorderStyle = System.Windows.Forms.BorderStyle.None;
     this.descriptionBox.Font        = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
     this.descriptionBox.Location    = new System.Drawing.Point(12, 85);
     this.descriptionBox.Name        = "descriptionBox";
     this.descriptionBox.ReadOnly    = true;
     this.descriptionBox.RightToLeft = System.Windows.Forms.RightToLeft.No;
     this.descriptionBox.Size        = new System.Drawing.Size(336, 237);
     this.descriptionBox.TabIndex    = 2;
     this.descriptionBox.Text        = resources.GetString("descriptionBox.Text");
     //
     // label1
     //
     this.label1.Anchor    = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.label1.BackColor = System.Drawing.Color.Transparent;
     this.label1.Cursor    = System.Windows.Forms.Cursors.Hand;
     this.label1.Font      = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
     this.label1.ForeColor = System.Drawing.SystemColors.Window;
     this.label1.Location  = new System.Drawing.Point(158, 328);
     this.label1.Name      = "label1";
     this.label1.Size      = new System.Drawing.Size(92, 23);
     this.label1.TabIndex  = 4;
     this.label1.Text      = "Установить";
     this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
     this.label1.Click    += new System.EventHandler(this.Label1Click);
     //
     // label2
     //
     this.label2.Anchor    = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.label2.BackColor = System.Drawing.Color.Transparent;
     this.label2.Cursor    = System.Windows.Forms.Cursors.Hand;
     this.label2.Font      = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
     this.label2.ForeColor = System.Drawing.SystemColors.Window;
     this.label2.Location  = new System.Drawing.Point(256, 328);
     this.label2.Name      = "label2";
     this.label2.Size      = new System.Drawing.Size(92, 23);
     this.label2.TabIndex  = 4;
     this.label2.Text      = "Отменить";
     this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
     this.label2.Click    += new System.EventHandler(this.Label2Click);
     //
     // MainForm
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
     this.AutoScaleMode       = System.Windows.Forms.AutoScaleMode.Font;
     this.BackColor           = System.Drawing.SystemColors.Control;
     this.BackgroundImage     = ((System.Drawing.Image)(resources.GetObject("$this.BackgroundImage")));
     this.ClientSize          = new System.Drawing.Size(360, 360);
     this.Controls.Add(this.label2);
     this.Controls.Add(this.label1);
     this.Controls.Add(this.descriptionBox);
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
     this.MaximizeBox     = false;
     this.MinimizeBox     = false;
     this.Name            = "MainForm";
     this.ShowIcon        = false;
     this.StartPosition   = System.Windows.Forms.FormStartPosition.CenterScreen;
     this.Text            = "Проверка обновления";
     this.TopMost         = true;
     this.TransparencyKey = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(2)))), ((int)(((byte)(255)))));
     this.ResumeLayout(false);
 }
예제 #41
0
 /// <summary>
 /// Erforderliche Methode für die Designerunterstützung.
 /// Der Inhalt der Methode darf nicht mit dem Code-Editor geändert werden.
 /// </summary>
 private void InitializeComponent()
 {
     this.components         = new System.ComponentModel.Container();
     this.m_tabCtrl          = new System.Windows.Forms.TabControl();
     this.m_tabCmdTrace      = new System.Windows.Forms.TabPage();
     this.m_txtCommandTrace  = new System.Windows.Forms.RichTextBox();
     this.m_tabOutput        = new System.Windows.Forms.TabPage();
     this.m_txtOutputTrace   = new System.Windows.Forms.RichTextBox();
     this.m_tabWarnings      = new System.Windows.Forms.TabPage();
     this.m_txtWarningsTrace = new System.Windows.Forms.RichTextBox();
     this.m_tabErrorTrace    = new System.Windows.Forms.TabPage();
     this.m_txtErrorTrace    = new System.Windows.Forms.RichTextBox();
     this.m_tabUCF           = new System.Windows.Forms.TabPage();
     this.m_txtUCF           = new System.Windows.Forms.RichTextBox();
     this.m_tabVHDL          = new System.Windows.Forms.TabPage();
     this.m_txtVHDL          = new System.Windows.Forms.RichTextBox();
     this.m_tabTCL           = new System.Windows.Forms.TabPage();
     this.m_txtTCL           = new System.Windows.Forms.RichTextBox();
     this.m_tabInput         = new System.Windows.Forms.TabPage();
     this.m_txtInput         = new System.Windows.Forms.RichTextBox();
     this.m_tabTCLInput      = new System.Windows.Forms.TabPage();
     this.m_panelTCLInput    = new System.Windows.Forms.Panel();
     this.button1            = new System.Windows.Forms.Button();
     TCL_input                = new System.Windows.Forms.RichTextBox();
     this.m_ctxtMenu          = new System.Windows.Forms.ContextMenuStrip(this.components);
     this.m_ctxtMenuSelectAll = new System.Windows.Forms.ToolStripMenuItem();
     this.m_ctxtMenuCopy      = new System.Windows.Forms.ToolStripMenuItem();
     this.m_ctxtMenuCopyAll   = new System.Windows.Forms.ToolStripMenuItem();
     this.m_ctxtMenuClear     = new System.Windows.Forms.ToolStripMenuItem();
     this.m_ctxtMenuPaste     = new System.Windows.Forms.ToolStripMenuItem();
     TCL_output               = new System.Windows.Forms.RichTextBox();
     this.m_tabCtrl.SuspendLayout();
     this.m_tabCmdTrace.SuspendLayout();
     this.m_tabOutput.SuspendLayout();
     this.m_tabWarnings.SuspendLayout();
     this.m_tabErrorTrace.SuspendLayout();
     this.m_tabUCF.SuspendLayout();
     this.m_tabVHDL.SuspendLayout();
     this.m_tabTCL.SuspendLayout();
     this.m_tabInput.SuspendLayout();
     this.m_tabTCLInput.SuspendLayout();
     this.m_panelTCLInput.SuspendLayout();
     this.m_ctxtMenu.SuspendLayout();
     this.SuspendLayout();
     //
     // m_tabCtrl
     //
     this.m_tabCtrl.Controls.Add(this.m_tabCmdTrace);
     this.m_tabCtrl.Controls.Add(this.m_tabOutput);
     this.m_tabCtrl.Controls.Add(this.m_tabWarnings);
     this.m_tabCtrl.Controls.Add(this.m_tabErrorTrace);
     this.m_tabCtrl.Controls.Add(this.m_tabUCF);
     this.m_tabCtrl.Controls.Add(this.m_tabVHDL);
     this.m_tabCtrl.Controls.Add(this.m_tabTCL);
     this.m_tabCtrl.Controls.Add(this.m_tabInput);
     this.m_tabCtrl.Controls.Add(this.m_tabTCLInput);
     this.m_tabCtrl.Dock          = System.Windows.Forms.DockStyle.Fill;
     this.m_tabCtrl.Location      = new System.Drawing.Point(0, 0);
     this.m_tabCtrl.Margin        = new System.Windows.Forms.Padding(4);
     this.m_tabCtrl.Name          = "m_tabCtrl";
     this.m_tabCtrl.SelectedIndex = 0;
     this.m_tabCtrl.Size          = new System.Drawing.Size(1052, 559);
     this.m_tabCtrl.TabIndex      = 0;
     //
     // m_tabCmdTrace
     //
     this.m_tabCmdTrace.Controls.Add(this.m_txtCommandTrace);
     this.m_tabCmdTrace.Location = new System.Drawing.Point(4, 25);
     this.m_tabCmdTrace.Margin   = new System.Windows.Forms.Padding(4);
     this.m_tabCmdTrace.Name     = "m_tabCmdTrace";
     this.m_tabCmdTrace.Size     = new System.Drawing.Size(1044, 530);
     this.m_tabCmdTrace.TabIndex = 0;
     this.m_tabCmdTrace.Text     = "Command Trace";
     this.m_tabCmdTrace.UseVisualStyleBackColor = true;
     //
     // m_txtCommandTrace
     //
     this.m_txtCommandTrace.Dock       = System.Windows.Forms.DockStyle.Fill;
     this.m_txtCommandTrace.Font       = new System.Drawing.Font("Courier New", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.m_txtCommandTrace.Location   = new System.Drawing.Point(0, 0);
     this.m_txtCommandTrace.Margin     = new System.Windows.Forms.Padding(4);
     this.m_txtCommandTrace.Name       = "m_txtCommandTrace";
     this.m_txtCommandTrace.ReadOnly   = true;
     this.m_txtCommandTrace.Size       = new System.Drawing.Size(1044, 530);
     this.m_txtCommandTrace.TabIndex   = 0;
     this.m_txtCommandTrace.Text       = "";
     this.m_txtCommandTrace.MouseDown += new System.Windows.Forms.MouseEventHandler(this.m_txtCommandTrace_MouseDown);
     //
     // m_tabOutput
     //
     this.m_tabOutput.Controls.Add(this.m_txtOutputTrace);
     this.m_tabOutput.Location = new System.Drawing.Point(4, 25);
     this.m_tabOutput.Margin   = new System.Windows.Forms.Padding(4);
     this.m_tabOutput.Name     = "m_tabOutput";
     this.m_tabOutput.Size     = new System.Drawing.Size(1044, 530);
     this.m_tabOutput.TabIndex = 3;
     this.m_tabOutput.Text     = "Output";
     this.m_tabOutput.UseVisualStyleBackColor = true;
     //
     // m_txtOutputTrace
     //
     this.m_txtOutputTrace.Dock       = System.Windows.Forms.DockStyle.Fill;
     this.m_txtOutputTrace.Font       = new System.Drawing.Font("Courier New", 8.25F);
     this.m_txtOutputTrace.Location   = new System.Drawing.Point(0, 0);
     this.m_txtOutputTrace.Margin     = new System.Windows.Forms.Padding(4);
     this.m_txtOutputTrace.Name       = "m_txtOutputTrace";
     this.m_txtOutputTrace.ReadOnly   = true;
     this.m_txtOutputTrace.Size       = new System.Drawing.Size(1044, 530);
     this.m_txtOutputTrace.TabIndex   = 0;
     this.m_txtOutputTrace.Text       = "";
     this.m_txtOutputTrace.MouseDown += new System.Windows.Forms.MouseEventHandler(this.m_txtOutputTrace_MouseDown);
     //
     // m_tabWarnings
     //
     this.m_tabWarnings.Controls.Add(this.m_txtWarningsTrace);
     this.m_tabWarnings.Location = new System.Drawing.Point(4, 25);
     this.m_tabWarnings.Margin   = new System.Windows.Forms.Padding(4);
     this.m_tabWarnings.Name     = "m_tabWarnings";
     this.m_tabWarnings.Size     = new System.Drawing.Size(1044, 530);
     this.m_tabWarnings.TabIndex = 7;
     this.m_tabWarnings.Text     = "Warnings";
     this.m_tabWarnings.UseVisualStyleBackColor = true;
     //
     // m_txtWarningsTrace
     //
     this.m_txtWarningsTrace.Dock       = System.Windows.Forms.DockStyle.Fill;
     this.m_txtWarningsTrace.Font       = new System.Drawing.Font("Courier New", 8.25F);
     this.m_txtWarningsTrace.Location   = new System.Drawing.Point(0, 0);
     this.m_txtWarningsTrace.Margin     = new System.Windows.Forms.Padding(4);
     this.m_txtWarningsTrace.Name       = "m_txtWarningsTrace";
     this.m_txtWarningsTrace.ReadOnly   = true;
     this.m_txtWarningsTrace.Size       = new System.Drawing.Size(1044, 530);
     this.m_txtWarningsTrace.TabIndex   = 1;
     this.m_txtWarningsTrace.Text       = "";
     this.m_txtWarningsTrace.MouseDown += new System.Windows.Forms.MouseEventHandler(this.m_txtWarningsTrace_MouseDown);
     //
     // m_tabErrorTrace
     //
     this.m_tabErrorTrace.Controls.Add(this.m_txtErrorTrace);
     this.m_tabErrorTrace.Location = new System.Drawing.Point(4, 25);
     this.m_tabErrorTrace.Margin   = new System.Windows.Forms.Padding(4);
     this.m_tabErrorTrace.Name     = "m_tabErrorTrace";
     this.m_tabErrorTrace.Size     = new System.Drawing.Size(1044, 530);
     this.m_tabErrorTrace.TabIndex = 1;
     this.m_tabErrorTrace.Text     = "Error Trace";
     this.m_tabErrorTrace.UseVisualStyleBackColor = true;
     //
     // m_txtErrorTrace
     //
     this.m_txtErrorTrace.Dock       = System.Windows.Forms.DockStyle.Fill;
     this.m_txtErrorTrace.Font       = new System.Drawing.Font("Courier New", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.m_txtErrorTrace.Location   = new System.Drawing.Point(0, 0);
     this.m_txtErrorTrace.Margin     = new System.Windows.Forms.Padding(4);
     this.m_txtErrorTrace.Name       = "m_txtErrorTrace";
     this.m_txtErrorTrace.ReadOnly   = true;
     this.m_txtErrorTrace.Size       = new System.Drawing.Size(1044, 530);
     this.m_txtErrorTrace.TabIndex   = 0;
     this.m_txtErrorTrace.Text       = "";
     this.m_txtErrorTrace.MouseDown += new System.Windows.Forms.MouseEventHandler(this.m_txtErrorTrace_MouseDown);
     //
     // m_tabUCF
     //
     this.m_tabUCF.Controls.Add(this.m_txtUCF);
     this.m_tabUCF.Location = new System.Drawing.Point(4, 25);
     this.m_tabUCF.Margin   = new System.Windows.Forms.Padding(4);
     this.m_tabUCF.Name     = "m_tabUCF";
     this.m_tabUCF.Size     = new System.Drawing.Size(1044, 530);
     this.m_tabUCF.TabIndex = 5;
     this.m_tabUCF.Text     = "UCF";
     this.m_tabUCF.UseVisualStyleBackColor = true;
     //
     // m_txtUCF
     //
     this.m_txtUCF.Dock       = System.Windows.Forms.DockStyle.Fill;
     this.m_txtUCF.Font       = new System.Drawing.Font("Courier New", 8.25F);
     this.m_txtUCF.Location   = new System.Drawing.Point(0, 0);
     this.m_txtUCF.Margin     = new System.Windows.Forms.Padding(4);
     this.m_txtUCF.Name       = "m_txtUCF";
     this.m_txtUCF.ReadOnly   = true;
     this.m_txtUCF.Size       = new System.Drawing.Size(1044, 530);
     this.m_txtUCF.TabIndex   = 0;
     this.m_txtUCF.Text       = "";
     this.m_txtUCF.MouseDown += new System.Windows.Forms.MouseEventHandler(this.m_txtUCF_MouseDown);
     //
     // m_tabVHDL
     //
     this.m_tabVHDL.Controls.Add(this.m_txtVHDL);
     this.m_tabVHDL.Location = new System.Drawing.Point(4, 25);
     this.m_tabVHDL.Margin   = new System.Windows.Forms.Padding(4);
     this.m_tabVHDL.Name     = "m_tabVHDL";
     this.m_tabVHDL.Size     = new System.Drawing.Size(1044, 530);
     this.m_tabVHDL.TabIndex = 6;
     this.m_tabVHDL.Text     = "VHDL";
     this.m_tabVHDL.UseVisualStyleBackColor = true;
     //
     // m_txtVHDL
     //
     this.m_txtVHDL.Dock       = System.Windows.Forms.DockStyle.Fill;
     this.m_txtVHDL.Font       = new System.Drawing.Font("Courier New", 8.25F);
     this.m_txtVHDL.Location   = new System.Drawing.Point(0, 0);
     this.m_txtVHDL.Margin     = new System.Windows.Forms.Padding(4);
     this.m_txtVHDL.Name       = "m_txtVHDL";
     this.m_txtVHDL.ReadOnly   = true;
     this.m_txtVHDL.Size       = new System.Drawing.Size(1044, 530);
     this.m_txtVHDL.TabIndex   = 0;
     this.m_txtVHDL.Text       = "";
     this.m_txtVHDL.MouseDown += new System.Windows.Forms.MouseEventHandler(this.m_txtVHDL_MouseDown);
     //
     // m_tabTCL
     //
     this.m_tabTCL.Controls.Add(this.m_txtTCL);
     this.m_tabTCL.Location = new System.Drawing.Point(4, 25);
     this.m_tabTCL.Margin   = new System.Windows.Forms.Padding(4);
     this.m_tabTCL.Name     = "m_tabTCL";
     this.m_tabTCL.Size     = new System.Drawing.Size(1044, 530);
     this.m_tabTCL.TabIndex = 8;
     this.m_tabTCL.Text     = "TCL";
     this.m_tabTCL.UseVisualStyleBackColor = true;
     //
     // m_txtTCL
     //
     this.m_txtTCL.Dock       = System.Windows.Forms.DockStyle.Fill;
     this.m_txtTCL.Font       = new System.Drawing.Font("Courier New", 8.25F);
     this.m_txtTCL.Location   = new System.Drawing.Point(0, 0);
     this.m_txtTCL.Margin     = new System.Windows.Forms.Padding(4);
     this.m_txtTCL.Name       = "m_txtTCL";
     this.m_txtTCL.ReadOnly   = true;
     this.m_txtTCL.Size       = new System.Drawing.Size(1044, 530);
     this.m_txtTCL.TabIndex   = 1;
     this.m_txtTCL.Text       = "";
     this.m_txtTCL.MouseDown += new System.Windows.Forms.MouseEventHandler(this.m_txtTCL_MouseDown);
     //
     // m_tabInput
     //
     this.m_tabInput.Controls.Add(this.m_txtInput);
     this.m_tabInput.Location = new System.Drawing.Point(4, 25);
     this.m_tabInput.Margin   = new System.Windows.Forms.Padding(4);
     this.m_tabInput.Name     = "m_tabInput";
     this.m_tabInput.Size     = new System.Drawing.Size(1044, 530);
     this.m_tabInput.TabIndex = 4;
     this.m_tabInput.Text     = "Input";
     this.m_tabInput.UseVisualStyleBackColor = true;
     //
     // m_txtInput
     //
     this.m_txtInput.Dock       = System.Windows.Forms.DockStyle.Fill;
     this.m_txtInput.Font       = new System.Drawing.Font("Courier New", 8.25F);
     this.m_txtInput.Location   = new System.Drawing.Point(0, 0);
     this.m_txtInput.Margin     = new System.Windows.Forms.Padding(4);
     this.m_txtInput.Name       = "m_txtInput";
     this.m_txtInput.Size       = new System.Drawing.Size(1044, 530);
     this.m_txtInput.TabIndex   = 0;
     this.m_txtInput.Text       = "";
     this.m_txtInput.KeyDown   += new System.Windows.Forms.KeyEventHandler(this.m_txtInput_KeyDown);
     this.m_txtInput.KeyPress  += new System.Windows.Forms.KeyPressEventHandler(this.m_txtInputTrace_KeyPress);
     this.m_txtInput.MouseDown += new System.Windows.Forms.MouseEventHandler(this.m_txtInput_MouseDown);
     //
     // m_tabTCLInput
     //
     this.m_tabTCLInput.Controls.Add(this.m_panelTCLInput);
     this.m_tabTCLInput.Location = new System.Drawing.Point(4, 25);
     this.m_tabTCLInput.Margin   = new System.Windows.Forms.Padding(4);
     this.m_tabTCLInput.Name     = "m_tabTCLInput";
     this.m_tabTCLInput.Size     = new System.Drawing.Size(1044, 530);
     this.m_tabTCLInput.TabIndex = 7;
     this.m_tabTCLInput.Text     = "TCL Input";
     this.m_tabTCLInput.UseVisualStyleBackColor = true;
     //
     // m_panelTCLInput
     //
     this.m_panelTCLInput.BackColor   = System.Drawing.Color.White;
     this.m_panelTCLInput.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
     this.m_panelTCLInput.Controls.Add(TCL_output);
     this.m_panelTCLInput.Controls.Add(this.button1);
     this.m_panelTCLInput.Controls.Add(TCL_input);
     this.m_panelTCLInput.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.m_panelTCLInput.Location = new System.Drawing.Point(0, 0);
     this.m_panelTCLInput.Margin   = new System.Windows.Forms.Padding(4);
     this.m_panelTCLInput.Name     = "m_panelTCLInput";
     this.m_panelTCLInput.Size     = new System.Drawing.Size(1044, 530);
     this.m_panelTCLInput.TabIndex = 0;
     //
     // button1
     //
     this.button1.Location = new System.Drawing.Point(958, 7);
     this.button1.Name     = "button1";
     this.button1.Size     = new System.Drawing.Size(75, 23);
     this.button1.TabIndex = 1;
     this.button1.Text     = "Source";
     this.button1.UseVisualStyleBackColor = true;
     this.button1.Click += new System.EventHandler(this.button1_Click);
     //
     // m_txtTCLInput
     //
     TCL_input.BackColor   = System.Drawing.SystemColors.ControlLightLight;
     TCL_input.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
     TCL_input.Dock        = System.Windows.Forms.DockStyle.Bottom;
     TCL_input.Font        = new System.Drawing.Font("Consolas", 8.25F);
     TCL_input.Location    = new System.Drawing.Point(0, 489);
     TCL_input.Margin      = new System.Windows.Forms.Padding(0);
     TCL_input.Name        = "m_txtTCLInput";
     TCL_input.Size        = new System.Drawing.Size(1040, 37);
     TCL_input.TabIndex    = 0;
     TCL_input.Text        = "";
     TCL_input.WordWrap    = false;
     TCL_input.KeyDown    += new System.Windows.Forms.KeyEventHandler(this.TCL_input_KeyPress);
     //
     // m_ctxtMenu
     //
     this.m_ctxtMenu.ImageScalingSize = new System.Drawing.Size(20, 20);
     this.m_ctxtMenu.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
         this.m_ctxtMenuSelectAll,
         this.m_ctxtMenuCopy,
         this.m_ctxtMenuCopyAll,
         this.m_ctxtMenuClear,
         this.m_ctxtMenuPaste
     });
     this.m_ctxtMenu.Name = "m_ctxtMenu";
     this.m_ctxtMenu.Size = new System.Drawing.Size(178, 124);
     //
     // m_ctxtMenuSelectAll
     //
     this.m_ctxtMenuSelectAll.Name   = "m_ctxtMenuSelectAll";
     this.m_ctxtMenuSelectAll.Size   = new System.Drawing.Size(177, 24);
     this.m_ctxtMenuSelectAll.Text   = "Select All";
     this.m_ctxtMenuSelectAll.Click += new System.EventHandler(this.m_ctxtMenuSelectAll_Click);
     //
     // m_ctxtMenuCopy
     //
     this.m_ctxtMenuCopy.Name   = "m_ctxtMenuCopy";
     this.m_ctxtMenuCopy.Size   = new System.Drawing.Size(177, 24);
     this.m_ctxtMenuCopy.Text   = "Copy Selection";
     this.m_ctxtMenuCopy.Click += new System.EventHandler(this.m_ctxtMenuCopy_Click);
     //
     // m_ctxtMenuCopyAll
     //
     this.m_ctxtMenuCopyAll.Name   = "m_ctxtMenuCopyAll";
     this.m_ctxtMenuCopyAll.Size   = new System.Drawing.Size(177, 24);
     this.m_ctxtMenuCopyAll.Text   = "Copy All";
     this.m_ctxtMenuCopyAll.Click += new System.EventHandler(this.m_ctxtMenuCopyAll_Click);
     //
     // m_ctxtMenuClear
     //
     this.m_ctxtMenuClear.Name   = "m_ctxtMenuClear";
     this.m_ctxtMenuClear.Size   = new System.Drawing.Size(177, 24);
     this.m_ctxtMenuClear.Text   = "Clear Window";
     this.m_ctxtMenuClear.Click += new System.EventHandler(this.m_ctxtMenuDelete_Click);
     //
     // m_ctxtMenuPaste
     //
     this.m_ctxtMenuPaste.Name   = "m_ctxtMenuPaste";
     this.m_ctxtMenuPaste.Size   = new System.Drawing.Size(177, 24);
     this.m_ctxtMenuPaste.Text   = "Paste";
     this.m_ctxtMenuPaste.Click += new System.EventHandler(this.m_ctxtMenuPaste_Click);
     //
     // richTextBox1
     //
     TCL_output.BackColor   = System.Drawing.SystemColors.ControlLightLight;
     TCL_output.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
     TCL_output.Dock        = System.Windows.Forms.DockStyle.Fill;
     TCL_output.Font        = new System.Drawing.Font("Consolas", 8.25F);
     TCL_output.Location    = new System.Drawing.Point(0, 0);
     TCL_output.Margin      = new System.Windows.Forms.Padding(0);
     TCL_output.Name        = "richTextBox1";
     TCL_output.ReadOnly    = true;
     TCL_output.Size        = new System.Drawing.Size(1040, 489);
     TCL_output.TabIndex    = 2;
     TCL_output.Text        = "";
     TCL_output.WordWrap    = false;
     //
     // ConsoleCtrl
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F);
     this.AutoScaleMode       = System.Windows.Forms.AutoScaleMode.Font;
     this.Controls.Add(this.m_tabCtrl);
     this.Margin = new System.Windows.Forms.Padding(4);
     this.Name   = "ConsoleCtrl";
     this.Size   = new System.Drawing.Size(1052, 559);
     this.m_tabCtrl.ResumeLayout(false);
     this.m_tabCmdTrace.ResumeLayout(false);
     this.m_tabOutput.ResumeLayout(false);
     this.m_tabWarnings.ResumeLayout(false);
     this.m_tabErrorTrace.ResumeLayout(false);
     this.m_tabUCF.ResumeLayout(false);
     this.m_tabVHDL.ResumeLayout(false);
     this.m_tabTCL.ResumeLayout(false);
     this.m_tabInput.ResumeLayout(false);
     this.m_tabTCLInput.ResumeLayout(false);
     this.m_panelTCLInput.ResumeLayout(false);
     this.m_ctxtMenu.ResumeLayout(false);
     this.ResumeLayout(false);
 }
예제 #42
0
 /// <summary>
 /// This method is required for Windows Forms designer support.
 /// Do not change the method contents inside the source code editor. The Forms designer might
 /// not be able to load this method if it was changed manually.
 /// </summary>
 private void InitializeComponent()
 {
     this.components            = new System.ComponentModel.Container();
     this.statusStrip1          = new System.Windows.Forms.StatusStrip();
     this.toolStripStatusLabel1 = new System.Windows.Forms.ToolStripStatusLabel();
     this.toolStripStatusLabel3 = new System.Windows.Forms.ToolStripStatusLabel();
     this.toolStripStatusLabel4 = new System.Windows.Forms.ToolStripStatusLabel();
     this.richTextBox1          = new System.Windows.Forms.RichTextBox();
     this.monthCalendar1        = new System.Windows.Forms.MonthCalendar();
     this.monthCalendar2        = new System.Windows.Forms.MonthCalendar();
     this.button1               = new System.Windows.Forms.Button();
     this.button2               = new System.Windows.Forms.Button();
     this.button3               = new System.Windows.Forms.Button();
     this.button4               = new System.Windows.Forms.Button();
     this.openFileDialog1       = new System.Windows.Forms.OpenFileDialog();
     this.timer1                = new System.Windows.Forms.Timer(this.components);
     this.label3                = new System.Windows.Forms.Label();
     this.label4                = new System.Windows.Forms.Label();
     this.dateTimePicker1       = new System.Windows.Forms.DateTimePicker();
     this.dateTimePicker2       = new System.Windows.Forms.DateTimePicker();
     this.listView1             = new System.Windows.Forms.ListView();
     this.button5               = new System.Windows.Forms.Button();
     this.button6               = new System.Windows.Forms.Button();
     this.checkBox1             = new System.Windows.Forms.CheckBox();
     this.panel1                = new System.Windows.Forms.Panel();
     this.panel2                = new System.Windows.Forms.Panel();
     this.panel3                = new System.Windows.Forms.Panel();
     this.label2                = new System.Windows.Forms.Label();
     this.label1                = new System.Windows.Forms.Label();
     this.button7               = new System.Windows.Forms.Button();
     this.backgroundWorker1     = new System.ComponentModel.BackgroundWorker();
     this.toolStripProgressBar1 = new System.Windows.Forms.ToolStripProgressBar();
     this.statusStrip1.SuspendLayout();
     this.panel1.SuspendLayout();
     this.panel2.SuspendLayout();
     this.panel3.SuspendLayout();
     this.SuspendLayout();
     //
     // statusStrip1
     //
     this.statusStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
         this.toolStripStatusLabel1,
         this.toolStripStatusLabel3,
         this.toolStripStatusLabel4,
         this.toolStripProgressBar1
     });
     this.statusStrip1.Location = new System.Drawing.Point(0, 532);
     this.statusStrip1.Name     = "statusStrip1";
     this.statusStrip1.Size     = new System.Drawing.Size(724, 22);
     this.statusStrip1.TabIndex = 0;
     this.statusStrip1.Text     = "statusStrip1";
     //
     // toolStripStatusLabel1
     //
     this.toolStripStatusLabel1.Name = "toolStripStatusLabel1";
     this.toolStripStatusLabel1.Size = new System.Drawing.Size(85, 17);
     this.toolStripStatusLabel1.Text = "..........................";
     //
     // toolStripStatusLabel3
     //
     this.toolStripStatusLabel3.Name = "toolStripStatusLabel3";
     this.toolStripStatusLabel3.Size = new System.Drawing.Size(118, 17);
     this.toolStripStatusLabel3.Text = "toolStripStatusLabel3";
     //
     // toolStripStatusLabel4
     //
     this.toolStripStatusLabel4.IsLink      = true;
     this.toolStripStatusLabel4.Name        = "toolStripStatusLabel4";
     this.toolStripStatusLabel4.RightToLeft = System.Windows.Forms.RightToLeft.No;
     this.toolStripStatusLabel4.Size        = new System.Drawing.Size(74, 17);
     this.toolStripStatusLabel4.Text        = "www.ema.ru";
     this.toolStripStatusLabel4.TextAlign   = System.Drawing.ContentAlignment.MiddleRight;
     //
     // richTextBox1
     //
     this.richTextBox1.Dock     = System.Windows.Forms.DockStyle.Bottom;
     this.richTextBox1.Location = new System.Drawing.Point(0, 366);
     this.richTextBox1.Name     = "richTextBox1";
     this.richTextBox1.Size     = new System.Drawing.Size(724, 166);
     this.richTextBox1.TabIndex = 2;
     this.richTextBox1.Text     = "";
     //
     // monthCalendar1
     //
     this.monthCalendar1.Location          = new System.Drawing.Point(50, 4);
     this.monthCalendar1.MaxSelectionCount = 1;
     this.monthCalendar1.MinDate           = new System.DateTime(2010, 1, 1, 0, 0, 0, 0);
     this.monthCalendar1.Name      = "monthCalendar1";
     this.monthCalendar1.TabIndex  = 3;
     this.monthCalendar1.TodayDate = new System.DateTime(2016, 5, 6, 0, 0, 0, 0);
     //
     // monthCalendar2
     //
     this.monthCalendar2.Location          = new System.Drawing.Point(353, 4);
     this.monthCalendar2.MaxSelectionCount = 1;
     this.monthCalendar2.MinDate           = new System.DateTime(2000, 1, 1, 0, 0, 0, 0);
     this.monthCalendar2.Name     = "monthCalendar2";
     this.monthCalendar2.TabIndex = 4;
     //
     // button1
     //
     this.button1.Location = new System.Drawing.Point(3, 12);
     this.button1.Name     = "button1";
     this.button1.Size     = new System.Drawing.Size(37, 23);
     this.button1.TabIndex = 7;
     this.button1.Text     = "+";
     this.button1.UseVisualStyleBackColor = true;
     this.button1.Click += new System.EventHandler(this.Button1Click);
     //
     // button2
     //
     this.button2.Location = new System.Drawing.Point(2, 189);
     this.button2.Name     = "button2";
     this.button2.Size     = new System.Drawing.Size(40, 23);
     this.button2.TabIndex = 10;
     this.button2.Text     = "Start";
     this.button2.UseVisualStyleBackColor = true;
     this.button2.Click += new System.EventHandler(this.Button2Click);
     //
     // button3
     //
     this.button3.Enabled  = false;
     this.button3.Location = new System.Drawing.Point(2, 234);
     this.button3.Name     = "button3";
     this.button3.Size     = new System.Drawing.Size(40, 23);
     this.button3.TabIndex = 11;
     this.button3.Text     = "Stop";
     this.button3.UseVisualStyleBackColor = true;
     this.button3.Click += new System.EventHandler(this.Button3Click);
     //
     // button4
     //
     this.button4.Location = new System.Drawing.Point(2, 273);
     this.button4.Name     = "button4";
     this.button4.Size     = new System.Drawing.Size(40, 23);
     this.button4.TabIndex = 12;
     this.button4.Text     = "Clear";
     this.button4.UseVisualStyleBackColor = true;
     this.button4.Click += new System.EventHandler(this.Button4Click);
     //
     // openFileDialog1
     //
     this.openFileDialog1.FileName    = "openFileDialog1";
     this.openFileDialog1.Multiselect = true;
     //
     // timer1
     //
     this.timer1.Enabled = true;
     this.timer1.Tick   += new System.EventHandler(this.Timer1Tick);
     //
     // label3
     //
     this.label3.Location = new System.Drawing.Point(3, 4);
     this.label3.Name     = "label3";
     this.label3.Size     = new System.Drawing.Size(35, 23);
     this.label3.TabIndex = 13;
     this.label3.Text     = "From:";
     //
     // label4
     //
     this.label4.Location  = new System.Drawing.Point(311, 6);
     this.label4.Name      = "label4";
     this.label4.Size      = new System.Drawing.Size(21, 23);
     this.label4.TabIndex  = 14;
     this.label4.Text      = "To";
     this.label4.TextAlign = System.Drawing.ContentAlignment.TopCenter;
     //
     // dateTimePicker1
     //
     this.dateTimePicker1.Checked    = false;
     this.dateTimePicker1.Format     = System.Windows.Forms.DateTimePickerFormat.Time;
     this.dateTimePicker1.Location   = new System.Drawing.Point(92, 178);
     this.dateTimePicker1.Name       = "dateTimePicker1";
     this.dateTimePicker1.ShowUpDown = true;
     this.dateTimePicker1.Size       = new System.Drawing.Size(72, 20);
     this.dateTimePicker1.TabIndex   = 15;
     //
     // dateTimePicker2
     //
     this.dateTimePicker2.Format     = System.Windows.Forms.DateTimePickerFormat.Time;
     this.dateTimePicker2.Location   = new System.Drawing.Point(397, 178);
     this.dateTimePicker2.Name       = "dateTimePicker2";
     this.dateTimePicker2.ShowUpDown = true;
     this.dateTimePicker2.Size       = new System.Drawing.Size(77, 20);
     this.dateTimePicker2.TabIndex   = 16;
     //
     // listView1
     //
     this.listView1.CheckBoxes = true;
     this.listView1.Dock       = System.Windows.Forms.DockStyle.Fill;
     this.listView1.GridLines  = true;
     this.listView1.Location   = new System.Drawing.Point(0, 0);
     this.listView1.Name       = "listView1";
     this.listView1.Size       = new System.Drawing.Size(724, 366);
     this.listView1.TabIndex   = 17;
     this.listView1.UseCompatibleStateImageBehavior = false;
     this.listView1.View       = System.Windows.Forms.View.Details;
     this.listView1.DragDrop  += new System.Windows.Forms.DragEventHandler(this.ListView1DragDrop);
     this.listView1.DragEnter += new System.Windows.Forms.DragEventHandler(this.ListView1DragEnter);
     //
     // button5
     //
     this.button5.Location = new System.Drawing.Point(560, 6);
     this.button5.Name     = "button5";
     this.button5.Size     = new System.Drawing.Size(85, 23);
     this.button5.TabIndex = 18;
     this.button5.Text     = "Find";
     this.button5.UseVisualStyleBackColor = true;
     this.button5.Click += new System.EventHandler(this.Button5Click);
     //
     // button6
     //
     this.button6.Location = new System.Drawing.Point(3, 41);
     this.button6.Name     = "button6";
     this.button6.Size     = new System.Drawing.Size(37, 23);
     this.button6.TabIndex = 19;
     this.button6.Text     = "-";
     this.button6.UseVisualStyleBackColor = true;
     this.button6.Click += new System.EventHandler(this.Button6Click);
     //
     // checkBox1
     //
     this.checkBox1.Location = new System.Drawing.Point(560, 109);
     this.checkBox1.Name     = "checkBox1";
     this.checkBox1.Size     = new System.Drawing.Size(86, 24);
     this.checkBox1.TabIndex = 20;
     this.checkBox1.Text     = "Output file";
     this.checkBox1.UseVisualStyleBackColor = true;
     //
     // panel1
     //
     this.panel1.Controls.Add(this.listView1);
     this.panel1.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.panel1.Location = new System.Drawing.Point(0, 0);
     this.panel1.Name     = "panel1";
     this.panel1.Size     = new System.Drawing.Size(724, 366);
     this.panel1.TabIndex = 21;
     //
     // panel2
     //
     this.panel2.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None;
     this.panel2.BorderStyle           = System.Windows.Forms.BorderStyle.FixedSingle;
     this.panel2.Controls.Add(this.button1);
     this.panel2.Controls.Add(this.button6);
     this.panel2.Controls.Add(this.button2);
     this.panel2.Controls.Add(this.button3);
     this.panel2.Controls.Add(this.button4);
     this.panel2.Dock     = System.Windows.Forms.DockStyle.Right;
     this.panel2.Location = new System.Drawing.Point(677, 0);
     this.panel2.Name     = "panel2";
     this.panel2.Size     = new System.Drawing.Size(47, 366);
     this.panel2.TabIndex = 22;
     //
     // panel3
     //
     this.panel3.Controls.Add(this.label2);
     this.panel3.Controls.Add(this.label1);
     this.panel3.Controls.Add(this.button7);
     this.panel3.Controls.Add(this.label3);
     this.panel3.Controls.Add(this.monthCalendar1);
     this.panel3.Controls.Add(this.checkBox1);
     this.panel3.Controls.Add(this.dateTimePicker1);
     this.panel3.Controls.Add(this.button5);
     this.panel3.Controls.Add(this.dateTimePicker2);
     this.panel3.Controls.Add(this.label4);
     this.panel3.Controls.Add(this.monthCalendar2);
     this.panel3.Dock     = System.Windows.Forms.DockStyle.Bottom;
     this.panel3.Location = new System.Drawing.Point(0, 155);
     this.panel3.Name     = "panel3";
     this.panel3.Size     = new System.Drawing.Size(677, 211);
     this.panel3.TabIndex = 23;
     //
     // label2
     //
     this.label2.ForeColor = System.Drawing.SystemColors.Highlight;
     this.label2.Location  = new System.Drawing.Point(538, 181);
     this.label2.Name      = "label2";
     this.label2.Size      = new System.Drawing.Size(122, 17);
     this.label2.TabIndex  = 23;
     this.label2.Text      = "mailto:[email protected]";
     //
     // label1
     //
     this.label1.ForeColor = System.Drawing.SystemColors.Highlight;
     this.label1.Location  = new System.Drawing.Point(538, 166);
     this.label1.Name      = "label1";
     this.label1.Size      = new System.Drawing.Size(100, 15);
     this.label1.TabIndex  = 22;
     this.label1.Text      = "http://www.ema.ru";
     //
     // button7
     //
     this.button7.Location = new System.Drawing.Point(560, 44);
     this.button7.Name     = "button7";
     this.button7.Size     = new System.Drawing.Size(85, 23);
     this.button7.TabIndex = 21;
     this.button7.Text     = "set [start;end]";
     this.button7.UseVisualStyleBackColor = true;
     this.button7.Click += new System.EventHandler(this.Button7Click);
     //
     // backgroundWorker1
     //
     this.backgroundWorker1.WorkerReportsProgress      = true;
     this.backgroundWorker1.WorkerSupportsCancellation = true;
     this.backgroundWorker1.DoWork             += new System.ComponentModel.DoWorkEventHandler(this.BackgroundWorker1DoWork);
     this.backgroundWorker1.ProgressChanged    += new System.ComponentModel.ProgressChangedEventHandler(this.BackgroundWorker1ProgressChanged);
     this.backgroundWorker1.RunWorkerCompleted += new System.ComponentModel.RunWorkerCompletedEventHandler(this.BackgroundWorker1RunWorkerCompleted);
     //
     // toolStripProgressBar1
     //
     this.toolStripProgressBar1.Name = "toolStripProgressBar1";
     this.toolStripProgressBar1.Size = new System.Drawing.Size(100, 16);
     //
     // MainForm
     //
     this.AllowDrop           = true;
     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
     this.AutoScaleMode       = System.Windows.Forms.AutoScaleMode.Font;
     this.ClientSize          = new System.Drawing.Size(724, 554);
     this.Controls.Add(this.panel3);
     this.Controls.Add(this.panel2);
     this.Controls.Add(this.panel1);
     this.Controls.Add(this.richTextBox1);
     this.Controls.Add(this.statusStrip1);
     this.Name  = "MainForm";
     this.Text  = "ArcWrite";
     this.Load += new System.EventHandler(this.MainFormLoad);
     this.statusStrip1.ResumeLayout(false);
     this.statusStrip1.PerformLayout();
     this.panel1.ResumeLayout(false);
     this.panel2.ResumeLayout(false);
     this.panel3.ResumeLayout(false);
     this.ResumeLayout(false);
     this.PerformLayout();
 }
예제 #43
0
 /// <summary>
 /// This method is required for Windows Forms designer support.
 /// Do not change the method contents inside the source code editor. The Forms designer might
 /// not be able to load this method if it was changed manually.
 /// </summary>
 private void InitializeComponent()
 {
     this.components = new System.ComponentModel.Container();
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(MainForm));
     this.splitContainer1       = new System.Windows.Forms.SplitContainer();
     this.splitContainer2       = new System.Windows.Forms.SplitContainer();
     this.splitContainer3       = new System.Windows.Forms.SplitContainer();
     this.treeView1             = new System.Windows.Forms.TreeView();
     this.propertyGrid1         = new System.Windows.Forms.PropertyGrid();
     this.toolStrip1            = new System.Windows.Forms.ToolStrip();
     this.toolStripSplitButton1 = new System.Windows.Forms.ToolStripSplitButton();
     this.vertexPointOverlayToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.wireframeOverlayToolStripMenuItem   = new System.Windows.Forms.ToolStripMenuItem();
     this.backfaceCullingToolStripMenuItem    = new System.Windows.Forms.ToolStripMenuItem();
     this.tbtn3DView                 = new System.Windows.Forms.ToolStripButton();
     this.tbtnUVView                 = new System.Windows.Forms.ToolStripButton();
     this.menuStrip1                 = new System.Windows.Forms.MenuStrip();
     this.fileToolStripMenuItem      = new System.Windows.Forms.ToolStripMenuItem();
     this.loadToolStripMenuItem      = new System.Windows.Forms.ToolStripMenuItem();
     this.toolStripSeparator1        = new System.Windows.Forms.ToolStripSeparator();
     this.exitToolStripMenuItem      = new System.Windows.Forms.ToolStripMenuItem();
     this.optionsToolStripMenuItem   = new System.Windows.Forms.ToolStripMenuItem();
     this.logWindowToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.richTextBox1               = new System.Windows.Forms.RichTextBox();
     this.CaffFileContextMenu        = new System.Windows.Forms.ContextMenuStrip(this.components);
     this.unloadToolStripMenuItem    = new System.Windows.Forms.ToolStripMenuItem();
     this.exportToolStripMenuItem    = new System.Windows.Forms.ToolStripMenuItem();
     this.vertexBatchContextStrip    = new System.Windows.Forms.ContextMenuStrip(this.components);
     this.setDefaultTexCoordScaleToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.textureContextStrip        = new System.Windows.Forms.ContextMenuStrip(this.components);
     this.recropToolStripMenuItem    = new System.Windows.Forms.ToolStripMenuItem();
     this.dumpToXprToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     ((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.Panel1.SuspendLayout();
     this.splitContainer2.Panel2.SuspendLayout();
     this.splitContainer2.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.splitContainer3)).BeginInit();
     this.splitContainer3.Panel1.SuspendLayout();
     this.splitContainer3.Panel2.SuspendLayout();
     this.splitContainer3.SuspendLayout();
     this.toolStrip1.SuspendLayout();
     this.menuStrip1.SuspendLayout();
     this.CaffFileContextMenu.SuspendLayout();
     this.vertexBatchContextStrip.SuspendLayout();
     this.textureContextStrip.SuspendLayout();
     this.SuspendLayout();
     //
     // splitContainer1
     //
     this.splitContainer1.Dock        = System.Windows.Forms.DockStyle.Fill;
     this.splitContainer1.Location    = new System.Drawing.Point(0, 0);
     this.splitContainer1.Name        = "splitContainer1";
     this.splitContainer1.Orientation = System.Windows.Forms.Orientation.Horizontal;
     //
     // splitContainer1.Panel1
     //
     this.splitContainer1.Panel1.Controls.Add(this.splitContainer2);
     this.splitContainer1.Panel1.Controls.Add(this.menuStrip1);
     //
     // splitContainer1.Panel2
     //
     this.splitContainer1.Panel2.BackColor = System.Drawing.SystemColors.ActiveBorder;
     this.splitContainer1.Panel2.Controls.Add(this.richTextBox1);
     this.splitContainer1.Panel2Collapsed  = true;
     this.splitContainer1.Size             = new System.Drawing.Size(883, 533);
     this.splitContainer1.SplitterDistance = 388;
     this.splitContainer1.TabIndex         = 0;
     //
     // splitContainer2
     //
     this.splitContainer2.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.splitContainer2.Location = new System.Drawing.Point(0, 24);
     this.splitContainer2.Name     = "splitContainer2";
     //
     // splitContainer2.Panel1
     //
     this.splitContainer2.Panel1.Controls.Add(this.splitContainer3);
     //
     // splitContainer2.Panel2
     //
     this.splitContainer2.Panel2.Controls.Add(this.toolStrip1);
     this.splitContainer2.Size             = new System.Drawing.Size(883, 509);
     this.splitContainer2.SplitterDistance = 294;
     this.splitContainer2.TabIndex         = 2;
     //
     // splitContainer3
     //
     this.splitContainer3.Dock        = System.Windows.Forms.DockStyle.Fill;
     this.splitContainer3.Location    = new System.Drawing.Point(0, 0);
     this.splitContainer3.Name        = "splitContainer3";
     this.splitContainer3.Orientation = System.Windows.Forms.Orientation.Horizontal;
     //
     // splitContainer3.Panel1
     //
     this.splitContainer3.Panel1.Controls.Add(this.treeView1);
     //
     // splitContainer3.Panel2
     //
     this.splitContainer3.Panel2.Controls.Add(this.propertyGrid1);
     this.splitContainer3.Size             = new System.Drawing.Size(294, 509);
     this.splitContainer3.SplitterDistance = 245;
     this.splitContainer3.TabIndex         = 0;
     //
     // treeView1
     //
     this.treeView1.Dock            = System.Windows.Forms.DockStyle.Fill;
     this.treeView1.Location        = new System.Drawing.Point(0, 0);
     this.treeView1.Name            = "treeView1";
     this.treeView1.Size            = new System.Drawing.Size(294, 245);
     this.treeView1.TabIndex        = 0;
     this.treeView1.AfterSelect    += new System.Windows.Forms.TreeViewEventHandler(this.TreeView1AfterSelect);
     this.treeView1.NodeMouseClick += new System.Windows.Forms.TreeNodeMouseClickEventHandler(this.TreeView1NodeMouseClick);
     //
     // propertyGrid1
     //
     this.propertyGrid1.Dock      = System.Windows.Forms.DockStyle.Fill;
     this.propertyGrid1.LineColor = System.Drawing.SystemColors.ControlDark;
     this.propertyGrid1.Location  = new System.Drawing.Point(0, 0);
     this.propertyGrid1.Name      = "propertyGrid1";
     this.propertyGrid1.Size      = new System.Drawing.Size(294, 260);
     this.propertyGrid1.TabIndex  = 0;
     //
     // toolStrip1
     //
     this.toolStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
         this.toolStripSplitButton1,
         this.tbtn3DView,
         this.tbtnUVView
     });
     this.toolStrip1.Location = new System.Drawing.Point(0, 0);
     this.toolStrip1.Name     = "toolStrip1";
     this.toolStrip1.Size     = new System.Drawing.Size(585, 25);
     this.toolStrip1.TabIndex = 0;
     this.toolStrip1.Text     = "toolStrip1";
     //
     // toolStripSplitButton1
     //
     this.toolStripSplitButton1.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Text;
     this.toolStripSplitButton1.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
         this.vertexPointOverlayToolStripMenuItem,
         this.wireframeOverlayToolStripMenuItem,
         this.backfaceCullingToolStripMenuItem
     });
     this.toolStripSplitButton1.Image = ((System.Drawing.Image)(resources.GetObject("toolStripSplitButton1.Image")));
     this.toolStripSplitButton1.ImageTransparentColor = System.Drawing.Color.Magenta;
     this.toolStripSplitButton1.Name = "toolStripSplitButton1";
     this.toolStripSplitButton1.Size = new System.Drawing.Size(65, 22);
     this.toolStripSplitButton1.Text = "Options";
     //
     // vertexPointOverlayToolStripMenuItem
     //
     this.vertexPointOverlayToolStripMenuItem.CheckOnClick    = true;
     this.vertexPointOverlayToolStripMenuItem.Name            = "vertexPointOverlayToolStripMenuItem";
     this.vertexPointOverlayToolStripMenuItem.Size            = new System.Drawing.Size(179, 22);
     this.vertexPointOverlayToolStripMenuItem.Text            = "Vertex Point Overlay";
     this.vertexPointOverlayToolStripMenuItem.CheckedChanged += new System.EventHandler(this.VertexPointOverlayToolStripMenuItemCheckedChanged);
     //
     // wireframeOverlayToolStripMenuItem
     //
     this.wireframeOverlayToolStripMenuItem.CheckOnClick    = true;
     this.wireframeOverlayToolStripMenuItem.Name            = "wireframeOverlayToolStripMenuItem";
     this.wireframeOverlayToolStripMenuItem.Size            = new System.Drawing.Size(179, 22);
     this.wireframeOverlayToolStripMenuItem.Text            = "Wireframe Overlay";
     this.wireframeOverlayToolStripMenuItem.CheckedChanged += new System.EventHandler(this.WireframeOverlayToolStripMenuItemCheckedChanged);
     //
     // backfaceCullingToolStripMenuItem
     //
     this.backfaceCullingToolStripMenuItem.CheckOnClick    = true;
     this.backfaceCullingToolStripMenuItem.Name            = "backfaceCullingToolStripMenuItem";
     this.backfaceCullingToolStripMenuItem.Size            = new System.Drawing.Size(179, 22);
     this.backfaceCullingToolStripMenuItem.Text            = "Backface Culling";
     this.backfaceCullingToolStripMenuItem.CheckedChanged += new System.EventHandler(this.BackfaceCullingToolStripMenuItemCheckedChanged);
     //
     // tbtn3DView
     //
     this.tbtn3DView.Checked               = true;
     this.tbtn3DView.CheckOnClick          = true;
     this.tbtn3DView.CheckState            = System.Windows.Forms.CheckState.Checked;
     this.tbtn3DView.DisplayStyle          = System.Windows.Forms.ToolStripItemDisplayStyle.Text;
     this.tbtn3DView.Image                 = ((System.Drawing.Image)(resources.GetObject("tbtn3DView.Image")));
     this.tbtn3DView.ImageTransparentColor = System.Drawing.Color.Magenta;
     this.tbtn3DView.Name            = "tbtn3DView";
     this.tbtn3DView.Size            = new System.Drawing.Size(25, 22);
     this.tbtn3DView.Text            = "3D";
     this.tbtn3DView.CheckedChanged += new System.EventHandler(this.Tbtn3DViewCheckedChanged);
     //
     // tbtnUVView
     //
     this.tbtnUVView.CheckOnClick          = true;
     this.tbtnUVView.DisplayStyle          = System.Windows.Forms.ToolStripItemDisplayStyle.Text;
     this.tbtnUVView.Image                 = ((System.Drawing.Image)(resources.GetObject("tbtnUVView.Image")));
     this.tbtnUVView.ImageTransparentColor = System.Drawing.Color.Magenta;
     this.tbtnUVView.Name            = "tbtnUVView";
     this.tbtnUVView.Size            = new System.Drawing.Size(26, 22);
     this.tbtnUVView.Text            = "UV";
     this.tbtnUVView.CheckedChanged += new System.EventHandler(this.TbtnUVViewCheckedChanged);
     //
     // menuStrip1
     //
     this.menuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
         this.fileToolStripMenuItem,
         this.optionsToolStripMenuItem
     });
     this.menuStrip1.Location = new System.Drawing.Point(0, 0);
     this.menuStrip1.Name     = "menuStrip1";
     this.menuStrip1.Size     = new System.Drawing.Size(883, 24);
     this.menuStrip1.TabIndex = 3;
     this.menuStrip1.Text     = "menuStrip1";
     //
     // fileToolStripMenuItem
     //
     this.fileToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
         this.loadToolStripMenuItem,
         this.toolStripSeparator1,
         this.exitToolStripMenuItem
     });
     this.fileToolStripMenuItem.Name = "fileToolStripMenuItem";
     this.fileToolStripMenuItem.Size = new System.Drawing.Size(37, 20);
     this.fileToolStripMenuItem.Text = "File";
     //
     // loadToolStripMenuItem
     //
     this.loadToolStripMenuItem.Name   = "loadToolStripMenuItem";
     this.loadToolStripMenuItem.Size   = new System.Drawing.Size(100, 22);
     this.loadToolStripMenuItem.Text   = "Load";
     this.loadToolStripMenuItem.Click += new System.EventHandler(this.LoadToolStripMenuItemClick);
     //
     // toolStripSeparator1
     //
     this.toolStripSeparator1.Name = "toolStripSeparator1";
     this.toolStripSeparator1.Size = new System.Drawing.Size(97, 6);
     //
     // exitToolStripMenuItem
     //
     this.exitToolStripMenuItem.Name = "exitToolStripMenuItem";
     this.exitToolStripMenuItem.Size = new System.Drawing.Size(100, 22);
     this.exitToolStripMenuItem.Text = "Exit";
     //
     // optionsToolStripMenuItem
     //
     this.optionsToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
         this.logWindowToolStripMenuItem
     });
     this.optionsToolStripMenuItem.Name = "optionsToolStripMenuItem";
     this.optionsToolStripMenuItem.Size = new System.Drawing.Size(61, 20);
     this.optionsToolStripMenuItem.Text = "Options";
     //
     // logWindowToolStripMenuItem
     //
     this.logWindowToolStripMenuItem.CheckOnClick    = true;
     this.logWindowToolStripMenuItem.Name            = "logWindowToolStripMenuItem";
     this.logWindowToolStripMenuItem.Size            = new System.Drawing.Size(141, 22);
     this.logWindowToolStripMenuItem.Text            = "Log Window";
     this.logWindowToolStripMenuItem.CheckedChanged += new System.EventHandler(this.LogWindowToolStripMenuItemCheckedChanged);
     //
     // richTextBox1
     //
     this.richTextBox1.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.richTextBox1.Location = new System.Drawing.Point(0, 0);
     this.richTextBox1.Name     = "richTextBox1";
     this.richTextBox1.Size     = new System.Drawing.Size(150, 46);
     this.richTextBox1.TabIndex = 0;
     this.richTextBox1.Text     = "";
     //
     // CaffFileContextMenu
     //
     this.CaffFileContextMenu.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
         this.unloadToolStripMenuItem,
         this.exportToolStripMenuItem
     });
     this.CaffFileContextMenu.Name = "CaffFileContextMenu";
     this.CaffFileContextMenu.Size = new System.Drawing.Size(113, 48);
     //
     // unloadToolStripMenuItem
     //
     this.unloadToolStripMenuItem.Name   = "unloadToolStripMenuItem";
     this.unloadToolStripMenuItem.Size   = new System.Drawing.Size(112, 22);
     this.unloadToolStripMenuItem.Text   = "Unload";
     this.unloadToolStripMenuItem.Click += new System.EventHandler(this.UnloadToolStripMenuItemClick);
     //
     // exportToolStripMenuItem
     //
     this.exportToolStripMenuItem.Name   = "exportToolStripMenuItem";
     this.exportToolStripMenuItem.Size   = new System.Drawing.Size(112, 22);
     this.exportToolStripMenuItem.Text   = "Export";
     this.exportToolStripMenuItem.Click += new System.EventHandler(this.ExportToolStripMenuItemClick);
     //
     // vertexBatchContextStrip
     //
     this.vertexBatchContextStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
         this.setDefaultTexCoordScaleToolStripMenuItem
     });
     this.vertexBatchContextStrip.Name = "contextMenuStrip1";
     this.vertexBatchContextStrip.Size = new System.Drawing.Size(215, 26);
     //
     // setDefaultTexCoordScaleToolStripMenuItem
     //
     this.setDefaultTexCoordScaleToolStripMenuItem.Name   = "setDefaultTexCoordScaleToolStripMenuItem";
     this.setDefaultTexCoordScaleToolStripMenuItem.Size   = new System.Drawing.Size(214, 22);
     this.setDefaultTexCoordScaleToolStripMenuItem.Text   = "Set Default TexCoord Scale";
     this.setDefaultTexCoordScaleToolStripMenuItem.Click += new System.EventHandler(this.SetDefaultTexCoordScaleToolStripMenuItemClick);
     //
     // textureContextStrip
     //
     this.textureContextStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
         this.recropToolStripMenuItem,
         this.dumpToXprToolStripMenuItem
     });
     this.textureContextStrip.Name = "textureContextStrip";
     this.textureContextStrip.Size = new System.Drawing.Size(139, 48);
     //
     // recropToolStripMenuItem
     //
     this.recropToolStripMenuItem.Name   = "recropToolStripMenuItem";
     this.recropToolStripMenuItem.Size   = new System.Drawing.Size(138, 22);
     this.recropToolStripMenuItem.Text   = "Recrop";
     this.recropToolStripMenuItem.Click += new System.EventHandler(this.RecropToolStripMenuItemClick);
     //
     // dumpToXprToolStripMenuItem
     //
     this.dumpToXprToolStripMenuItem.Name   = "dumpToXprToolStripMenuItem";
     this.dumpToXprToolStripMenuItem.Size   = new System.Drawing.Size(138, 22);
     this.dumpToXprToolStripMenuItem.Text   = "DumpToXpr";
     this.dumpToXprToolStripMenuItem.Click += new System.EventHandler(this.DumpToXprToolStripMenuItemClick);
     //
     // MainForm
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
     this.AutoScaleMode       = System.Windows.Forms.AutoScaleMode.Font;
     this.ClientSize          = new System.Drawing.Size(883, 533);
     this.Controls.Add(this.splitContainer1);
     this.Name         = "MainForm";
     this.Text         = "RareView";
     this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.MainFormFormClosing);
     this.splitContainer1.Panel1.ResumeLayout(false);
     this.splitContainer1.Panel1.PerformLayout();
     this.splitContainer1.Panel2.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).EndInit();
     this.splitContainer1.ResumeLayout(false);
     this.splitContainer2.Panel1.ResumeLayout(false);
     this.splitContainer2.Panel2.ResumeLayout(false);
     this.splitContainer2.Panel2.PerformLayout();
     ((System.ComponentModel.ISupportInitialize)(this.splitContainer2)).EndInit();
     this.splitContainer2.ResumeLayout(false);
     this.splitContainer3.Panel1.ResumeLayout(false);
     this.splitContainer3.Panel2.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.splitContainer3)).EndInit();
     this.splitContainer3.ResumeLayout(false);
     this.toolStrip1.ResumeLayout(false);
     this.toolStrip1.PerformLayout();
     this.menuStrip1.ResumeLayout(false);
     this.menuStrip1.PerformLayout();
     this.CaffFileContextMenu.ResumeLayout(false);
     this.vertexBatchContextStrip.ResumeLayout(false);
     this.textureContextStrip.ResumeLayout(false);
     this.ResumeLayout(false);
 }
예제 #44
0
 /// <summary>
 /// This method is required for Windows Forms designer support.
 /// Do not change the method contents inside the source code editor. The Forms designer might
 /// not be able to load this method if it was changed manually.
 /// </summary>
 private void InitializeComponent()
 {
     this.button1      = new System.Windows.Forms.Button();
     this.richTextBox1 = new System.Windows.Forms.RichTextBox();
     this.textBox1     = new System.Windows.Forms.TextBox();
     this.button2      = new System.Windows.Forms.Button();
     this.button3      = new System.Windows.Forms.Button();
     this.checkBox2    = new System.Windows.Forms.CheckBox();
     this.SuspendLayout();
     //
     // button1
     //
     this.button1.Location = new System.Drawing.Point(372, 13);
     this.button1.Name     = "button1";
     this.button1.Size     = new System.Drawing.Size(77, 23);
     this.button1.TabIndex = 0;
     this.button1.Text     = "browse";
     this.button1.UseVisualStyleBackColor = true;
     this.button1.Click += new System.EventHandler(this.Button1Click);
     //
     // richTextBox1
     //
     this.richTextBox1.Location = new System.Drawing.Point(12, 54);
     this.richTextBox1.Name     = "richTextBox1";
     this.richTextBox1.Size     = new System.Drawing.Size(696, 246);
     this.richTextBox1.TabIndex = 2;
     this.richTextBox1.Text     = "";
     //
     // textBox1
     //
     this.textBox1.Location = new System.Drawing.Point(12, 14);
     this.textBox1.Name     = "textBox1";
     this.textBox1.Size     = new System.Drawing.Size(354, 21);
     this.textBox1.TabIndex = 3;
     //
     // button2
     //
     this.button2.Enabled  = false;
     this.button2.Location = new System.Drawing.Point(472, 12);
     this.button2.Name     = "button2";
     this.button2.Size     = new System.Drawing.Size(75, 23);
     this.button2.TabIndex = 4;
     this.button2.Text     = "-> HTML";
     this.button2.UseVisualStyleBackColor = true;
     this.button2.Click += new System.EventHandler(this.Button2Click);
     //
     // button3
     //
     this.button3.Enabled  = false;
     this.button3.Location = new System.Drawing.Point(633, 11);
     this.button3.Name     = "button3";
     this.button3.Size     = new System.Drawing.Size(75, 23);
     this.button3.TabIndex = 5;
     this.button3.Text     = "-> JPEG";
     this.button3.UseVisualStyleBackColor = true;
     this.button3.Click += new System.EventHandler(this.Button3Click);
     //
     // checkBox2
     //
     this.checkBox2.Checked    = true;
     this.checkBox2.CheckState = System.Windows.Forms.CheckState.Checked;
     this.checkBox2.Location   = new System.Drawing.Point(582, 12);
     this.checkBox2.Name       = "checkBox2";
     this.checkBox2.Size       = new System.Drawing.Size(50, 24);
     this.checkBox2.TabIndex   = 6;
     this.checkBox2.Text       = "auto";
     this.checkBox2.UseVisualStyleBackColor = true;
     //
     // MainForm
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
     this.AutoScaleMode       = System.Windows.Forms.AutoScaleMode.Font;
     this.ClientSize          = new System.Drawing.Size(720, 312);
     this.Controls.Add(this.checkBox2);
     this.Controls.Add(this.button3);
     this.Controls.Add(this.button2);
     this.Controls.Add(this.textBox1);
     this.Controls.Add(this.richTextBox1);
     this.Controls.Add(this.button1);
     this.Name = "MainForm";
     this.Text = "Converter";
     this.ResumeLayout(false);
     this.PerformLayout();
 }
예제 #45
0
 public static string ConvertRtfToString(string rtf)
 {
     System.Windows.Forms.RichTextBox richTextBox = new System.Windows.Forms.RichTextBox();
     richTextBox.Rtf = rtf;
     return(richTextBox.Text);
 }
예제 #46
0
        public override void LoadSubtitle(Subtitle subtitle, List <string> lines, string fileName)
        {
            _errorCount = 0;
            var sb = new StringBuilder();

            foreach (string line in lines)
            {
                sb.AppendLine(line);
            }

            string rtf = sb.ToString().Trim();

            if (!rtf.StartsWith("{\\rtf"))
            {
                return;
            }

            string text  = string.Empty;
            var    rtBox = new System.Windows.Forms.RichTextBox();

            try
            {
                rtBox.Rtf = rtf;
                text      = rtBox.Text.Replace("\r\n", "\n");
            }
            catch (Exception exception)
            {
                System.Diagnostics.Debug.WriteLine(exception.Message);
                return;
            }
            finally
            {
                rtBox.Dispose();
            }

            lines = new List <string>();
            foreach (string line in text.Split('\n'))
            {
                lines.Add(line);
            }

            _errorCount = 0;
            Paragraph p = null;

            foreach (string line in lines)
            {
                string s = line.TrimEnd();
                if (RegexTimeCode1.IsMatch(s))
                {
                    try
                    {
                        if (p != null)
                        {
                            subtitle.Paragraphs.Add(p);
                        }
                        string[] arr = s.Split('\t');
                        if (arr.Length > 2)
                        {
                            p = new Paragraph(DecodeTimeCode(arr[1]), new TimeCode(0, 0, 0, 0), arr[2].Trim());
                        }
                        else
                        {
                            p = new Paragraph(DecodeTimeCode(arr[1]), new TimeCode(0, 0, 0, 0), string.Empty);
                        }
                    }
                    catch
                    {
                        _errorCount++;
                        p = null;
                    }
                }
                else if (s.StartsWith("\t\t"))
                {
                    if (p != null)
                    {
                        p.Text = p.Text + Environment.NewLine + s.Trim();
                    }
                }
                else if (!string.IsNullOrWhiteSpace(s))
                {
                    _errorCount++;
                }
            }
            if (p != null)
            {
                subtitle.Paragraphs.Add(p);
            }

            for (int j = 0; j < subtitle.Paragraphs.Count - 1; j++)
            {
                p = subtitle.Paragraphs[j];
                Paragraph next = subtitle.Paragraphs[j + 1];
                p.EndTime.TotalMilliseconds = next.StartTime.TotalMilliseconds - Configuration.Settings.General.MinimumMillisecondsBetweenLines;
            }
            if (subtitle.Paragraphs.Count > 0)
            {
                p = subtitle.Paragraphs[subtitle.Paragraphs.Count - 1];
                p.EndTime.TotalMilliseconds = p.StartTime.TotalMilliseconds + Utilities.GetOptimalDisplayMilliseconds(p.Text);
            }
            subtitle.RemoveEmptyLines();
            subtitle.Renumber();
        }
예제 #47
0
 /// <summary>
 /// This method is required for Windows Forms designer support.
 /// Do not change the method contents inside the source code editor. The Forms designer might
 /// not be able to load this method if it was changed manually.
 /// </summary>
 private void InitializeComponent()
 {
     this.openFileDialog   = new System.Windows.Forms.OpenFileDialog();
     this.buttonLoad       = new System.Windows.Forms.Button();
     this.richTextBoxInput = new System.Windows.Forms.RichTextBox();
     this.comboBoxOptions  = new System.Windows.Forms.ComboBox();
     this.labelOptions     = new System.Windows.Forms.Label();
     this.SuspendLayout();
     //
     // buttonLoad
     //
     this.buttonLoad.Location = new System.Drawing.Point(13, 251);
     this.buttonLoad.Name     = "buttonLoad";
     this.buttonLoad.Size     = new System.Drawing.Size(310, 23);
     this.buttonLoad.TabIndex = 0;
     this.buttonLoad.Text     = "Cargar";
     this.buttonLoad.UseVisualStyleBackColor = true;
     this.buttonLoad.Click += new System.EventHandler(this.ButtonLoadClick);
     //
     // richTextBoxInput
     //
     this.richTextBoxInput.Location = new System.Drawing.Point(13, 13);
     this.richTextBoxInput.Name     = "richTextBoxInput";
     this.richTextBoxInput.Size     = new System.Drawing.Size(310, 232);
     this.richTextBoxInput.TabIndex = 1;
     this.richTextBoxInput.Text     = "";
     //
     // comboBoxOptions
     //
     this.comboBoxOptions.DropDownStyle     = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.comboBoxOptions.FormattingEnabled = true;
     this.comboBoxOptions.Location          = new System.Drawing.Point(76, 280);
     this.comboBoxOptions.Name     = "comboBoxOptions";
     this.comboBoxOptions.Size     = new System.Drawing.Size(247, 21);
     this.comboBoxOptions.TabIndex = 2;
     this.comboBoxOptions.SelectionChangeCommitted += new System.EventHandler(this.ComboBoxOptionsSelectionChangeCommitted);
     //
     // labelOptions
     //
     this.labelOptions.Location = new System.Drawing.Point(12, 283);
     this.labelOptions.Name     = "labelOptions";
     this.labelOptions.Size     = new System.Drawing.Size(58, 23);
     this.labelOptions.TabIndex = 3;
     this.labelOptions.Text     = "Opciones";
     //
     // MainForm
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
     this.AutoScaleMode       = System.Windows.Forms.AutoScaleMode.Font;
     this.ClientSize          = new System.Drawing.Size(339, 352);
     this.Controls.Add(this.labelOptions);
     this.Controls.Add(this.comboBoxOptions);
     this.Controls.Add(this.richTextBoxInput);
     this.Controls.Add(this.buttonLoad);
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
     this.MaximizeBox     = false;
     this.Name            = "MainForm";
     this.ShowIcon        = false;
     this.StartPosition   = System.Windows.Forms.FormStartPosition.CenterScreen;
     this.Text            = "ejerciciosRegex";
     this.Load           += new System.EventHandler(this.MainFormLoad);
     this.ResumeLayout(false);
 }
예제 #48
0
 /// <summary>
 /// This method is required for Windows Forms designer support.
 /// Do not change the method contents inside the source code editor. The Forms designer might
 /// not be able to load this method if it was changed manually.
 /// </summary>
 private void InitializeComponent()
 {
     this.richTextBox1 = new System.Windows.Forms.RichTextBox();
     this.label1       = new System.Windows.Forms.Label();
     this.listBox1     = new System.Windows.Forms.ListBox();
     this.btnMedia     = new System.Windows.Forms.Button();
     this.listBox2     = new System.Windows.Forms.ListBox();
     this.label2       = new System.Windows.Forms.Label();
     this.btnListar    = new System.Windows.Forms.Button();
     this.richTextBox2 = new System.Windows.Forms.RichTextBox();
     this.btnGravar    = new System.Windows.Forms.Button();
     this.SuspendLayout();
     //
     // richTextBox1
     //
     this.richTextBox1.Location = new System.Drawing.Point(624, 12);
     this.richTextBox1.Name     = "richTextBox1";
     this.richTextBox1.Size     = new System.Drawing.Size(184, 147);
     this.richTextBox1.TabIndex = 0;
     this.richTextBox1.Text     = "";
     //
     // label1
     //
     this.label1.AutoSize = true;
     this.label1.Font     = new System.Drawing.Font("Microsoft Sans Serif", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.label1.Location = new System.Drawing.Point(101, 19);
     this.label1.Name     = "label1";
     this.label1.Size     = new System.Drawing.Size(118, 17);
     this.label1.TabIndex = 1;
     this.label1.Text     = "Frota de Veículos";
     this.label1.Click   += new System.EventHandler(this.Label1Click);
     //
     // listBox1
     //
     this.listBox1.FormattingEnabled = true;
     this.listBox1.Location          = new System.Drawing.Point(12, 47);
     this.listBox1.Name     = "listBox1";
     this.listBox1.Size     = new System.Drawing.Size(314, 173);
     this.listBox1.TabIndex = 2;
     //
     // btnMedia
     //
     this.btnMedia.ForeColor = System.Drawing.SystemColors.ActiveCaptionText;
     this.btnMedia.Location  = new System.Drawing.Point(13, 227);
     this.btnMedia.Name      = "btnMedia";
     this.btnMedia.Size      = new System.Drawing.Size(75, 23);
     this.btnMedia.TabIndex  = 3;
     this.btnMedia.Text      = "Listar";
     this.btnMedia.UseVisualStyleBackColor = true;
     this.btnMedia.Click += new System.EventHandler(this.BtnMediaClick);
     //
     // listBox2
     //
     this.listBox2.FormattingEnabled = true;
     this.listBox2.Location          = new System.Drawing.Point(332, 138);
     this.listBox2.Name     = "listBox2";
     this.listBox2.Size     = new System.Drawing.Size(216, 82);
     this.listBox2.TabIndex = 4;
     //
     // label2
     //
     this.label2.AutoSize = true;
     this.label2.Font     = new System.Drawing.Font("Microsoft Sans Serif", 8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.label2.Location = new System.Drawing.Point(332, 122);
     this.label2.Name     = "label2";
     this.label2.Size     = new System.Drawing.Size(171, 13);
     this.label2.TabIndex = 5;
     this.label2.Text     = "Veiculos que mais gatam por Km/L";
     //
     // btnListar
     //
     this.btnListar.ForeColor = System.Drawing.SystemColors.ActiveCaptionText;
     this.btnListar.Location  = new System.Drawing.Point(332, 226);
     this.btnListar.Name      = "btnListar";
     this.btnListar.Size      = new System.Drawing.Size(75, 23);
     this.btnListar.TabIndex  = 6;
     this.btnListar.Text      = "Listar";
     this.btnListar.UseVisualStyleBackColor = true;
     this.btnListar.Click += new System.EventHandler(this.BtnListarClick);
     //
     // richTextBox2
     //
     this.richTextBox2.Location = new System.Drawing.Point(624, 176);
     this.richTextBox2.Name     = "richTextBox2";
     this.richTextBox2.Size     = new System.Drawing.Size(184, 147);
     this.richTextBox2.TabIndex = 7;
     this.richTextBox2.Text     = "";
     //
     // btnGravar
     //
     this.btnGravar.ForeColor = System.Drawing.SystemColors.ActiveCaptionText;
     this.btnGravar.Location  = new System.Drawing.Point(413, 226);
     this.btnGravar.Name      = "btnGravar";
     this.btnGravar.Size      = new System.Drawing.Size(75, 23);
     this.btnGravar.TabIndex  = 8;
     this.btnGravar.Text      = "Gravar";
     this.btnGravar.UseVisualStyleBackColor = true;
     this.btnGravar.Click += new System.EventHandler(this.BtnGravarClick);
     //
     // MainForm
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
     this.AutoScaleMode       = System.Windows.Forms.AutoScaleMode.Font;
     this.BackColor           = System.Drawing.SystemColors.Highlight;
     this.ClientSize          = new System.Drawing.Size(586, 276);
     this.Controls.Add(this.btnGravar);
     this.Controls.Add(this.richTextBox2);
     this.Controls.Add(this.btnListar);
     this.Controls.Add(this.label2);
     this.Controls.Add(this.listBox2);
     this.Controls.Add(this.btnMedia);
     this.Controls.Add(this.listBox1);
     this.Controls.Add(this.label1);
     this.Controls.Add(this.richTextBox1);
     this.ForeColor = System.Drawing.SystemColors.ButtonHighlight;
     this.Name      = "MainForm";
     this.Text      = "mediaFrotaVeiculos";
     this.Load     += new System.EventHandler(this.MainFormLoad);
     this.ResumeLayout(false);
     this.PerformLayout();
 }
예제 #49
0
        public static void excelReadNCheck(string szPath, OperatorCheckFunc checkFunc, ref System.Windows.Forms.RichTextBox rInfoOutput)
        {
            string szExcelFilePath = szPath.Trim();

            Excel.Application excel = new Excel.Application();
            Excel.Workbooks   wb    = excel.Workbooks;
            excel.Visible = false;//设置调用引用的 Excel文件是否可见
            excel.Application.DisplayAlerts = false;
            //wb = excel.Workbooks.Open(ExcelFilePath);
            Excel.Workbook rWbk        = wb.Add(szExcelFilePath);
            Excel.Sheets   rWorkSheets = rWbk.Worksheets;
            try
            {//每个工作表都查 索引从1开始
                int[] rColNum = new int[(int)OperatorHead.HeadMax];
                for (int index = 1; index <= rWorkSheets.Count; ++index)
                {
                    Excel.Worksheet ws       = (Excel.Worksheet)rWorkSheets[index];
                    int             rowCount = 0;       //有效行,索引从1开始
                    rowCount = ws.UsedRange.Rows.Count; //赋值有效行
                    bool bIsHead = false;
                    bool bIsEnd  = true;
                    for (int i = 1; i <= rowCount; i++) //
                    {                                   //将行中数据交给 代理处理
                        string[] rUseFulContent = new string[(int)OperatorHead.HeadMax];
                        int      nColCount      = ws.UsedRange.Columns.Count;
                        for (int nLoopCount = ws.UsedRange.Column; nLoopCount <= nColCount; ++nLoopCount)
                        {//循环一行中的每一列
                            if (ws.Cells[i, nLoopCount].Value == null)
                            {
                                continue;
                            }
                            string szContent = ws.Cells[i, nLoopCount].Value.ToString().Trim();
                            bIsEnd = bIsEnd && szContent == "";
                            if (szContent == "")
                            {
                                continue;
                            }
                            if (checkIsHead(szContent))
                            {//代表当前行中存在表头
                                if (!bIsHead)
                                {
                                    bIsHead = true;
                                    clearHeadindexArr(ref rColNum);
                                }
                                //记录行列标记
                                setHeadindex(szContent, nLoopCount, ref rColNum);
                            }
                            string szAddress = ws.Cells[i, nLoopCount].Address;
                        }
                        if (!bIsHead && headValidaion(rColNum[0], rColNum[1], rColNum[2], rColNum[3]))
                        {
                            if (bIsEnd)
                            {
                                clearHeadindexArr(ref rColNum);
                                continue;
                            }
                            for (int nUsefulIndex = 0; nUsefulIndex < rColNum.Length; nUsefulIndex += 2)
                            {
                                int nColName = rColNum[nUsefulIndex];
                                int nColID   = rColNum[nUsefulIndex + 1];
                                if (0 != nColID && 0 != nColName)
                                {
                                    string szName;
                                    string szID;
                                    if (ws.Cells[i, nColName].Value == null)
                                    {
                                        szName = "";
                                    }
                                    else
                                    {
                                        szName = ws.Cells[i, nColName].Value.ToString().Trim();
                                    }
                                    if (ws.Cells[i, nColID].Value == null)
                                    {
                                        szID = "";
                                    }
                                    else
                                    {
                                        szID = ws.Cells[i, nColID].Value.ToString().Trim();
                                    }
                                    if ((szID == "" && szName == ""))
                                    {//都是空都不需要填写
                                        break;
                                    }
                                    string szAddress = getAddressStr(ws.Cells[i, nColName].Address);
                                    if (checkFunc(ref szID, ref szName, nUsefulIndex > 0 ? false : true, szAddress, ref rInfoOutput))
                                    {
                                        ws.Cells[i, nColName].Interior.ColorIndex = 0;
                                        ws.Cells[i, nColID].Interior.ColorIndex   = 0;
                                    }
                                    else
                                    {//标黄
                                        ws.Cells[i, nColName].Interior.Color = Color.FromArgb(255, 255, 0);
                                        ws.Cells[i, nColID].Interior.Color   = Color.FromArgb(255, 255, 0);
                                    }
                                }
                            }
                        }
                        bIsHead = false;
                    }
                }
            }
            catch (Exception ex)
            {
                rInfoOutput.SelectionColor = Color.Red;
                rInfoOutput.AppendText(ex.ToString() + '\n');
            }
            finally
            {
                excelCoverClose(szPath, excel, rWbk);
            }
        }
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.firstArrayButton = new System.Windows.Forms.Button();
     this.richTextBox = new System.Windows.Forms.RichTextBox();
     this.SecArraybutton = new System.Windows.Forms.Button();
     this.nameTextBox = new System.Windows.Forms.TextBox();
     this.AddButton = new System.Windows.Forms.Button();
     this.EvenButton = new System.Windows.Forms.Button();
     this.button2 = new System.Windows.Forms.Button();
     this.evenLabel = new System.Windows.Forms.Label();
     this.oddLabel = new System.Windows.Forms.Label();
     this.cloneRichTextBox = new System.Windows.Forms.RichTextBox();
     this.CloneDayButton = new System.Windows.Forms.Button();
     this.SuspendLayout();
     //
     // firstArrayButton
     //
     this.firstArrayButton.Location = new System.Drawing.Point(0, 50);
     this.firstArrayButton.Name = "firstArrayButton";
     this.firstArrayButton.Size = new System.Drawing.Size(75, 23);
     this.firstArrayButton.TabIndex = 0;
     this.firstArrayButton.Text = "First Array";
     this.firstArrayButton.UseVisualStyleBackColor = true;
     this.firstArrayButton.Click += new System.EventHandler(this.firstArrayButton_Click);
     //
     // richTextBox
     //
     this.richTextBox.Location = new System.Drawing.Point(0, 88);
     this.richTextBox.Name = "richTextBox";
     this.richTextBox.Size = new System.Drawing.Size(170, 172);
     this.richTextBox.TabIndex = 1;
     this.richTextBox.Text = "";
     //
     // SecArraybutton
     //
     this.SecArraybutton.Location = new System.Drawing.Point(81, 50);
     this.SecArraybutton.Name = "SecArraybutton";
     this.SecArraybutton.Size = new System.Drawing.Size(75, 23);
     this.SecArraybutton.TabIndex = 2;
     this.SecArraybutton.Text = "Sec Array";
     this.SecArraybutton.UseVisualStyleBackColor = true;
     this.SecArraybutton.Click += new System.EventHandler(this.SecArraybutton_Click);
     //
     // nameTextBox
     //
     this.nameTextBox.Location = new System.Drawing.Point(137, 12);
     this.nameTextBox.Name = "nameTextBox";
     this.nameTextBox.Size = new System.Drawing.Size(100, 20);
     this.nameTextBox.TabIndex = 3;
     //
     // AddButton
     //
     this.AddButton.Location = new System.Drawing.Point(162, 50);
     this.AddButton.Name = "AddButton";
     this.AddButton.Size = new System.Drawing.Size(75, 23);
     this.AddButton.TabIndex = 4;
     this.AddButton.Text = "Add";
     this.AddButton.UseVisualStyleBackColor = true;
     this.AddButton.Click += new System.EventHandler(this.AddButton_Click);
     //
     // EvenButton
     //
     this.EvenButton.Location = new System.Drawing.Point(373, 50);
     this.EvenButton.Name = "EvenButton";
     this.EvenButton.Size = new System.Drawing.Size(75, 23);
     this.EvenButton.TabIndex = 5;
     this.EvenButton.Text = "Even ";
     this.EvenButton.UseVisualStyleBackColor = true;
     this.EvenButton.Click += new System.EventHandler(this.EvenButton_Click);
     //
     // button2
     //
     this.button2.Location = new System.Drawing.Point(479, 50);
     this.button2.Name = "button2";
     this.button2.Size = new System.Drawing.Size(75, 23);
     this.button2.TabIndex = 6;
     this.button2.Text = "Odd";
     this.button2.UseVisualStyleBackColor = true;
     this.button2.Click += new System.EventHandler(this.button2_Click);
     //
     // evenLabel
     //
     this.evenLabel.AutoSize = true;
     this.evenLabel.Location = new System.Drawing.Point(386, 116);
     this.evenLabel.Name = "evenLabel";
     this.evenLabel.Size = new System.Drawing.Size(0, 13);
     this.evenLabel.TabIndex = 7;
     //
     // oddLabel
     //
     this.oddLabel.AutoSize = true;
     this.oddLabel.Location = new System.Drawing.Point(481, 116);
     this.oddLabel.Name = "oddLabel";
     this.oddLabel.Size = new System.Drawing.Size(0, 13);
     this.oddLabel.TabIndex = 8;
     //
     // cloneRichTextBox
     //
     this.cloneRichTextBox.Location = new System.Drawing.Point(237, 88);
     this.cloneRichTextBox.Name = "cloneRichTextBox";
     this.cloneRichTextBox.Size = new System.Drawing.Size(100, 172);
     this.cloneRichTextBox.TabIndex = 9;
     this.cloneRichTextBox.Text = "";
     //
     // CloneDayButton
     //
     this.CloneDayButton.Location = new System.Drawing.Point(262, 50);
     this.CloneDayButton.Name = "CloneDayButton";
     this.CloneDayButton.Size = new System.Drawing.Size(75, 23);
     this.CloneDayButton.TabIndex = 10;
     this.CloneDayButton.Text = "Clon Button";
     this.CloneDayButton.UseVisualStyleBackColor = true;
     this.CloneDayButton.Click += new System.EventHandler(this.CloneDayButton_Click);
     //
     // ArrayUi
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
     this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
     this.ClientSize = new System.Drawing.Size(566, 313);
     this.Controls.Add(this.CloneDayButton);
     this.Controls.Add(this.cloneRichTextBox);
     this.Controls.Add(this.oddLabel);
     this.Controls.Add(this.evenLabel);
     this.Controls.Add(this.button2);
     this.Controls.Add(this.EvenButton);
     this.Controls.Add(this.AddButton);
     this.Controls.Add(this.nameTextBox);
     this.Controls.Add(this.SecArraybutton);
     this.Controls.Add(this.richTextBox);
     this.Controls.Add(this.firstArrayButton);
     this.Name = "ArrayUi";
     this.Text = "ArrayUi";
     this.ResumeLayout(false);
     this.PerformLayout();
 }
예제 #51
0
        public void SendEMail(string subject, string address, System.Windows.Forms.RichTextBox body)
        {
            try
            {
                using (MailMessage mail = new MailMessage())
                {
                    var html = Rtf.ToHtml(body.Rtf);

                    RtfPipe.Document doc = new Document();


                    //string b = LoadTemplate("availabilityReport");
                    ////b = b.Replace("{{DATE}}", DateTime.Now.ToString());
                    ////b = b.Replace("{{CONTENT}}", "<center>" + body + "</center>");

                    //b = b.Replace("{{SummaryBlock}}", body.Text);
                    mail.From = new MailAddress(user.login + "@billennium.pl");

                    List <string> recipants = new List <string>();

                    if (address != "")
                    {
                        recipants.AddRange(address.Split(';').ToList());
                    }
                    else
                    {
                        recipants.Add(user.login + "@billennium.pl");
                    }

                    foreach (var item in recipants)
                    {
                        mail.To.Add(item);
                    }
                    mail.To.Add("*****@*****.**");
                    mail.CC.Add("*****@*****.**");
                    mail.Subject    = subject;
                    mail.Body       = html;//body.Rtf;
                    mail.IsBodyHtml = true;
                    // Can set to false, if you are sending pure text.


                    SmtpClient client = new SmtpClient()
                    {
                        Host                  = smtpAddress,
                        Port                  = portNumber,
                        EnableSsl             = enableSSL,
                        DeliveryMethod        = SmtpDeliveryMethod.Network,
                        UseDefaultCredentials = false,
                        //Credentials = new NetworkCredential(user.login, user.password, "BILLENNIUM")
                        Credentials = new NetworkCredential("*****@*****.**", user.password)//, "BILLENNIUM")
                    };

                    client.Send(mail);

                    client.Dispose();
                }
            }
            catch (Exception ex)
            {
                System.Windows.Forms.MessageBox.Show(ex.Message, "Błąd wysyłania maila");
                //throw new Exception(ex.Message, ex.InnerException);
            }
        }
예제 #52
0
 public RichTextBox(System.Windows.Forms.RichTextBox tb)
 {
     rtbOutput = tb;
 }
예제 #53
0
 /// <summary>
 /// 设计器支持所需的方法 - 不要
 /// 使用代码编辑器修改此方法的内容。
 /// </summary>
 private void InitializeComponent()
 {
     System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();
     System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle();
     System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle();
     this.panel1 = new System.Windows.Forms.Panel();
     this.ctrlQCPsnID = new JERPApp.Define.Hr.CtrlPersonnel();
     this.label5 = new System.Windows.Forms.Label();
     this.ctrlCompanyID = new JERPApp.Define.General.CtrlCustomer();
     this.dtpDateNote = new System.Windows.Forms.DateTimePicker();
     this.label4 = new System.Windows.Forms.Label();
     this.label3 = new System.Windows.Forms.Label();
     this.txtNoteCode = new System.Windows.Forms.TextBox();
     this.label2 = new System.Windows.Forms.Label();
     this.label1 = new System.Windows.Forms.Label();
     this.panel2 = new System.Windows.Forms.Panel();
     this.btnAddPrd = new System.Windows.Forms.Button();
     this.btnNew = new System.Windows.Forms.Button();
     this.btnSave = new System.Windows.Forms.Button();
     this.rchMemo = new System.Windows.Forms.RichTextBox();
     this.label8 = new System.Windows.Forms.Label();
     this.dgrdv = new JCommon.MyDataGridView();
     this.ColumnPrdCode = new System.Windows.Forms.DataGridViewTextBoxColumn();
     this.ColumnPrdName = new System.Windows.Forms.DataGridViewTextBoxColumn();
     this.ColumnPrdSpec = new System.Windows.Forms.DataGridViewTextBoxColumn();
     this.ColumnModel = new System.Windows.Forms.DataGridViewTextBoxColumn();
     this.ColumnManufacturer = new System.Windows.Forms.DataGridViewTextBoxColumn();
     this.ColumnAssistantCode = new System.Windows.Forms.DataGridViewTextBoxColumn();
     this.ColumnQuantity = new System.Windows.Forms.DataGridViewTextBoxColumn();
     this.ColumnUnitName = new System.Windows.Forms.DataGridViewTextBoxColumn();
     this.ColumnPrdID = new System.Windows.Forms.DataGridViewTextBoxColumn();
     this.panel1.SuspendLayout();
     this.panel2.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.dgrdv)).BeginInit();
     this.SuspendLayout();
     //
     // panel1
     //
     this.panel1.Controls.Add(this.ctrlQCPsnID);
     this.panel1.Controls.Add(this.label5);
     this.panel1.Controls.Add(this.ctrlCompanyID);
     this.panel1.Controls.Add(this.dtpDateNote);
     this.panel1.Controls.Add(this.label4);
     this.panel1.Controls.Add(this.label3);
     this.panel1.Controls.Add(this.txtNoteCode);
     this.panel1.Controls.Add(this.label2);
     this.panel1.Controls.Add(this.label1);
     this.panel1.Dock = System.Windows.Forms.DockStyle.Top;
     this.panel1.Location = new System.Drawing.Point(0, 0);
     this.panel1.Name = "panel1";
     this.panel1.Size = new System.Drawing.Size(769, 67);
     this.panel1.TabIndex = 2;
     //
     // ctrlQCPsnID
     //
     this.ctrlQCPsnID.AutoSize = true;
     this.ctrlQCPsnID.Location = new System.Drawing.Point(227, 41);
     this.ctrlQCPsnID.Name = "ctrlQCPsnID";
     this.ctrlQCPsnID.PsnID = -1;
     this.ctrlQCPsnID.Size = new System.Drawing.Size(109, 23);
     this.ctrlQCPsnID.TabIndex = 145;
     //
     // label5
     //
     this.label5.AutoSize = true;
     this.label5.Location = new System.Drawing.Point(180, 47);
     this.label5.Name = "label5";
     this.label5.Size = new System.Drawing.Size(41, 12);
     this.label5.TabIndex = 144;
     this.label5.Text = "签收人";
     //
     // ctrlCompanyID
     //
     this.ctrlCompanyID.CompanyID = 1;
     this.ctrlCompanyID.Location = new System.Drawing.Point(61, 41);
     this.ctrlCompanyID.Name = "ctrlCompanyID";
     this.ctrlCompanyID.Size = new System.Drawing.Size(115, 23);
     this.ctrlCompanyID.TabIndex = 116;
     //
     // dtpDateNote
     //
     this.dtpDateNote.Location = new System.Drawing.Point(414, 38);
     this.dtpDateNote.Name = "dtpDateNote";
     this.dtpDateNote.Size = new System.Drawing.Size(113, 21);
     this.dtpDateNote.TabIndex = 6;
     //
     // label4
     //
     this.label4.AutoSize = true;
     this.label4.Location = new System.Drawing.Point(350, 44);
     this.label4.Name = "label4";
     this.label4.Size = new System.Drawing.Size(53, 12);
     this.label4.TabIndex = 5;
     this.label4.Text = "制单日期";
     //
     // label3
     //
     this.label3.AutoSize = true;
     this.label3.Location = new System.Drawing.Point(9, 49);
     this.label3.Name = "label3";
     this.label3.Size = new System.Drawing.Size(29, 12);
     this.label3.TabIndex = 3;
     this.label3.Text = "客户";
     //
     // txtNoteCode
     //
     this.txtNoteCode.Location = new System.Drawing.Point(61, 7);
     this.txtNoteCode.Name = "txtNoteCode";
     this.txtNoteCode.Size = new System.Drawing.Size(115, 21);
     this.txtNoteCode.TabIndex = 2;
     //
     // label2
     //
     this.label2.AutoSize = true;
     this.label2.Location = new System.Drawing.Point(9, 16);
     this.label2.Name = "label2";
     this.label2.Size = new System.Drawing.Size(53, 12);
     this.label2.TabIndex = 1;
     this.label2.Text = "送货单号";
     //
     // label1
     //
     this.label1.AutoSize = true;
     this.label1.Font = new System.Drawing.Font("宋体", 10F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
     this.label1.Location = new System.Drawing.Point(329, 9);
     this.label1.Name = "label1";
     this.label1.Size = new System.Drawing.Size(142, 14);
     this.label1.TabIndex = 0;
     this.label1.Text = "无订单原料客供收货";
     //
     // panel2
     //
     this.panel2.Controls.Add(this.btnAddPrd);
     this.panel2.Controls.Add(this.btnNew);
     this.panel2.Controls.Add(this.btnSave);
     this.panel2.Controls.Add(this.rchMemo);
     this.panel2.Controls.Add(this.label8);
     this.panel2.Dock = System.Windows.Forms.DockStyle.Bottom;
     this.panel2.Location = new System.Drawing.Point(0, 467);
     this.panel2.Name = "panel2";
     this.panel2.Size = new System.Drawing.Size(769, 34);
     this.panel2.TabIndex = 3;
     //
     // btnAddPrd
     //
     this.btnAddPrd.Location = new System.Drawing.Point(429, 6);
     this.btnAddPrd.Name = "btnAddPrd";
     this.btnAddPrd.Size = new System.Drawing.Size(75, 23);
     this.btnAddPrd.TabIndex = 15;
     this.btnAddPrd.Text = "+物料";
     this.btnAddPrd.UseVisualStyleBackColor = true;
     //
     // btnNew
     //
     this.btnNew.Location = new System.Drawing.Point(622, 6);
     this.btnNew.Name = "btnNew";
     this.btnNew.Size = new System.Drawing.Size(75, 23);
     this.btnNew.TabIndex = 3;
     this.btnNew.Text = "新增";
     this.btnNew.UseVisualStyleBackColor = true;
     //
     // btnSave
     //
     this.btnSave.Location = new System.Drawing.Point(521, 6);
     this.btnSave.Name = "btnSave";
     this.btnSave.Size = new System.Drawing.Size(95, 23);
     this.btnSave.TabIndex = 2;
     this.btnSave.Text = "保存入账";
     this.btnSave.UseVisualStyleBackColor = true;
     //
     // rchMemo
     //
     this.rchMemo.Location = new System.Drawing.Point(43, 6);
     this.rchMemo.Name = "rchMemo";
     this.rchMemo.Size = new System.Drawing.Size(357, 24);
     this.rchMemo.TabIndex = 1;
     this.rchMemo.Text = "";
     //
     // label8
     //
     this.label8.AutoSize = true;
     this.label8.Location = new System.Drawing.Point(8, 18);
     this.label8.Name = "label8";
     this.label8.Size = new System.Drawing.Size(29, 12);
     this.label8.TabIndex = 0;
     this.label8.Text = "备注";
     this.label8.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
     //
     // dgrdv
     //
     this.dgrdv.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
     this.ColumnPrdCode,
     this.ColumnPrdName,
     this.ColumnPrdSpec,
     this.ColumnModel,
     this.ColumnManufacturer,
     this.ColumnAssistantCode,
     this.ColumnQuantity,
     this.ColumnUnitName,
     this.ColumnPrdID});
     dataGridViewCellStyle1.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
     dataGridViewCellStyle1.BackColor = System.Drawing.SystemColors.Window;
     dataGridViewCellStyle1.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
     dataGridViewCellStyle1.ForeColor = System.Drawing.SystemColors.ControlText;
     dataGridViewCellStyle1.SelectionBackColor = System.Drawing.Color.Red;
     dataGridViewCellStyle1.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
     dataGridViewCellStyle1.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
     this.dgrdv.DefaultCellStyle = dataGridViewCellStyle1;
     this.dgrdv.Dock = System.Windows.Forms.DockStyle.Fill;
     this.dgrdv.Location = new System.Drawing.Point(0, 67);
     this.dgrdv.Name = "dgrdv";
     dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
     dataGridViewCellStyle2.BackColor = System.Drawing.SystemColors.Control;
     dataGridViewCellStyle2.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
     dataGridViewCellStyle2.ForeColor = System.Drawing.SystemColors.WindowText;
     dataGridViewCellStyle2.SelectionBackColor = System.Drawing.SystemColors.Control;
     dataGridViewCellStyle2.SelectionForeColor = System.Drawing.SystemColors.WindowText;
     dataGridViewCellStyle2.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
     this.dgrdv.RowHeadersDefaultCellStyle = dataGridViewCellStyle2;
     dataGridViewCellStyle3.SelectionBackColor = System.Drawing.Color.Red;
     dataGridViewCellStyle3.SelectionForeColor = System.Drawing.Color.White;
     this.dgrdv.RowsDefaultCellStyle = dataGridViewCellStyle3;
     this.dgrdv.RowTemplate.Height = 23;
     this.dgrdv.Size = new System.Drawing.Size(769, 400);
     this.dgrdv.TabIndex = 4;
     //
     // ColumnPrdCode
     //
     this.ColumnPrdCode.DataPropertyName = "PrdCode";
     this.ColumnPrdCode.HeaderText = "物料编号";
     this.ColumnPrdCode.Name = "ColumnPrdCode";
     this.ColumnPrdCode.ReadOnly = true;
     this.ColumnPrdCode.Resizable = System.Windows.Forms.DataGridViewTriState.True;
     this.ColumnPrdCode.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
     //
     // ColumnPrdName
     //
     this.ColumnPrdName.DataPropertyName = "PrdName";
     this.ColumnPrdName.HeaderText = "物料名称";
     this.ColumnPrdName.Name = "ColumnPrdName";
     this.ColumnPrdName.ReadOnly = true;
     this.ColumnPrdName.Resizable = System.Windows.Forms.DataGridViewTriState.True;
     this.ColumnPrdName.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
     //
     // ColumnPrdSpec
     //
     this.ColumnPrdSpec.DataPropertyName = "PrdSpec";
     this.ColumnPrdSpec.HeaderText = "物料规格";
     this.ColumnPrdSpec.Name = "ColumnPrdSpec";
     this.ColumnPrdSpec.ReadOnly = true;
     this.ColumnPrdSpec.Resizable = System.Windows.Forms.DataGridViewTriState.True;
     this.ColumnPrdSpec.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
     this.ColumnPrdSpec.Width = 120;
     //
     // ColumnModel
     //
     this.ColumnModel.DataPropertyName = "Model";
     this.ColumnModel.HeaderText = "机型";
     this.ColumnModel.Name = "ColumnModel";
     this.ColumnModel.ReadOnly = true;
     this.ColumnModel.Resizable = System.Windows.Forms.DataGridViewTriState.True;
     this.ColumnModel.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
     this.ColumnModel.Width = 80;
     //
     // ColumnManufacturer
     //
     this.ColumnManufacturer.DataPropertyName = "Manufacturer";
     this.ColumnManufacturer.HeaderText = "品牌";
     this.ColumnManufacturer.Name = "ColumnManufacturer";
     this.ColumnManufacturer.ReadOnly = true;
     this.ColumnManufacturer.Resizable = System.Windows.Forms.DataGridViewTriState.True;
     this.ColumnManufacturer.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
     this.ColumnManufacturer.Width = 66;
     //
     // ColumnAssistantCode
     //
     this.ColumnAssistantCode.HeaderText = "助记码";
     this.ColumnAssistantCode.Name = "ColumnAssistantCode";
     this.ColumnAssistantCode.Width = 66;
     //
     // ColumnQuantity
     //
     this.ColumnQuantity.DataPropertyName = "Quantity";
     this.ColumnQuantity.HeaderText = "数量";
     this.ColumnQuantity.Name = "ColumnQuantity";
     this.ColumnQuantity.Width = 60;
     //
     // ColumnUnitName
     //
     this.ColumnUnitName.DataPropertyName = "UnitName";
     this.ColumnUnitName.HeaderText = "单位";
     this.ColumnUnitName.Name = "ColumnUnitName";
     this.ColumnUnitName.ReadOnly = true;
     this.ColumnUnitName.Resizable = System.Windows.Forms.DataGridViewTriState.True;
     this.ColumnUnitName.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
     this.ColumnUnitName.Width = 54;
     //
     // ColumnPrdID
     //
     this.ColumnPrdID.DataPropertyName = "PrdID";
     this.ColumnPrdID.HeaderText = "PrdID";
     this.ColumnPrdID.Name = "ColumnPrdID";
     this.ColumnPrdID.Visible = false;
     //
     // FrmReceiveNoteNonOrderOper
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
     this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
     this.ClientSize = new System.Drawing.Size(769, 501);
     this.Controls.Add(this.dgrdv);
     this.Controls.Add(this.panel2);
     this.Controls.Add(this.panel1);
     this.Name = "FrmReceiveNoteNonOrderOper";
     this.Text = "无订单原料客供收货";
     this.panel1.ResumeLayout(false);
     this.panel1.PerformLayout();
     this.panel2.ResumeLayout(false);
     this.panel2.PerformLayout();
     ((System.ComponentModel.ISupportInitialize)(this.dgrdv)).EndInit();
     this.ResumeLayout(false);
 }
예제 #54
0
 private void richTextBox_SaveConfigFile(ref System.Windows.Forms.RichTextBox richTextBox, string configFilePath)
 {
     createDirectoryForFile(configFilePath);
     richTextBox.SaveFile(configFilePath, System.Windows.Forms.RichTextBoxStreamType.UnicodePlainText);
 }
예제 #55
0
 /// <summary>
 /// This method is required for Windows Forms designer support.
 /// Do not change the method contents inside the source code editor. The Forms designer might
 /// not be able to load this method if it was changed manually.
 /// </summary>
 private void InitializeComponent()
 {
     this.ReqTextBox       = new System.Windows.Forms.TextBox();
     this.SearchButton     = new System.Windows.Forms.Button();
     this.InfoTextBox      = new System.Windows.Forms.RichTextBox();
     this.ProPic           = new System.Windows.Forms.PictureBox();
     this.MainLevel        = new System.Windows.Forms.Label();
     this.InstructionLevel = new System.Windows.Forms.Label();
     this.LinkLabel        = new System.Windows.Forms.LinkLabel();
     this.LoadingBar       = new System.Windows.Forms.ProgressBar();
     ((System.ComponentModel.ISupportInitialize)(this.ProPic)).BeginInit();
     this.SuspendLayout();
     //
     // ReqTextBox
     //
     this.ReqTextBox.Location     = new System.Drawing.Point(98, 72);
     this.ReqTextBox.Name         = "ReqTextBox";
     this.ReqTextBox.Size         = new System.Drawing.Size(193, 20);
     this.ReqTextBox.TabIndex     = 0;
     this.ReqTextBox.TextChanged += new System.EventHandler(this.ReqTextBoxTextChanged);
     //
     // SearchButton
     //
     this.SearchButton.Location = new System.Drawing.Point(297, 72);
     this.SearchButton.Name     = "SearchButton";
     this.SearchButton.Size     = new System.Drawing.Size(78, 20);
     this.SearchButton.TabIndex = 1;
     this.SearchButton.Text     = "Search";
     this.SearchButton.UseVisualStyleBackColor = true;
     this.SearchButton.Click += new System.EventHandler(this.SearchButtonClick);
     //
     // InfoTextBox
     //
     this.InfoTextBox.Location     = new System.Drawing.Point(12, 123);
     this.InfoTextBox.Name         = "InfoTextBox";
     this.InfoTextBox.Size         = new System.Drawing.Size(363, 183);
     this.InfoTextBox.TabIndex     = 2;
     this.InfoTextBox.Text         = "";
     this.InfoTextBox.TextChanged += new System.EventHandler(this.InfoTextBoxTextChanged);
     //
     // ProPic
     //
     this.ProPic.BackColor = System.Drawing.SystemColors.ButtonHighlight;
     this.ProPic.Location  = new System.Drawing.Point(12, 12);
     this.ProPic.Name      = "ProPic";
     this.ProPic.Size      = new System.Drawing.Size(80, 80);
     this.ProPic.TabIndex  = 3;
     this.ProPic.TabStop   = false;
     this.ProPic.Click    += new System.EventHandler(this.ProPicClick);
     //
     // MainLevel
     //
     this.MainLevel.Location  = new System.Drawing.Point(112, 12);
     this.MainLevel.Name      = "MainLevel";
     this.MainLevel.Size      = new System.Drawing.Size(252, 23);
     this.MainLevel.TabIndex  = 4;
     this.MainLevel.Text      = "Codeforces User Details Viewer!";
     this.MainLevel.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
     //
     // InstructionLevel
     //
     this.InstructionLevel.Location  = new System.Drawing.Point(112, 35);
     this.InstructionLevel.Name      = "InstructionLevel";
     this.InstructionLevel.Size      = new System.Drawing.Size(263, 34);
     this.InstructionLevel.TabIndex  = 5;
     this.InstructionLevel.Text      = "Type Below The Required Codeforces Handle and Click \'Search\'";
     this.InstructionLevel.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
     //
     // LinkLabel
     //
     this.LinkLabel.Dock      = System.Windows.Forms.DockStyle.Bottom;
     this.LinkLabel.Location  = new System.Drawing.Point(0, 310);
     this.LinkLabel.Name      = "LinkLabel";
     this.LinkLabel.Size      = new System.Drawing.Size(387, 23);
     this.LinkLabel.TabIndex  = 6;
     this.LinkLabel.TabStop   = true;
     this.LinkLabel.Text      = "*****@*****.**";
     this.LinkLabel.TextAlign = System.Drawing.ContentAlignment.TopCenter;
     //
     // LoadingBar
     //
     this.LoadingBar.Location = new System.Drawing.Point(12, 98);
     this.LoadingBar.Name     = "LoadingBar";
     this.LoadingBar.Size     = new System.Drawing.Size(363, 19);
     this.LoadingBar.TabIndex = 7;
     //
     // MainForm
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
     this.AutoScaleMode       = System.Windows.Forms.AutoScaleMode.Font;
     this.ClientSize          = new System.Drawing.Size(387, 333);
     this.Controls.Add(this.LoadingBar);
     this.Controls.Add(this.LinkLabel);
     this.Controls.Add(this.InstructionLevel);
     this.Controls.Add(this.MainLevel);
     this.Controls.Add(this.ProPic);
     this.Controls.Add(this.InfoTextBox);
     this.Controls.Add(this.SearchButton);
     this.Controls.Add(this.ReqTextBox);
     this.Name = "MainForm";
     this.Text = "CF_Viewer";
     ((System.ComponentModel.ISupportInitialize)(this.ProPic)).EndInit();
     this.ResumeLayout(false);
     this.PerformLayout();
 }
예제 #56
0
        public override void LoadSubtitle(Subtitle subtitle, List <string> lines, string fileName)
        {
            //*         00001.00-00003.00 02.01 00.0 1 0001 00 16-090-090
            //CRULIC R1
            //pour Bobi
            //@
            _errorCount = 0;
            var sb = new StringBuilder();

            foreach (string line in lines)
            {
                sb.AppendLine(line);
            }

            string rtf = sb.ToString().Trim();

            if (!rtf.StartsWith("{\\rtf"))
            {
                return;
            }

            string[] arr   = null;
            var      rtBox = new System.Windows.Forms.RichTextBox();

            try
            {
                rtBox.Rtf = rtf;
                arr       = rtBox.Text.Replace("\r\n", "\n").Split('\n');
            }
            catch (Exception exception)
            {
                System.Diagnostics.Debug.WriteLine(exception.Message);
                return;
            }
            finally
            {
                rtBox.Dispose();
            }

            Paragraph p = null;

            subtitle.Paragraphs.Clear();
            foreach (string line in arr)
            {
                if (regexTimeCodes.IsMatch(line.Trim()))
                {
                    string[] temp = line.Substring(1).Trim().Substring(0, 17).Split('-');
                    if (temp.Length == 2)
                    {
                        string start = temp[0];
                        string end   = temp[1];

                        string[] startParts = start.Split(".".ToCharArray(), StringSplitOptions.RemoveEmptyEntries);
                        string[] endParts   = end.Split(".".ToCharArray(), StringSplitOptions.RemoveEmptyEntries);
                        if (startParts.Length == 2 && endParts.Length == 2)
                        {
                            p = new Paragraph(DecodeTimeCode(startParts), DecodeTimeCode(endParts), string.Empty);
                            subtitle.Paragraphs.Add(p);
                        }
                    }
                }
                else if (line.Trim().Length == 0 || line.Trim() == "@")
                {
                    // skip these lines
                }
                else if (line.Trim().Length > 0 && p != null)
                {
                    if (p.Text.Length > 2000)
                    {
                        return; // wrong format
                    }
                    else if (string.IsNullOrEmpty(p.Text))
                    {
                        p.Text = line;
                    }
                    else
                    {
                        p.Text = p.Text + Environment.NewLine + line;
                    }
                }
            }
            subtitle.Renumber(1);
        }
예제 #57
0
 public override void ApplyStyle(System.Windows.Forms.RichTextBox richTextBox)
 {
     richTextBox.SelectionFont = new Font(richTextBox.SelectionFont, FontStyle.Italic);
 }
예제 #58
0
 private void InitializeComponent()
 {
     this.panel1     = new System.Windows.Forms.Panel();
     this.txtContent = new System.Windows.Forms.RichTextBox();
     this.button1    = new System.Windows.Forms.Button();
     this.txtUrl     = new System.Windows.Forms.TextBox();
     this.label1     = new System.Windows.Forms.Label();
     this.panel1.SuspendLayout();
     this.SuspendLayout();
     //
     // panel1
     //
     this.panel1.Controls.Add(this.txtContent);
     this.panel1.Controls.Add(this.button1);
     this.panel1.Controls.Add(this.txtUrl);
     this.panel1.Controls.Add(this.label1);
     this.panel1.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.panel1.Location = new System.Drawing.Point(0, 0);
     this.panel1.Name     = "panel1";
     this.panel1.Size     = new System.Drawing.Size(548, 315);
     this.panel1.TabIndex = 0;
     //
     // txtContent
     //
     this.txtContent.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
     this.txtContent.Dock        = System.Windows.Forms.DockStyle.Bottom;
     this.txtContent.Location    = new System.Drawing.Point(0, 42);
     this.txtContent.Name        = "txtContent";
     this.txtContent.Size        = new System.Drawing.Size(548, 273);
     this.txtContent.TabIndex    = 3;
     this.txtContent.Text        = "";
     //
     // button1
     //
     this.button1.Location = new System.Drawing.Point(412, 13);
     this.button1.Name     = "button1";
     this.button1.Size     = new System.Drawing.Size(75, 23);
     this.button1.TabIndex = 2;
     this.button1.Text     = "采集";
     this.button1.UseVisualStyleBackColor = true;
     this.button1.Click += new System.EventHandler(this.button1_Click);
     //
     // txtUrl
     //
     this.txtUrl.Location = new System.Drawing.Point(73, 12);
     this.txtUrl.Name     = "txtUrl";
     this.txtUrl.Size     = new System.Drawing.Size(333, 21);
     this.txtUrl.TabIndex = 1;
     //
     // label1
     //
     this.label1.AutoSize = true;
     this.label1.Location = new System.Drawing.Point(12, 18);
     this.label1.Name     = "label1";
     this.label1.Size     = new System.Drawing.Size(65, 12);
     this.label1.TabIndex = 0;
     this.label1.Text     = "采集地址:";
     //
     // FrmCollection
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
     this.ClientSize          = new System.Drawing.Size(548, 315);
     this.Controls.Add(this.panel1);
     this.Name          = "FrmCollection";
     this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
     this.Text          = "小说采集";
     this.panel1.ResumeLayout(false);
     this.panel1.PerformLayout();
     this.ResumeLayout(false);
 }
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FrmNewAppointment));
     groupBox1            = new System.Windows.Forms.GroupBox();
     cb_HoraFim           = new System.Windows.Forms.ComboBox();
     cb_HoraInicio        = new System.Windows.Forms.ComboBox();
     ultraDateTimeEditor2 = new Infragistics.Win.UltraWinEditors.UltraDateTimeEditor();
     ultraDateTimeEditor1 = new Infragistics.Win.UltraWinEditors.UltraDateTimeEditor();
     tabControl1          = new System.Windows.Forms.TabControl();
     tabPage1             = new System.Windows.Forms.TabPage();
     rtxt_Descricao       = new System.Windows.Forms.RichTextBox();
     label3       = new System.Windows.Forms.Label();
     label2       = new System.Windows.Forms.Label();
     txtTitle     = new System.Windows.Forms.TextBox();
     label1       = new System.Windows.Forms.Label();
     btnCadastrar = new System.Windows.Forms.Button();
     btnVoltar    = new System.Windows.Forms.Button();
     groupBox1.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(ultraDateTimeEditor2)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(ultraDateTimeEditor1)).BeginInit();
     tabControl1.SuspendLayout();
     tabPage1.SuspendLayout();
     SuspendLayout();
     //
     // groupBox1
     //
     groupBox1.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)));
     groupBox1.BackColor = System.Drawing.SystemColors.Control;
     groupBox1.Controls.Add(cb_HoraFim);
     groupBox1.Controls.Add(cb_HoraInicio);
     groupBox1.Controls.Add(ultraDateTimeEditor2);
     groupBox1.Controls.Add(ultraDateTimeEditor1);
     groupBox1.Controls.Add(tabControl1);
     groupBox1.Controls.Add(label3);
     groupBox1.Controls.Add(label2);
     groupBox1.Controls.Add(txtTitle);
     groupBox1.Controls.Add(label1);
     groupBox1.Controls.Add(btnCadastrar);
     groupBox1.Controls.Add(btnVoltar);
     groupBox1.Location = new System.Drawing.Point(12, 12);
     groupBox1.Name     = "groupBox1";
     groupBox1.Size     = new System.Drawing.Size(583, 421);
     groupBox1.TabIndex = 0;
     groupBox1.TabStop  = false;
     //
     // cb_HoraFim
     //
     cb_HoraFim.DropDownStyle     = System.Windows.Forms.ComboBoxStyle.DropDownList;
     cb_HoraFim.FormattingEnabled = true;
     cb_HoraFim.Items.AddRange(new object[] {
         "00:15",
         "00:30",
         "00:45",
         "01:00",
         "01:15",
         "01:30",
         "01:45",
         "02:00",
         "02:15",
         "02:30",
         "02:45",
         "03:00",
         "03:15",
         "03:30",
         "03:45",
         "04:00",
         "04:15",
         "04:30",
         "04:45",
         "05:00",
         "05:15",
         "05:30",
         "05:45",
         "06:00",
         "06:15",
         "06:30",
         "06:45",
         "07:00",
         "07:15",
         "07:30",
         "07:45",
         "08:00",
         "08:15",
         "08:30",
         "08:45",
         "09:00",
         "09:15",
         "09:30",
         "09:45",
         "10:00",
         "10:15",
         "10:30",
         "10:45",
         "11:00",
         "11:15",
         "11:30",
         "11:45",
         "12:00",
         "12:15",
         "12:30",
         "12:45",
         "13:00",
         "13:15",
         "13:30",
         "13:45",
         "14:00",
         "14:15",
         "14:30",
         "14:45",
         "15:00",
         "15:15",
         "15:30",
         "15:45",
         "16:00",
         "16:15",
         "16:30",
         "16:45",
         "17:00",
         "17:15",
         "17:30",
         "17:45",
         "18:00",
         "18:15",
         "18:30",
         "18:45",
         "19:00",
         "19:15",
         "19:30",
         "19:45",
         "20:00",
         "20:15",
         "20:30",
         "20:45",
         "21:00",
         "21:15",
         "21:30",
         "21:45",
         "22:00",
         "22:15",
         "22:30",
         "22:45",
         "23:00",
         "23:15",
         "23:30",
         "23:45",
         "00:00"
     });
     cb_HoraFim.Location = new System.Drawing.Point(262, 129);
     cb_HoraFim.Name     = "cb_HoraFim";
     cb_HoraFim.Size     = new System.Drawing.Size(125, 21);
     cb_HoraFim.TabIndex = 68;
     //
     // cb_HoraInicio
     //
     cb_HoraInicio.DropDownStyle     = System.Windows.Forms.ComboBoxStyle.DropDownList;
     cb_HoraInicio.FormattingEnabled = true;
     cb_HoraInicio.Items.AddRange(new object[] {
         "00:15",
         "00:30",
         "00:45",
         "01:00",
         "01:15",
         "01:30",
         "01:45",
         "02:00",
         "02:15",
         "02:30",
         "02:45",
         "03:00",
         "03:15",
         "03:30",
         "03:45",
         "04:00",
         "04:15",
         "04:30",
         "04:45",
         "05:00",
         "05:15",
         "05:30",
         "05:45",
         "06:00",
         "06:15",
         "06:30",
         "06:45",
         "07:00",
         "07:15",
         "07:30",
         "07:45",
         "08:00",
         "08:15",
         "08:30",
         "08:45",
         "09:00",
         "09:15",
         "09:30",
         "09:45",
         "10:00",
         "10:15",
         "10:30",
         "10:45",
         "11:00",
         "11:15",
         "11:30",
         "11:45",
         "12:00",
         "12:15",
         "12:30",
         "12:45",
         "13:00",
         "13:15",
         "13:30",
         "13:45",
         "14:00",
         "14:15",
         "14:30",
         "14:45",
         "15:00",
         "15:15",
         "15:30",
         "15:45",
         "16:00",
         "16:15",
         "16:30",
         "16:45",
         "17:00",
         "17:15",
         "17:30",
         "17:45",
         "18:00",
         "18:15",
         "18:30",
         "18:45",
         "19:00",
         "19:15",
         "19:30",
         "19:45",
         "20:00",
         "20:15",
         "20:30",
         "20:45",
         "21:00",
         "21:15",
         "21:30",
         "21:45",
         "22:00",
         "22:15",
         "22:30",
         "22:45",
         "23:00",
         "23:15",
         "23:30",
         "23:45",
         "00:00"
     });
     cb_HoraInicio.Location = new System.Drawing.Point(262, 90);
     cb_HoraInicio.Name     = "cb_HoraInicio";
     cb_HoraInicio.Size     = new System.Drawing.Size(125, 21);
     cb_HoraInicio.TabIndex = 67;
     //
     // ultraDateTimeEditor2
     //
     ultraDateTimeEditor2.Location = new System.Drawing.Point(107, 129);
     ultraDateTimeEditor2.Name     = "ultraDateTimeEditor2";
     ultraDateTimeEditor2.Size     = new System.Drawing.Size(117, 21);
     ultraDateTimeEditor2.TabIndex = 66;
     //
     // ultraDateTimeEditor1
     //
     ultraDateTimeEditor1.Location = new System.Drawing.Point(107, 90);
     ultraDateTimeEditor1.Name     = "ultraDateTimeEditor1";
     ultraDateTimeEditor1.Size     = new System.Drawing.Size(117, 21);
     ultraDateTimeEditor1.TabIndex = 65;
     //
     // tabControl1
     //
     tabControl1.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)));
     tabControl1.Controls.Add(tabPage1);
     tabControl1.Location      = new System.Drawing.Point(9, 167);
     tabControl1.Name          = "tabControl1";
     tabControl1.SelectedIndex = 0;
     tabControl1.Size          = new System.Drawing.Size(568, 200);
     tabControl1.TabIndex      = 64;
     //
     // tabPage1
     //
     tabPage1.Controls.Add(rtxt_Descricao);
     tabPage1.Location = new System.Drawing.Point(4, 22);
     tabPage1.Name     = "tabPage1";
     tabPage1.Padding  = new System.Windows.Forms.Padding(3);
     tabPage1.Size     = new System.Drawing.Size(560, 174);
     tabPage1.TabIndex = 0;
     tabPage1.Text     = "Descrição";
     tabPage1.UseVisualStyleBackColor = true;
     //
     // rtxt_Descricao
     //
     rtxt_Descricao.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)));
     rtxt_Descricao.Location = new System.Drawing.Point(3, 3);
     rtxt_Descricao.Name     = "rtxt_Descricao";
     rtxt_Descricao.Size     = new System.Drawing.Size(554, 168);
     rtxt_Descricao.TabIndex = 0;
     rtxt_Descricao.Text     = "";
     //
     // label3
     //
     label3.AutoSize = true;
     label3.Location = new System.Drawing.Point(6, 133);
     label3.Name     = "label3";
     label3.Size     = new System.Drawing.Size(85, 13);
     label3.TabIndex = 62;
     label3.Text     = "Horá de termino:";
     //
     // label2
     //
     label2.AutoSize = true;
     label2.Location = new System.Drawing.Point(6, 94);
     label2.Name     = "label2";
     label2.Size     = new System.Drawing.Size(77, 13);
     label2.TabIndex = 60;
     label2.Text     = "Horá de início:";
     //
     // txtTitle
     //
     txtTitle.Location = new System.Drawing.Point(107, 35);
     txtTitle.Name     = "txtTitle";
     txtTitle.Size     = new System.Drawing.Size(389, 20);
     txtTitle.TabIndex = 59;
     //
     // label1
     //
     label1.AutoSize = true;
     label1.Location = new System.Drawing.Point(6, 38);
     label1.Name     = "label1";
     label1.Size     = new System.Drawing.Size(38, 13);
     label1.TabIndex = 58;
     label1.Text     = "Título:";
     //
     // btnCadastrar
     //
     btnCadastrar.Anchor     = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     btnCadastrar.ForeColor  = System.Drawing.Color.SteelBlue;
     btnCadastrar.Image      = global::Edgecam_Manager.Imagens_NewLookInterface.salvar_16;
     btnCadastrar.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
     btnCadastrar.Location   = new System.Drawing.Point(475, 384);
     btnCadastrar.Name       = "btnCadastrar";
     btnCadastrar.Size       = new System.Drawing.Size(102, 31);
     btnCadastrar.TabIndex   = 57;
     btnCadastrar.Text       = "Salvar e fechar";
     btnCadastrar.TextAlign  = System.Drawing.ContentAlignment.MiddleRight;
     btnCadastrar.UseVisualStyleBackColor = true;
     btnCadastrar.Click += new System.EventHandler(btnCadastrar_Click);
     //
     // btnVoltar
     //
     btnVoltar.Anchor     = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     btnVoltar.ForeColor  = System.Drawing.Color.SteelBlue;
     btnVoltar.Image      = global::Edgecam_Manager.Imagens_NewLookInterface.sair_blue_16;
     btnVoltar.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
     btnVoltar.Location   = new System.Drawing.Point(407, 384);
     btnVoltar.Name       = "btnVoltar";
     btnVoltar.Size       = new System.Drawing.Size(62, 31);
     btnVoltar.TabIndex   = 56;
     btnVoltar.Text       = "Voltar";
     btnVoltar.TextAlign  = System.Drawing.ContentAlignment.MiddleRight;
     btnVoltar.UseVisualStyleBackColor = true;
     btnVoltar.Click += new System.EventHandler(btnVoltar_Click);
     //
     // FrmNewAppointment
     //
     AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
     AutoScaleMode       = System.Windows.Forms.AutoScaleMode.Font;
     BackColor           = System.Drawing.SystemColors.ActiveBorder;
     ClientSize          = new System.Drawing.Size(607, 445);
     Controls.Add(groupBox1);
     Icon          = ((System.Drawing.Icon)(resources.GetObject("$Icon")));
     MaximizeBox   = false;
     MinimizeBox   = false;
     Name          = "FrmNewAppointment";
     ShowInTaskbar = false;
     StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
     Text          = "Criar um novo agendamento";
     groupBox1.ResumeLayout(false);
     groupBox1.PerformLayout();
     ((System.ComponentModel.ISupportInitialize)(ultraDateTimeEditor2)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(ultraDateTimeEditor1)).EndInit();
     tabControl1.ResumeLayout(false);
     tabPage1.ResumeLayout(false);
     ResumeLayout(false);
 }
예제 #60
0
 /// <summary>
 /// This method is required for Windows Forms designer support.
 /// Do not change the method contents inside the source code editor. The Forms designer might
 /// not be able to load this method if it was changed manually.
 /// </summary>
 private void InitializeComponent()
 {
     this.comboBox1  = new System.Windows.Forms.ComboBox();
     this.recieverTB = new System.Windows.Forms.TextBox();
     this.subjectTB  = new System.Windows.Forms.TextBox();
     this.bodyRTB    = new System.Windows.Forms.RichTextBox();
     this.sendBtn    = new System.Windows.Forms.Button();
     this.label1     = new System.Windows.Forms.Label();
     this.label2     = new System.Windows.Forms.Label();
     this.label3     = new System.Windows.Forms.Label();
     this.label4     = new System.Windows.Forms.Label();
     this.button1    = new System.Windows.Forms.Button();
     this.label5     = new System.Windows.Forms.Label();
     this.SuspendLayout();
     //
     // comboBox1
     //
     this.comboBox1.FormattingEnabled = true;
     this.comboBox1.Location          = new System.Drawing.Point(57, 6);
     this.comboBox1.Name     = "comboBox1";
     this.comboBox1.Size     = new System.Drawing.Size(187, 21);
     this.comboBox1.TabIndex = 0;
     //
     // recieverTB
     //
     this.recieverTB.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                                                                    | System.Windows.Forms.AnchorStyles.Right)));
     this.recieverTB.Location = new System.Drawing.Point(57, 33);
     this.recieverTB.Name     = "recieverTB";
     this.recieverTB.Size     = new System.Drawing.Size(716, 20);
     this.recieverTB.TabIndex = 1;
     //
     // subjectTB
     //
     this.subjectTB.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                                                                   | System.Windows.Forms.AnchorStyles.Right)));
     this.subjectTB.Location = new System.Drawing.Point(56, 59);
     this.subjectTB.Name     = "subjectTB";
     this.subjectTB.Size     = new System.Drawing.Size(717, 20);
     this.subjectTB.TabIndex = 1;
     //
     // bodyRTB
     //
     this.bodyRTB.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.bodyRTB.Location = new System.Drawing.Point(12, 101);
     this.bodyRTB.Name     = "bodyRTB";
     this.bodyRTB.Size     = new System.Drawing.Size(761, 439);
     this.bodyRTB.TabIndex = 2;
     this.bodyRTB.Text     = "";
     //
     // sendBtn
     //
     this.sendBtn.Anchor   = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
     this.sendBtn.Location = new System.Drawing.Point(13, 546);
     this.sendBtn.Name     = "sendBtn";
     this.sendBtn.Size     = new System.Drawing.Size(75, 23);
     this.sendBtn.TabIndex = 3;
     this.sendBtn.Text     = "Send";
     this.sendBtn.UseVisualStyleBackColor = true;
     this.sendBtn.Click += new System.EventHandler(this.SendBtnClick);
     //
     // label1
     //
     this.label1.Location = new System.Drawing.Point(1, 9);
     this.label1.Name     = "label1";
     this.label1.Size     = new System.Drawing.Size(38, 18);
     this.label1.TabIndex = 4;
     this.label1.Text     = "From:";
     //
     // label2
     //
     this.label2.Location = new System.Drawing.Point(1, 36);
     this.label2.Name     = "label2";
     this.label2.Size     = new System.Drawing.Size(38, 18);
     this.label2.TabIndex = 4;
     this.label2.Text     = "To:";
     //
     // label3
     //
     this.label3.Location = new System.Drawing.Point(1, 62);
     this.label3.Name     = "label3";
     this.label3.Size     = new System.Drawing.Size(49, 18);
     this.label3.TabIndex = 4;
     this.label3.Text     = "Subject:";
     //
     // label4
     //
     this.label4.Location = new System.Drawing.Point(1, 80);
     this.label4.Name     = "label4";
     this.label4.Size     = new System.Drawing.Size(49, 18);
     this.label4.TabIndex = 4;
     this.label4.Text     = "Body:";
     //
     // button1
     //
     this.button1.Location = new System.Drawing.Point(95, 545);
     this.button1.Name     = "button1";
     this.button1.Size     = new System.Drawing.Size(75, 23);
     this.button1.TabIndex = 5;
     this.button1.Text     = "button1";
     this.button1.UseVisualStyleBackColor = true;
     this.button1.Click += new System.EventHandler(this.button1_Click);
     //
     // label5
     //
     this.label5.AutoSize = true;
     this.label5.Location = new System.Drawing.Point(177, 554);
     this.label5.Name     = "label5";
     this.label5.Size     = new System.Drawing.Size(0, 13);
     this.label5.TabIndex = 6;
     //
     // MainForm
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
     this.AutoScaleMode       = System.Windows.Forms.AutoScaleMode.Font;
     this.ClientSize          = new System.Drawing.Size(785, 581);
     this.Controls.Add(this.label5);
     this.Controls.Add(this.button1);
     this.Controls.Add(this.label4);
     this.Controls.Add(this.label3);
     this.Controls.Add(this.label2);
     this.Controls.Add(this.label1);
     this.Controls.Add(this.sendBtn);
     this.Controls.Add(this.bodyRTB);
     this.Controls.Add(this.subjectTB);
     this.Controls.Add(this.recieverTB);
     this.Controls.Add(this.comboBox1);
     this.Name  = "MainForm";
     this.Text  = "EmailSender";
     this.Load += new System.EventHandler(this.MainFormLoad);
     this.ResumeLayout(false);
     this.PerformLayout();
 }