Exemplo n.º 1
1
 /// <summary>
 /// Creates a new control instance.
 /// </summary>
 public NotificationPanel()
 {
     this.progressBar = new ProgressBar();
     this.labelProgress = new Label();
     this.pictureProgress = new PictureBox();
     ((System.ComponentModel.ISupportInitialize)(this.pictureProgress)).BeginInit();
     this.SuspendLayout();
     // progressBar
     this.progressBar.Location = new Point(62, 40);
     this.progressBar.Size = new Size(730, 16);
     this.progressBar.TabIndex = 1;
     this.progressBar.Visible = false;
     // labelProgress
     this.labelProgress.Location = new Point(62, 8);
     this.labelProgress.Size = new Size(730, 29);
     this.labelProgress.TabIndex = 0;
     this.labelProgress.TextAlign = ContentAlignment.MiddleLeft;
     // pictureProgress
     this.pictureProgress.Location = new Point(8, 8);
     this.pictureProgress.Size = new Size(48, 48);
     this.pictureProgress.TabIndex = 3;
     this.pictureProgress.TabStop = false;
     // Control.
     this.AutoScaleDimensions = new SizeF(6F, 13F);
     this.AutoScaleMode = AutoScaleMode.Font;
     this.Controls.Add(this.progressBar);
     this.Controls.Add(this.labelProgress);
     this.Controls.Add(this.pictureProgress);
     this.MaximumSize = new Size(0, 64);
     this.MinimumSize = new Size(0, 64);
     this.Size = new Size(800, 64);
     ((System.ComponentModel.ISupportInitialize)(this.pictureProgress)).EndInit();
     this.ResumeLayout(false);
 }
Exemplo n.º 2
1
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.StartupPanel = new System.Windows.Forms.Panel();
     this.OdeoLogo = new System.Windows.Forms.PictureBox();
     this.ProgressMeter = new System.Windows.Forms.ProgressBar();
     //
     // StartupPanel
     //
     this.StartupPanel.Controls.Add(this.ProgressMeter);
     this.StartupPanel.Controls.Add(this.OdeoLogo);
     this.StartupPanel.Location = new System.Drawing.Point(0, 3);
     this.StartupPanel.Size = new System.Drawing.Size(176, 194);
     //
     // OdeoLogo
     //
     this.OdeoLogo.Location = new System.Drawing.Point(42, 49);
     this.OdeoLogo.Size = new System.Drawing.Size(92, 39);
     //
     // ProgressMeter
     //
     this.ProgressMeter.Location = new System.Drawing.Point(42, 94);
     this.ProgressMeter.Size = new System.Drawing.Size(92, 6);
     //
     // FrmStartup
     //
     this.ClientSize = new System.Drawing.Size(176, 200);
     this.Controls.Add(this.StartupPanel);
     this.Text = "Odeo Syncr";
 }
Exemplo n.º 3
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(DlgInitProgress));
     this.progressBar = new System.Windows.Forms.ProgressBar();
     this.SuspendLayout();
     //
     // progressBar
     //
     this.progressBar.Location = new System.Drawing.Point(12, 38);
     this.progressBar.Name = "progressBar";
     this.progressBar.Size = new System.Drawing.Size(328, 24);
     this.progressBar.TabIndex = 3;
     //
     // DlgInitProgress
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.ClientSize = new System.Drawing.Size(352, 101);
     this.Controls.AddRange(new System.Windows.Forms.Control[] {
                                                                   this.progressBar});
     this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
     this.MaximizeBox = false;
     this.MinimizeBox = false;
     this.Name = "DlgInitProgress";
     this.ShowInTaskbar = false;
     this.Text = "Initializing New Language.  Please Wait...";
     this.ResumeLayout(false);
 }
Exemplo n.º 4
0
        private void FrmLogin_Load(object sender, EventArgs e)
        {
            Image img = CKGen.Properties.Resources.link;
            Bitmap myBitmap = new Bitmap(img);
            Icon myIcon = Icon.FromHandle(myBitmap.GetHicon());
            this.Icon = myIcon;

            this.bar = new ProgressBar();
            this.bar.Location = new System.Drawing.Point(18, 0);
            this.bar.Size = new System.Drawing.Size(367, 10);
            this.bar.Style = System.Windows.Forms.ProgressBarStyle.Marquee;
            this.bar.Visible = false;
            this.Controls.Add(bar);

            this.cbServerType.DataSource = typeof(DatabaseType).ToList();
            this.cbServerType.DisplayMember = "Value";
            this.cbServerType.ValueMember = "Key";

            this.btnOK.Enabled = false;

            var connList = ConnectionSetting.GetList();
            if (connList != null && connList.Count > 0)
            {
                cbServerName.DataSource = connList;
                cbServerName.DisplayMember = "ServerName";
                cbServerName.ValueMember = "ServerName";

                ShowServer(connList[0].ServerName);
            }

            this.AcceptButton = this.btnLogin;
        }
Exemplo n.º 5
0
        public static void SetProgressBarState(ProgressBar progressBar, int state)
        {
            if (progressBar == null)
                throw new ArgumentNullException("progressBar");

            SendMessage(new HandleRef(progressBar, progressBar.Handle), NativeMethods.PBM_SETSTATE, (IntPtr)state, IntPtr.Zero);
        }
Exemplo n.º 6
0
        public DownloadItem(int progressSize, string filename, string peerName, long fileSize)
        {
            progressBar = new ProgressBar();
            progressBar.Minimum = 1;
            progressBar.Maximum = progressSize;
            if (progressBar.Maximum == 0)
            {
                progressBar.Maximum = 1;
            }
            progressBar.Value = 1;
            progressBar.Step = 1024;
            progressBar.Visible = true;
            progressBar.Style = ProgressBarStyle.Blocks;
            progressBar.MaximumSize = progressBar.MinimumSize = progressBar.Size;

            filenameLabel = new Label();
            filenameLabel.Text = filename;
            filenameLabel.AutoSize = true;

            peerLabel = new Label();
            peerLabel.Text = peerName;

            sizeLabel = new Label();
            sizeLabel.Text = fileSize.ToString();

            removeButton = new Button();
            removeButton.Cursor = Cursors.Hand;
            removeButton.Text = "X";
            removeButton.Enabled = false;
            removeButton.FlatStyle = FlatStyle.Flat;
            removeButton.AutoSize = true;
            removeButton.AutoSizeMode = AutoSizeMode.GrowAndShrink;
        }
Exemplo n.º 7
0
 public WorkerBackup(config.Configuration configuration,ProgressBar aProgressBar)
 {
     this.folderDst = configuration.folderPathCipher;
     this.folderSrc = configuration.folderPathOrig;
     this.password = configuration.password;
     this.progressBar = aProgressBar;
 }
 public static void Dispose()
 {
     HideProgress();
     // do not use dispose here!
     _updateProgress = null;
     _currentOperationLabel = null;
 }
Exemplo n.º 9
0
		/// <summary>
		/// Initializes a new instance of the class.
		/// </summary>
		/// <param name="bar">Progress bar.</param>
		/// <param name="file">Sql script file</param>
		/// <param name="connection">Sql connection string</param>
		/// <param name="db">Sql server database name</param>
		public SqlProcess(ProgressBar bar, string file, string connection, string db)
		{
			this.progressBar = bar;
			this.scriptFile = file;
			this.connectionString = connection;
			this.database = db;
		}
Exemplo n.º 10
0
 /// <summary>
 /// �ϲ��ļ�
 /// </summary>
 /// <param name="list">Ҫ�ϲ����ļ�����</param>
 /// <param name="strPath">�ϲ�����ļ�����</param>
 /// <param name="PBar">��������ʾ</param>
 public void CombinFile(string[] strFile, string strPath, ProgressBar PBar)
 {
     PBar.Maximum = strFile.Length;
     FileStream AddStream = null;
     //�Ժϲ�����ļ����ƺʹ򿪷�ʽ����������ʼ��FileStream�ļ���
     AddStream = new FileStream(strPath, FileMode.Append);
     //��FileStream�ļ�������ʼ��BinaryWriter��д���������Ժϲ��ָ���ļ�
     BinaryWriter AddWriter = new BinaryWriter(AddStream);
     FileStream TempStream = null;
     BinaryReader TempReader = null;
     //ѭ���ϲ�С�ļ��������ɺϲ��ļ�
     for (int i = 0; i < strFile.Length; i++)
     {
         //��С�ļ�����Ӧ���ļ����ƺʹ�ģʽ����ʼ��FileStream�ļ��������ȡ�ָ�����
         TempStream = new FileStream(strFile[i].ToString(), FileMode.Open);
         TempReader = new BinaryReader(TempStream);
         //��ȡ�ָ��ļ��е����ݣ������ɺϲ����ļ�
         AddWriter.Write(TempReader.ReadBytes((int)TempStream.Length));
         //�ر�BinaryReader�ļ��Ķ���
         TempReader.Close();
         //�ر�FileStream�ļ���
         TempStream.Close();
         PBar.Value = i + 1;
     }
     //�ر�BinaryWriter�ļ���д��
     AddWriter.Close();
     //�ر�FileStream�ļ���
     AddStream.Close();
     MessageBox.Show("�ļ��ϲ��ɹ���");
 }
Exemplo n.º 11
0
        private void collision(PictureBox player, PictureBox weapon, ProgressBar health, System.Windows.Forms.Timer timer)
        {
            if (weapon.Left > this.Size.Width || weapon.Right < 0)
            {
                timer.Enabled  = false;
                weapon.Visible = false;
            }
            else if ((((weapon.Name == "spear") && (weapon.Right > player.Left + 15 ))
                  || ((weapon.Name == "fez")   && (weapon.Left < player.Right - 15)))
                  &&  (weapon.Bottom > player.Top + 5)
                  &&  (weapon.Top < player.Bottom - 5))
            {
                timer.Enabled  = false;
                weapon.Visible = false;
                health.Value -= 25;
                if (health.Value == 0)
                {
                    disableTimers(false);
                    stopSound();
                    playSound(health.Tag.ToString());
                    leonidas.Location = new Point(leonidas.Location.X, leonidas.Location.Y);
                    MessageBox.Show(weapon.Tag + " wins!");

                    this.Close();
                }
            }
        }
Exemplo n.º 12
0
 public EasyMYPProgressBarVisibilityEvent(ProgressBar pb, bool visible, int maximum, int value)
 {
     this.pb = pb;
     this.visible = visible;
     this.maximum = maximum;
     this.value = value;
 }
Exemplo n.º 13
0
        public void Display()
        {
            if (Fuben != null && Fuben.Tasks != null)
            {
                if (this.listViewEx1.Items.Count == 0)
                {
                    for (int i = 0; i < Fuben.Tasks.Count; i++)
                    {
                        var item = Fuben.Tasks[i];
                        var lvi = listViewEx1.Items.Add(item.Name);
                        lvi.SubItems.Add("");
                        lvi.SubItems.Add(item.ColdDownDisplay);

                        ProgressBar pb = new ProgressBar();
                        pb.Maximum = item.SumCount;
                        pb.Value = item.Count;
                        listViewEx1.AddEmbeddedControl(pb, 1, i);
                    }
                }
                else
                {
                    for (int i = 0; i < Fuben.Tasks.Count; i++)
                    {
                        var item = Fuben.Tasks[i];
                        var lvi = listViewEx1.Items[i];
                        lvi.SubItems[0].Text = item.Name;
                        lvi.SubItems[2].Text = item.ColdDownDisplay;

                        ProgressBar pb = (ProgressBar)listViewEx1.GetEmbeddedControl(1, i);
                        if (pb.Value != item.Count) pb.Value = item.Count;
                    }
                }
            }
        }
Exemplo n.º 14
0
 private void InitializeComponent()
 {
   this.label1 = new Label();
   this.progressBar = new ProgressBar();
   this.SuspendLayout();
   this.label1.Location = new Point(16, 16);
   this.label1.Name = "label1";
   this.label1.Size = new Size(105, 20);
   this.label1.TabIndex = 0;
   this.label1.Text = "Connecting...";
   this.label1.TextAlign = ContentAlignment.MiddleLeft;
   this.progressBar.Location = new Point(16, 40);
   this.progressBar.Name = "progressBar";
   this.progressBar.Size = new Size(236, 16);
   this.progressBar.Style = ProgressBarStyle.Marquee;
   this.progressBar.TabIndex = 1;
   this.AutoScaleDimensions = new SizeF(6f, 13f);
   this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
   this.ClientSize = new Size(271, 69);
   this.ControlBox = false;
   this.Controls.Add((Control) this.progressBar);
   this.Controls.Add((Control) this.label1);
   this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
   this.MaximizeBox = false;
   this.MinimizeBox = false;
   this.Name = "ProviderHelperForm";
   this.ShowIcon = false;
   this.ShowInTaskbar = false;
   this.StartPosition = FormStartPosition.CenterParent;
   this.Text = "ProviderHelperForm";
   this.ResumeLayout(false);
 }
        private void InitializeComponent()
        {
            this.lbCaption = new System.Windows.Forms.Label();
            this.pbProgress = new System.Windows.Forms.ProgressBar();
            this.SuspendLayout();
            // 
            // lbCaption
            // 
            this.lbCaption.AutoSize = true;
            this.lbCaption.Location = new System.Drawing.Point(3, 0);
            this.lbCaption.Name = "lbCaption";
            this.lbCaption.Size = new System.Drawing.Size(51, 13);
            this.lbCaption.TabIndex = 0;
            this.lbCaption.Text = "lbCaption";
            // 
            // pbProgress
            // 
            this.pbProgress.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 
            | System.Windows.Forms.AnchorStyles.Left)));
            this.pbProgress.Location = new System.Drawing.Point(3, 16);
            this.pbProgress.Name = "pbProgress";
            this.pbProgress.Size = new System.Drawing.Size(154, 23);
            this.pbProgress.TabIndex = 1;
            // 
            // ProgressControl
            // 
            this.AutoSize = true;
            this.Controls.Add(this.pbProgress);
            this.Controls.Add(this.lbCaption);
            this.Name = "ProgressControl";
            this.Size = new System.Drawing.Size(160, 42);
            this.ResumeLayout(false);
            this.PerformLayout();

        }
Exemplo n.º 16
0
        // Main wrapper that assembles the ROM based on the following specifications:
        internal static bool buildROM(bool Card2, string LOGO_NAME,
            string EXEFS_PATH, string ROMFS_PATH, string EXHEADER_PATH,
            string SERIAL_TEXT, string SAVE_PATH,
            ProgressBar PB_Show = null, RichTextBox TB_Progress = null)
        {
            PB_Show = PB_Show ?? new ProgressBar();
            TB_Progress = TB_Progress ?? new RichTextBox();

            // Sanity check the input files.
            if (!
                ((File.Exists(EXEFS_PATH) || Directory.Exists(EXEFS_PATH))
                && (File.Exists(ROMFS_PATH) || Directory.Exists(ROMFS_PATH))
                && File.Exists(EXHEADER_PATH)))
                return false;

            // If ExeFS and RomFS are not built, build.
            if (!File.Exists(EXEFS_PATH) && Directory.Exists(EXEFS_PATH))
                ExeFS.set(Directory.GetFiles(EXEFS_PATH), EXEFS_PATH = "exefs.bin");
            if (!File.Exists(ROMFS_PATH) && Directory.Exists(ROMFS_PATH))
                RomFS.BuildRomFS(ROMFS_PATH, ROMFS_PATH = "romfs.bin", TB_Progress, PB_Show);

            NCCH NCCH = setNCCH(EXEFS_PATH, ROMFS_PATH, EXHEADER_PATH, SERIAL_TEXT, LOGO_NAME, PB_Show, TB_Progress);
            NCSD NCSD = setNCSD(NCCH, Card2, PB_Show, TB_Progress);
            bool success = writeROM(NCSD, SAVE_PATH, PB_Show, TB_Progress);
            return success;
        }
Exemplo n.º 17
0
 /// <summary>
 /// Find the numbe of tags in a given XML
 /// </summary>
 /// <param name="pb">Progress bar</param>
 /// <param name="sourcefile">Source XML File</param>
 public static void SetProgressBarValue(ProgressBar pb, string sourcefile)
 {
     if (pb == null) return;
     int setValue = 0;
     if (File.Exists(sourcefile))
     {
         var streamReader = new StreamReader(sourcefile);
         string text = string.Empty;
         try
         {
             //throw new System.OutOfMemoryException(" ");
             text = streamReader.ReadToEnd();
         }
         catch (OutOfMemoryException ex)
         {
             Console.Write(ex.Message);
         }
         streamReader.Close();
         var reg = new Regex("</", RegexOptions.Multiline);
         MatchCollection mat = reg.Matches(text);
         setValue = mat.Count;
     }
     pb.Minimum = 0;
     pb.Maximum = setValue;
     pb.Visible = true;
 }
Exemplo n.º 18
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.progressExplain = new System.Windows.Forms.ProgressBar();
     this.lblMsg = new System.Windows.Forms.Label();
     this.SuspendLayout();
     //
     // progressExplain
     //
     this.progressExplain.Location = new System.Drawing.Point(8, 8);
     this.progressExplain.Name = "progressExplain";
     this.progressExplain.Size = new System.Drawing.Size(152, 23);
     this.progressExplain.TabIndex = 0;
     //
     // lblMsg
     //
     this.lblMsg.Location = new System.Drawing.Point(8, 40);
     this.lblMsg.Name = "lblMsg";
     this.lblMsg.Size = new System.Drawing.Size(152, 16);
     this.lblMsg.TabIndex = 1;
     //
     // Progress
     //
     this.ClientSize = new System.Drawing.Size(170, 66);
     this.ControlBox = false;
     this.Controls.AddRange(new System.Windows.Forms.Control[] {
                                                                   this.lblMsg,
                                                                   this.progressExplain});
     this.Cursor = System.Windows.Forms.Cursors.WaitCursor;
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow;
     this.Name = "Progress";
     this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
     this.Text = " Action progress";
     this.ResumeLayout(false);
 }
Exemplo n.º 19
0
 private void InitializeComponent()
 {
     this.progressBar1 = new System.Windows.Forms.ProgressBar();
     this.SuspendLayout();
     //
     // progressBar1
     //
     this.progressBar1.Location = new System.Drawing.Point(15, 15);
     this.progressBar1.Name = "progressBar1";
     this.progressBar1.Size = new System.Drawing.Size(290, 20);
     this.progressBar1.Style = System.Windows.Forms.ProgressBarStyle.Marquee;
     this.progressBar1.TabIndex = 0;
     //
     // ProcessDialog
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(15F, 15F);
     this.ClientSize = new System.Drawing.Size(340, 90);
     this.Controls.Add(this.progressBar1);
     this.MaximizeBox = false;
     this.MaximumSize = new System.Drawing.Size(340, 90);
     this.MinimizeBox = false;
     this.MinimumSize = new System.Drawing.Size(340, 90);
     this.Name = "ProcessDialog";
     this.Text = "LIP2GIF | 作業動画をデスクトップに書き出し中";
     this.Load += new System.EventHandler(this.NoControlForm_Load);
     this.ResumeLayout(false);
 }
Exemplo n.º 20
0
        /// <summary>
        /// Required method for Designer support - do not modify
        /// the contents of this method with the code editor.
        /// </summary>
        private void InitializeComponent()
        {
            this.progressBar = new System.Windows.Forms.ProgressBar();
            this.cancelButton = new System.Windows.Forms.Button();
            this.SuspendLayout();
            // 
            // progressBar
            // 
            this.progressBar.Location = new System.Drawing.Point(16, 16);
            this.progressBar.Name = "progressBar";
            this.progressBar.Size = new System.Drawing.Size(560, 16);
            this.progressBar.TabIndex = 0;
            // 
            // cancelButton
            // 
            this.cancelButton.DialogResult = System.Windows.Forms.DialogResult.Cancel;
            this.cancelButton.Location = new System.Drawing.Point(264, 48);
            this.cancelButton.Name = "cancelButton";
            this.cancelButton.Size = new System.Drawing.Size(75, 23);
            this.cancelButton.TabIndex = 1;
            this.cancelButton.Text = "Cancel";
            // 
            // ProgressForm
            // 
            this.CancelButton = this.cancelButton;
            this.ClientSize = new System.Drawing.Size(594, 87);
            this.Controls.Add(this.cancelButton);
            this.Controls.Add(this.progressBar);
            this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
            this.Name = "ProgressForm";
            this.Text = "Progress";
            this.TopMost = true;
            this.ResumeLayout(false);

        }
Exemplo n.º 21
0
        //下载网络文件
        /// <summary>
        /// 下载网络文件 带进度条
        /// </summary>
        /// <param name="URL"></param>
        /// <param name="fileName"></param>
        /// <param name="progressBar1"></param>
        /// <returns></returns>
        public static bool DownloadFile(string URL, string fileName,ProgressBar progressBar1)
        {
            try
            {
                System.Net.HttpWebRequest httpWebRequest1 = (System.Net.HttpWebRequest)System.Net.HttpWebRequest.Create(URL);
                System.Net.HttpWebResponse httpWebResponse1 = (System.Net.HttpWebResponse)httpWebRequest1.GetResponse();

                long totalLength = httpWebResponse1.ContentLength;
                progressBar1.Maximum = (int)totalLength;

                System.IO.Stream stream1 = httpWebResponse1.GetResponseStream();
                System.IO.Stream stream2 = new System.IO.FileStream(fileName, System.IO.FileMode.Create);

                long currentLength = 0;
                byte[] by = new byte[1024];
                int osize = stream1.Read(by, 0, (int)by.Length);
                while (osize > 0)
                {
                    currentLength = osize + currentLength;
                    stream2.Write(by, 0, osize);

                    progressBar1.Value = (int)currentLength;
                    osize = stream1.Read(by, 0, (int)by.Length);
                }

                stream2.Close();
                stream1.Close();

                return (currentLength == totalLength);
            }
            catch
            {
                return false;
            }
        }
Exemplo n.º 22
0
 protected void SetUp()
 {
     Common.Testing = true;
     //_styleName = new Styles();
     //_util = new Utility();
     _projInfo = new PublicationInformation();
     _errorFile = Common.PathCombine(Path.GetTempPath(), "temp.odt");
     _progressBar = new ProgressBar();
     string testPath = PathPart.Bin(Environment.CurrentDirectory, "/OpenOfficeConvert/TestFiles");
     _inputPath = Common.PathCombine(testPath, "input");
     _outputPath = Common.PathCombine(testPath, "output");
     _expectedPath = Common.PathCombine(testPath, "expected");
     //if (Directory.Exists(_outputPath))
     //{
     //    Directory.Delete(_outputPath, true);
     //}
     Common.DeleteDirectory(_outputPath);
     Directory.CreateDirectory(_outputPath);
     FolderTree.Copy(FileInput("Pictures"), FileOutput("Pictures"));
     _projInfo.ProgressBar = _progressBar;
     _projInfo.OutputExtension = "odt";
     _projInfo.ProjectInputType = "Dictionary";
     _projInfo.IsFrontMatterEnabled = false;
     _projInfo.FinalOutput = "odt";
     Common.SupportFolder = "";
     Common.ProgInstall = PathPart.Bin(Environment.CurrentDirectory, "/../../DistFIles");
     Common.ProgBase = PathPart.Bin(Environment.CurrentDirectory, "/../../DistFiles"); // for masterDocument
     _styleFile = "styles.xml";
     _contentFile = "content.xml";
     _isLinux = Common.IsUnixOS();
 }
Exemplo n.º 23
0
 private void InitializeComponent()
 {
     this.pbProgressBar = new System.Windows.Forms.ProgressBar();
     this.SuspendLayout();
     //
     // pbProgressBar
     //
     this.pbProgressBar.Cursor = System.Windows.Forms.Cursors.Default;
     this.pbProgressBar.Location = new System.Drawing.Point(12, 12);
     this.pbProgressBar.Name = "pbProgressBar";
     this.pbProgressBar.Size = new System.Drawing.Size(237, 23);
     this.pbProgressBar.Step = 1;
     this.pbProgressBar.Style = System.Windows.Forms.ProgressBarStyle.Marquee;
     this.pbProgressBar.TabIndex = 0;
     //
     // WaitingForm
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
     this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
     this.ClientSize = new System.Drawing.Size(262, 53);
     this.Controls.Add(this.pbProgressBar);
     this.Name = "WaitingForm";
     this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
     this.Text = "Please wait...";
     this.ResumeLayout(false);
 }
Exemplo n.º 24
0
        public void StartDownload(ProgressBar pb, String url, String name)
        {

           

            Thread t = new Thread(() =>
            {
                WebClient webClient = new WebClient();
                webClient.Headers["User-Agent"] = "Mozilla/5.0";
                webClient.DownloadProgressChanged += delegate(object sender, DownloadProgressChangedEventArgs args)
                {                   
                    double percentage = (double.Parse(args.BytesReceived.ToString()) /double.Parse(args.TotalBytesToReceive.ToString())) * 100;
                    Debug.Print(percentage.ToString());
                    pb.Invoke((MethodInvoker) delegate
                    {
                        pb.Value = (int)Math.Truncate(percentage);
                    });

                };


                webClient.DownloadFile(new Uri(url), Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) + "\\BetterDiscord\\temp\\" + name);

            });

            t.Start();
        }
Exemplo n.º 25
0
 private void checkClip(ProgressBar pb)
 {
     if (pb.ForeColor == SystemColors.ActiveCaption && pb.Value >= pb.Maximum)
         pb.ForeColor = Color.FromArgb(255, 0, 0);
     else if(pb.ForeColor == Color.FromArgb(255, 0, 0))
         pb.ForeColor = SystemColors.ActiveCaption;
 }
Exemplo n.º 26
0
 private void InitializeComponent()
 {
     this.loadMapProgressBar = new System.Windows.Forms.ProgressBar();
     this.lblLoading = new Label();
     base.SuspendLayout();
     this.loadMapProgressBar.Location = new System.Drawing.Point(1, 1);
     this.loadMapProgressBar.Name = "loadMapProgressBar";
     this.loadMapProgressBar.Size = new Size(0x1cb, 0x13);
     this.loadMapProgressBar.TabIndex = 3;
     this.lblLoading.AutoSize = true;
     this.lblLoading.Location = new System.Drawing.Point(3, 20);
     this.lblLoading.Name = "lblLoading";
     this.lblLoading.Size = new Size(0x41, 12);
     this.lblLoading.TabIndex = 4;
     this.lblLoading.Text = CommonResource.TASK_EXCUTING;
     base.AutoScaleDimensions = new SizeF(6f, 12f);
     //base.AutoScaleMode = AutoScaleMode.Font;
     base.ClientSize = new Size(0x1ce, 0x26);
     base.Controls.Add(this.lblLoading);
     base.Controls.Add(this.loadMapProgressBar);
     base.FormBorderStyle = FormBorderStyle.None;
     base.MaximizeBox = false;
     base.MinimizeBox = false;
     base.Name = "RunProgressBarFrm";
     base.ShowIcon = false;
     base.ShowInTaskbar = false;
     base.StartPosition = FormStartPosition.CenterScreen;
     this.Text = CommonResource.TASK_EXCUTING;
     base.ResumeLayout(false);
     base.PerformLayout();
 }
Exemplo n.º 27
0
 public void changeprogressbar(ProgressBar progressBar, int stepcnt)
 {
     if ((progressBar.Value + stepcnt > progressBar.Minimum) && (progressBar.Value + stepcnt <= progressBar.Maximum))
     {
         progressBar.SafeInvoke(d => d.Value = progressBar.Value + stepcnt);
     }
 }
Exemplo n.º 28
0
        public UpdateForm()
        {
            this.StartPosition = FormStartPosition.CenterScreen;
            this.ClientSize = new Size(220, 90);
            this.FormBorderStyle = FormBorderStyle.FixedSingle;
            this.MaximizeBox = false;
            this.MinimizeBox = false;
            this.ControlBox = false;
            this.ShowInTaskbar = false;

            this.Controls.Add(l_Info = new Label());
            l_Info.Location = new Point(0, 0);
            l_Info.Size = new Size(220, 60);
            l_Info.TextAlign = ContentAlignment.MiddleCenter;
            l_Info.Font = new Font(l_Info.Font.ToString(), 10f);

            ProgressBar p_Status;
            this.Controls.Add(p_Status = new ProgressBar());
            p_Status.Location = new Point(10, 60);
            p_Status.Size = new Size(200, 20);
            p_Status.Style = ProgressBarStyle.Marquee;

            t_Work = new Thread(AppUpdate);
            t_Work.Start();
        }
Exemplo n.º 29
0
		/// <summary>
		/// Required method for Designer support - do not modify
		/// the contents of this method with the code editor.
		/// </summary>
		private void InitializeComponent()
		{
			this.PBar = new System.Windows.Forms.ProgressBar();
			this.SuspendLayout();
			// 
			// Description
			// 
			this.Description.Name = "Description";
			this.Description.Text = "The wizard has finished collecting information and is now ready to update your sy" +
				"stem. Press Next to continue.";
			// 
			// PBar
			// 
			this.PBar.Location = new System.Drawing.Point(40, 200);
			this.PBar.Maximum = 7;
			this.PBar.Name = "PBar";
			this.PBar.Size = new System.Drawing.Size(392, 23);
			this.PBar.Step = 1;
			this.PBar.TabIndex = 2;
			// 
			// S5_Install
			// 
			this.Controls.Add(this.PBar);
			this.Name = "S5_Install";
			this.NextStep = "Finish";
			this.PreviousStep = "S4_Modules";
			this.StepDescription = "The wizard has finished collecting information and is now ready to update your sy" +
				"stem. Press Next to continue.";
			this.StepTitle = "Install";
			this.ValidateStep += new System.ComponentModel.CancelEventHandler(this.S5_Install_ValidateStep);
			this.Controls.SetChildIndex(this.Description, 0);
			this.Controls.SetChildIndex(this.PBar, 0);
			this.ResumeLayout(false);

		}
Exemplo n.º 30
0
Arquivo: Form1.cs Projeto: 4dvn/yeti
 /// <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.label1          = new System.Windows.Forms.Label();
     this.textBoxInFile   = new System.Windows.Forms.TextBox();
     this.label2          = new System.Windows.Forms.Label();
     this.textBoxOutFile  = new System.Windows.Forms.TextBox();
     this.buttonInFile    = new System.Windows.Forms.Button();
     this.buttonOutFile   = new System.Windows.Forms.Button();
     this.openFileDialog1 = new System.Windows.Forms.OpenFileDialog();
     this.saveFileDialog1 = new System.Windows.Forms.SaveFileDialog();
     this.buttonConfig    = new System.Windows.Forms.Button();
     this.buttonCompress  = new System.Windows.Forms.Button();
     this.groupBox1       = new System.Windows.Forms.GroupBox();
     this.toolTip1        = new System.Windows.Forms.ToolTip(this.components);
     this.mainMenu1       = new System.Windows.Forms.MainMenu();
     this.menuItem1       = new System.Windows.Forms.MenuItem();
     this.progressBar     = new System.Windows.Forms.ProgressBar();
     this.SuspendLayout();
     //
     // label1
     //
     this.label1.Location = new System.Drawing.Point(8, 0);
     this.label1.Name     = "label1";
     this.label1.Size     = new System.Drawing.Size(100, 16);
     this.label1.TabIndex = 0;
     this.label1.Text     = "Wave file:";
     //
     // textBoxInFile
     //
     this.textBoxInFile.Location = new System.Drawing.Point(8, 16);
     this.textBoxInFile.Name     = "textBoxInFile";
     this.textBoxInFile.ReadOnly = true;
     this.textBoxInFile.Size     = new System.Drawing.Size(256, 20);
     this.textBoxInFile.TabIndex = 1;
     this.textBoxInFile.Text     = "";
     this.toolTip1.SetToolTip(this.textBoxInFile, "Input file");
     this.textBoxInFile.TextChanged += new System.EventHandler(this.textBoxInFile_TextChanged);
     //
     // label2
     //
     this.label2.Location = new System.Drawing.Point(8, 40);
     this.label2.Name     = "label2";
     this.label2.Size     = new System.Drawing.Size(100, 16);
     this.label2.TabIndex = 2;
     this.label2.Text     = "Compressed file:";
     //
     // textBoxOutFile
     //
     this.textBoxOutFile.Enabled  = false;
     this.textBoxOutFile.Location = new System.Drawing.Point(8, 56);
     this.textBoxOutFile.Name     = "textBoxOutFile";
     this.textBoxOutFile.ReadOnly = true;
     this.textBoxOutFile.Size     = new System.Drawing.Size(256, 20);
     this.textBoxOutFile.TabIndex = 3;
     this.textBoxOutFile.Text     = "";
     this.toolTip1.SetToolTip(this.textBoxOutFile, "Output file");
     //
     // buttonInFile
     //
     this.buttonInFile.Location = new System.Drawing.Point(272, 16);
     this.buttonInFile.Name     = "buttonInFile";
     this.buttonInFile.TabIndex = 4;
     this.buttonInFile.Text     = "Browse...";
     this.toolTip1.SetToolTip(this.buttonInFile, "Select the input wave file");
     this.buttonInFile.Click += new System.EventHandler(this.buttonInFile_Click);
     //
     // buttonOutFile
     //
     this.buttonOutFile.Enabled  = false;
     this.buttonOutFile.Location = new System.Drawing.Point(272, 56);
     this.buttonOutFile.Name     = "buttonOutFile";
     this.buttonOutFile.TabIndex = 5;
     this.buttonOutFile.Text     = "Browse...";
     this.toolTip1.SetToolTip(this.buttonOutFile, "Change the output file name or location");
     this.buttonOutFile.Click += new System.EventHandler(this.buttonOutFile_Click);
     //
     // openFileDialog1
     //
     this.openFileDialog1.DefaultExt = "wav";
     this.openFileDialog1.Filter     = "Wave files (*.wav)|*.wav|All files (*.*)|*.*\"";
     this.openFileDialog1.Title      = "Wave file to compress";
     //
     // saveFileDialog1
     //
     this.saveFileDialog1.DefaultExt = "mp3";
     this.saveFileDialog1.Filter     = "MP3 files (*.mp3)|*.mp3|All files (*.*)|*.*\"";
     this.saveFileDialog1.Title      = "Compressed file";
     //
     // buttonConfig
     //
     this.buttonConfig.Enabled  = false;
     this.buttonConfig.Location = new System.Drawing.Point(184, 112);
     this.buttonConfig.Name     = "buttonConfig";
     this.buttonConfig.TabIndex = 6;
     this.buttonConfig.Text     = "Config...";
     this.toolTip1.SetToolTip(this.buttonConfig, "Configure the compressor");
     this.buttonConfig.Click += new System.EventHandler(this.buttonConfig_Click);
     //
     // buttonCompress
     //
     this.buttonCompress.Enabled  = false;
     this.buttonCompress.Location = new System.Drawing.Point(272, 112);
     this.buttonCompress.Name     = "buttonCompress";
     this.buttonCompress.TabIndex = 7;
     this.buttonCompress.Text     = "Compress";
     this.toolTip1.SetToolTip(this.buttonCompress, "Convert the wave file to the selected format");
     this.buttonCompress.Click += new System.EventHandler(this.buttonCompress_Click);
     //
     // groupBox1
     //
     this.groupBox1.Location = new System.Drawing.Point(8, 96);
     this.groupBox1.Name     = "groupBox1";
     this.groupBox1.Size     = new System.Drawing.Size(336, 8);
     this.groupBox1.TabIndex = 8;
     this.groupBox1.TabStop  = false;
     //
     // mainMenu1
     //
     this.mainMenu1.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
         this.menuItem1
     });
     //
     // menuItem1
     //
     this.menuItem1.Index  = 0;
     this.menuItem1.Text   = "About...";
     this.menuItem1.Click += new System.EventHandler(this.menuItem1_Click);
     //
     // progressBar
     //
     this.progressBar.Dock     = System.Windows.Forms.DockStyle.Bottom;
     this.progressBar.Location = new System.Drawing.Point(0, 139);
     this.progressBar.Name     = "progressBar";
     this.progressBar.Size     = new System.Drawing.Size(352, 16);
     this.progressBar.TabIndex = 9;
     //
     // Form1
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.ClientSize        = new System.Drawing.Size(352, 155);
     this.Controls.Add(this.progressBar);
     this.Controls.Add(this.groupBox1);
     this.Controls.Add(this.buttonCompress);
     this.Controls.Add(this.buttonConfig);
     this.Controls.Add(this.buttonOutFile);
     this.Controls.Add(this.buttonInFile);
     this.Controls.Add(this.textBoxOutFile);
     this.Controls.Add(this.label2);
     this.Controls.Add(this.textBoxInFile);
     this.Controls.Add(this.label1);
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
     this.MaximizeBox     = false;
     this.Menu            = this.mainMenu1;
     this.Name            = "Form1";
     this.Text            = "Audio Compress";
     this.Closing        += new System.ComponentModel.CancelEventHandler(this.Form1_Closing);
     this.Load           += new System.EventHandler(this.Form1_Load);
     this.ResumeLayout(false);
 }
Exemplo n.º 31
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.buttonAddFile        = new System.Windows.Forms.Button();
     this.openFileDialog       = new System.Windows.Forms.OpenFileDialog();
     this.progressBarLeft      = new System.Windows.Forms.ProgressBar();
     this.label1               = new System.Windows.Forms.Label();
     this.progressBarRight     = new System.Windows.Forms.ProgressBar();
     this.label2               = new System.Windows.Forms.Label();
     this.labelTime            = new System.Windows.Forms.Label();
     this.pictureBoxWaveForm   = new System.Windows.Forms.PictureBox();
     this.listBoxPlaylist      = new System.Windows.Forms.ListBox();
     this.timerUpdate          = new System.Windows.Forms.Timer(this.components);
     this.labelArtist          = new System.Windows.Forms.Label();
     this.labelTitle           = new System.Windows.Forms.Label();
     this.labelRemain          = new System.Windows.Forms.Label();
     this.label3               = new System.Windows.Forms.Label();
     this.label4               = new System.Windows.Forms.Label();
     this.buttonSetEnvelope    = new System.Windows.Forms.Button();
     this.buttonRemoveEnvelope = new System.Windows.Forms.Button();
     ((System.ComponentModel.ISupportInitialize)(this.pictureBoxWaveForm)).BeginInit();
     this.SuspendLayout();
     //
     // buttonAddFile
     //
     this.buttonAddFile.Location = new System.Drawing.Point(12, 242);
     this.buttonAddFile.Name     = "buttonAddFile";
     this.buttonAddFile.Size     = new System.Drawing.Size(206, 23);
     this.buttonAddFile.TabIndex = 0;
     this.buttonAddFile.Text     = "Add Track to Playlist...";
     this.buttonAddFile.Click   += new System.EventHandler(this.buttonAddFile_Click);
     //
     // openFileDialog
     //
     this.openFileDialog.Filter = "Audio Files (*.mp3;*.ogg;*.wav)|*.mp3;*.ogg;*.wav";
     this.openFileDialog.Title  = "Select an audio file to play";
     //
     // progressBarLeft
     //
     this.progressBarLeft.Location = new System.Drawing.Point(391, 12);
     this.progressBarLeft.Maximum  = 32768;
     this.progressBarLeft.Name     = "progressBarLeft";
     this.progressBarLeft.Size     = new System.Drawing.Size(181, 12);
     this.progressBarLeft.Step     = 1;
     this.progressBarLeft.TabIndex = 9;
     //
     // label1
     //
     this.label1.Location = new System.Drawing.Point(378, 12);
     this.label1.Name     = "label1";
     this.label1.Size     = new System.Drawing.Size(16, 12);
     this.label1.TabIndex = 8;
     this.label1.Text     = "L";
     //
     // progressBarRight
     //
     this.progressBarRight.Location = new System.Drawing.Point(391, 28);
     this.progressBarRight.Maximum  = 32768;
     this.progressBarRight.Name     = "progressBarRight";
     this.progressBarRight.Size     = new System.Drawing.Size(181, 12);
     this.progressBarRight.Step     = 1;
     this.progressBarRight.TabIndex = 11;
     //
     // label2
     //
     this.label2.Location = new System.Drawing.Point(378, 28);
     this.label2.Name     = "label2";
     this.label2.Size     = new System.Drawing.Size(16, 12);
     this.label2.TabIndex = 10;
     this.label2.Text     = "R";
     //
     // labelTime
     //
     this.labelTime.Font      = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.labelTime.Location  = new System.Drawing.Point(236, 27);
     this.labelTime.Name      = "labelTime";
     this.labelTime.Size      = new System.Drawing.Size(65, 15);
     this.labelTime.TabIndex  = 12;
     this.labelTime.Text      = "00:00:00";
     this.labelTime.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
     //
     // pictureBoxWaveForm
     //
     this.pictureBoxWaveForm.BackColor    = System.Drawing.Color.WhiteSmoke;
     this.pictureBoxWaveForm.ErrorImage   = null;
     this.pictureBoxWaveForm.InitialImage = null;
     this.pictureBoxWaveForm.Location     = new System.Drawing.Point(12, 46);
     this.pictureBoxWaveForm.Name         = "pictureBoxWaveForm";
     this.pictureBoxWaveForm.Size         = new System.Drawing.Size(560, 63);
     this.pictureBoxWaveForm.TabIndex     = 15;
     this.pictureBoxWaveForm.TabStop      = false;
     this.pictureBoxWaveForm.MouseDown   += new System.Windows.Forms.MouseEventHandler(this.pictureBoxWaveForm_MouseDown);
     //
     // listBoxPlaylist
     //
     this.listBoxPlaylist.FormattingEnabled = true;
     this.listBoxPlaylist.Location          = new System.Drawing.Point(12, 115);
     this.listBoxPlaylist.Name     = "listBoxPlaylist";
     this.listBoxPlaylist.Size     = new System.Drawing.Size(560, 121);
     this.listBoxPlaylist.TabIndex = 16;
     //
     // timerUpdate
     //
     this.timerUpdate.Interval = 50;
     this.timerUpdate.Tick    += new System.EventHandler(this.timerUpdate_Tick);
     //
     // labelArtist
     //
     this.labelArtist.Location = new System.Drawing.Point(12, 9);
     this.labelArtist.Name     = "labelArtist";
     this.labelArtist.Size     = new System.Drawing.Size(218, 13);
     this.labelArtist.TabIndex = 8;
     this.labelArtist.Text     = "Artist";
     //
     // labelTitle
     //
     this.labelTitle.Location = new System.Drawing.Point(12, 27);
     this.labelTitle.Name     = "labelTitle";
     this.labelTitle.Size     = new System.Drawing.Size(218, 13);
     this.labelTitle.TabIndex = 10;
     this.labelTitle.Text     = "Title";
     //
     // labelRemain
     //
     this.labelRemain.Font      = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.labelRemain.Location  = new System.Drawing.Point(307, 27);
     this.labelRemain.Name      = "labelRemain";
     this.labelRemain.Size      = new System.Drawing.Size(65, 15);
     this.labelRemain.TabIndex  = 12;
     this.labelRemain.Text      = "00:00:00";
     this.labelRemain.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
     //
     // label3
     //
     this.label3.AutoSize = true;
     this.label3.Location = new System.Drawing.Point(236, 9);
     this.label3.Name     = "label3";
     this.label3.Size     = new System.Drawing.Size(44, 13);
     this.label3.TabIndex = 8;
     this.label3.Text     = "Elapsed";
     //
     // label4
     //
     this.label4.AutoSize = true;
     this.label4.Location = new System.Drawing.Point(307, 9);
     this.label4.Name     = "label4";
     this.label4.Size     = new System.Drawing.Size(42, 13);
     this.label4.TabIndex = 8;
     this.label4.Text     = "Remain";
     //
     // buttonSetEnvelope
     //
     this.buttonSetEnvelope.Location = new System.Drawing.Point(346, 242);
     this.buttonSetEnvelope.Name     = "buttonSetEnvelope";
     this.buttonSetEnvelope.Size     = new System.Drawing.Size(110, 23);
     this.buttonSetEnvelope.TabIndex = 0;
     this.buttonSetEnvelope.Text     = "Set Envelope";
     this.buttonSetEnvelope.Click   += new System.EventHandler(this.buttonSetEnvelope_Click);
     //
     // buttonRemoveEnvelope
     //
     this.buttonRemoveEnvelope.Location = new System.Drawing.Point(462, 242);
     this.buttonRemoveEnvelope.Name     = "buttonRemoveEnvelope";
     this.buttonRemoveEnvelope.Size     = new System.Drawing.Size(110, 23);
     this.buttonRemoveEnvelope.TabIndex = 0;
     this.buttonRemoveEnvelope.Text     = "Remove Envelope";
     this.buttonRemoveEnvelope.Click   += new System.EventHandler(this.buttonRemoveEnvelope_Click);
     //
     // SimpleMix
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 14);
     this.ClientSize        = new System.Drawing.Size(584, 276);
     this.Controls.Add(this.listBoxPlaylist);
     this.Controls.Add(this.pictureBoxWaveForm);
     this.Controls.Add(this.labelRemain);
     this.Controls.Add(this.labelTime);
     this.Controls.Add(this.progressBarRight);
     this.Controls.Add(this.labelTitle);
     this.Controls.Add(this.label2);
     this.Controls.Add(this.progressBarLeft);
     this.Controls.Add(this.labelArtist);
     this.Controls.Add(this.label4);
     this.Controls.Add(this.label3);
     this.Controls.Add(this.label1);
     this.Controls.Add(this.buttonRemoveEnvelope);
     this.Controls.Add(this.buttonSetEnvelope);
     this.Controls.Add(this.buttonAddFile);
     this.Font     = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.Name     = "SimpleMix";
     this.Text     = "Simple Mixer";
     this.Closing += new System.ComponentModel.CancelEventHandler(this.Simple_Closing);
     this.Load    += new System.EventHandler(this.Simple_Load);
     ((System.ComponentModel.ISupportInitialize)(this.pictureBoxWaveForm)).EndInit();
     this.ResumeLayout(false);
     this.PerformLayout();
 }
Exemplo n.º 32
0
 private void InitializeComponent()
 {
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(ConfigFirmware));
     this.pictureBoxAPM             = new MissionPlanner.Controls.ImageLabel();
     this.pictureBoxQuad            = new MissionPlanner.Controls.ImageLabel();
     this.pictureBoxHexa            = new MissionPlanner.Controls.ImageLabel();
     this.pictureBoxTri             = new MissionPlanner.Controls.ImageLabel();
     this.pictureBoxY6              = new MissionPlanner.Controls.ImageLabel();
     this.lbl_status                = new System.Windows.Forms.Label();
     this.progress                  = new System.Windows.Forms.ProgressBar();
     this.label2                    = new System.Windows.Forms.Label();
     this.pictureBoxHeli            = new MissionPlanner.Controls.ImageLabel();
     this.pictureBoxHilimage        = new System.Windows.Forms.PictureBox();
     this.pictureBoxAPHil           = new System.Windows.Forms.PictureBox();
     this.pictureBoxACHil           = new System.Windows.Forms.PictureBox();
     this.pictureBoxACHHil          = new System.Windows.Forms.PictureBox();
     this.pictureBoxOcta            = new MissionPlanner.Controls.ImageLabel();
     this.pictureBoxOctaQuad        = new MissionPlanner.Controls.ImageLabel();
     this.pictureBoxRover           = new MissionPlanner.Controls.ImageLabel();
     this.label1                    = new System.Windows.Forms.Label();
     this.CMB_history               = new System.Windows.Forms.ComboBox();
     this.CMB_history_label         = new System.Windows.Forms.Label();
     this.lbl_Custom_firmware_label = new System.Windows.Forms.Label();
     this.lbl_devfw                 = new System.Windows.Forms.Label();
     this.lbl_px4io                 = new System.Windows.Forms.Label();
     this.lbl_dlfw                  = new System.Windows.Forms.Label();
     this.lbl_px4bl                 = new System.Windows.Forms.Label();
     ((System.ComponentModel.ISupportInitialize)(this.pictureBoxHilimage)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.pictureBoxAPHil)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.pictureBoxACHil)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.pictureBoxACHHil)).BeginInit();
     this.SuspendLayout();
     //
     // pictureBoxAPM
     //
     this.pictureBoxAPM.Cursor = System.Windows.Forms.Cursors.Hand;
     this.pictureBoxAPM.Image  = global::MissionPlanner.Properties.Resources.APM_airframes_001;
     resources.ApplyResources(this.pictureBoxAPM, "pictureBoxAPM");
     this.pictureBoxAPM.Name    = "pictureBoxAPM";
     this.pictureBoxAPM.TabStop = false;
     this.pictureBoxAPM.Tag     = "";
     this.pictureBoxAPM.Click  += new System.EventHandler(this.pictureBoxFW_Click);
     //
     // pictureBoxQuad
     //
     this.pictureBoxQuad.Cursor = System.Windows.Forms.Cursors.Hand;
     this.pictureBoxQuad.Image  = global::MissionPlanner.Properties.Resources.FW_icons_2013_logos_04;
     resources.ApplyResources(this.pictureBoxQuad, "pictureBoxQuad");
     this.pictureBoxQuad.Name    = "pictureBoxQuad";
     this.pictureBoxQuad.TabStop = false;
     this.pictureBoxQuad.Tag     = "";
     this.pictureBoxQuad.Click  += new System.EventHandler(this.pictureBoxFW_Click);
     //
     // pictureBoxHexa
     //
     this.pictureBoxHexa.Cursor = System.Windows.Forms.Cursors.Hand;
     this.pictureBoxHexa.Image  = global::MissionPlanner.Properties.Resources.FW_icons_2013_logos_10;
     resources.ApplyResources(this.pictureBoxHexa, "pictureBoxHexa");
     this.pictureBoxHexa.Name    = "pictureBoxHexa";
     this.pictureBoxHexa.TabStop = false;
     this.pictureBoxHexa.Tag     = "";
     this.pictureBoxHexa.Click  += new System.EventHandler(this.pictureBoxFW_Click);
     //
     // pictureBoxTri
     //
     this.pictureBoxTri.Cursor = System.Windows.Forms.Cursors.Hand;
     this.pictureBoxTri.Image  = global::MissionPlanner.Properties.Resources.FW_icons_2013_logos_08;
     resources.ApplyResources(this.pictureBoxTri, "pictureBoxTri");
     this.pictureBoxTri.Name    = "pictureBoxTri";
     this.pictureBoxTri.TabStop = false;
     this.pictureBoxTri.Tag     = "";
     this.pictureBoxTri.Click  += new System.EventHandler(this.pictureBoxFW_Click);
     //
     // pictureBoxY6
     //
     this.pictureBoxY6.Cursor = System.Windows.Forms.Cursors.Hand;
     this.pictureBoxY6.Image  = global::MissionPlanner.Properties.Resources.y6a;
     resources.ApplyResources(this.pictureBoxY6, "pictureBoxY6");
     this.pictureBoxY6.Name    = "pictureBoxY6";
     this.pictureBoxY6.TabStop = false;
     this.pictureBoxY6.Tag     = "";
     this.pictureBoxY6.Click  += new System.EventHandler(this.pictureBoxFW_Click);
     //
     // lbl_status
     //
     resources.ApplyResources(this.lbl_status, "lbl_status");
     this.lbl_status.Name = "lbl_status";
     //
     // progress
     //
     resources.ApplyResources(this.progress, "progress");
     this.progress.Name = "progress";
     this.progress.Step = 1;
     //
     // label2
     //
     resources.ApplyResources(this.label2, "label2");
     this.label2.Name = "label2";
     //
     // pictureBoxHeli
     //
     this.pictureBoxHeli.Cursor = System.Windows.Forms.Cursors.Hand;
     this.pictureBoxHeli.Image  = global::MissionPlanner.Properties.Resources.APM_airframes_08;
     resources.ApplyResources(this.pictureBoxHeli, "pictureBoxHeli");
     this.pictureBoxHeli.Name    = "pictureBoxHeli";
     this.pictureBoxHeli.TabStop = false;
     this.pictureBoxHeli.Tag     = "";
     this.pictureBoxHeli.Click  += new System.EventHandler(this.pictureBoxFW_Click);
     //
     // pictureBoxHilimage
     //
     this.pictureBoxHilimage.Image = global::MissionPlanner.Properties.Resources.hil;
     resources.ApplyResources(this.pictureBoxHilimage, "pictureBoxHilimage");
     this.pictureBoxHilimage.Name    = "pictureBoxHilimage";
     this.pictureBoxHilimage.TabStop = false;
     this.pictureBoxHilimage.Tag     = "";
     //
     // pictureBoxAPHil
     //
     this.pictureBoxAPHil.Cursor = System.Windows.Forms.Cursors.Hand;
     this.pictureBoxAPHil.Image  = global::MissionPlanner.Properties.Resources.hilplane;
     resources.ApplyResources(this.pictureBoxAPHil, "pictureBoxAPHil");
     this.pictureBoxAPHil.Name    = "pictureBoxAPHil";
     this.pictureBoxAPHil.TabStop = false;
     this.pictureBoxAPHil.Tag     = "";
     this.pictureBoxAPHil.Click  += new System.EventHandler(this.pictureBoxFW_Click);
     //
     // pictureBoxACHil
     //
     this.pictureBoxACHil.Cursor = System.Windows.Forms.Cursors.Hand;
     this.pictureBoxACHil.Image  = global::MissionPlanner.Properties.Resources.hilquad;
     resources.ApplyResources(this.pictureBoxACHil, "pictureBoxACHil");
     this.pictureBoxACHil.Name    = "pictureBoxACHil";
     this.pictureBoxACHil.TabStop = false;
     this.pictureBoxACHil.Tag     = "";
     this.pictureBoxACHil.Click  += new System.EventHandler(this.pictureBoxFW_Click);
     //
     // pictureBoxACHHil
     //
     this.pictureBoxACHHil.Cursor = System.Windows.Forms.Cursors.Hand;
     this.pictureBoxACHHil.Image  = global::MissionPlanner.Properties.Resources.hilheli;
     resources.ApplyResources(this.pictureBoxACHHil, "pictureBoxACHHil");
     this.pictureBoxACHHil.Name    = "pictureBoxACHHil";
     this.pictureBoxACHHil.TabStop = false;
     this.pictureBoxACHHil.Tag     = "";
     this.pictureBoxACHHil.Click  += new System.EventHandler(this.pictureBoxFW_Click);
     //
     // pictureBoxOcta
     //
     this.pictureBoxOcta.Image = global::MissionPlanner.Properties.Resources.FW_icons_2013_logos_12;
     resources.ApplyResources(this.pictureBoxOcta, "pictureBoxOcta");
     this.pictureBoxOcta.Name    = "pictureBoxOcta";
     this.pictureBoxOcta.TabStop = false;
     this.pictureBoxOcta.Tag     = "";
     this.pictureBoxOcta.Click  += new System.EventHandler(this.pictureBoxFW_Click);
     //
     // pictureBoxOctaQuad
     //
     this.pictureBoxOctaQuad.Image = global::MissionPlanner.Properties.Resources.x8;
     resources.ApplyResources(this.pictureBoxOctaQuad, "pictureBoxOctaQuad");
     this.pictureBoxOctaQuad.Name    = "pictureBoxOctaQuad";
     this.pictureBoxOctaQuad.TabStop = false;
     this.pictureBoxOctaQuad.Tag     = "";
     this.pictureBoxOctaQuad.Click  += new System.EventHandler(this.pictureBoxFW_Click);
     //
     // pictureBoxRover
     //
     this.pictureBoxRover.Cursor = System.Windows.Forms.Cursors.Hand;
     this.pictureBoxRover.Image  = global::MissionPlanner.Properties.Resources.rover_11;
     resources.ApplyResources(this.pictureBoxRover, "pictureBoxRover");
     this.pictureBoxRover.Name    = "pictureBoxRover";
     this.pictureBoxRover.TabStop = false;
     this.pictureBoxRover.Tag     = "";
     this.pictureBoxRover.Click  += new System.EventHandler(this.pictureBoxFW_Click);
     //
     // label1
     //
     resources.ApplyResources(this.label1, "label1");
     this.label1.Name = "label1";
     //
     // CMB_history
     //
     this.CMB_history.DropDownStyle     = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.CMB_history.DropDownWidth     = 160;
     this.CMB_history.FormattingEnabled = true;
     resources.ApplyResources(this.CMB_history, "CMB_history");
     this.CMB_history.Name = "CMB_history";
     this.CMB_history.SelectedIndexChanged += new System.EventHandler(this.CMB_history_SelectedIndexChanged);
     //
     // CMB_history_label
     //
     resources.ApplyResources(this.CMB_history_label, "CMB_history_label");
     this.CMB_history_label.Cursor = System.Windows.Forms.Cursors.Hand;
     this.CMB_history_label.Name   = "CMB_history_label";
     this.CMB_history_label.Click += new System.EventHandler(this.CMB_history_label_Click);
     //
     // lbl_Custom_firmware_label
     //
     resources.ApplyResources(this.lbl_Custom_firmware_label, "lbl_Custom_firmware_label");
     this.lbl_Custom_firmware_label.Cursor = System.Windows.Forms.Cursors.Hand;
     this.lbl_Custom_firmware_label.Name   = "lbl_Custom_firmware_label";
     this.lbl_Custom_firmware_label.Click += new System.EventHandler(this.Custom_firmware_label_Click);
     //
     // lbl_devfw
     //
     resources.ApplyResources(this.lbl_devfw, "lbl_devfw");
     this.lbl_devfw.Cursor = System.Windows.Forms.Cursors.Hand;
     this.lbl_devfw.Name   = "lbl_devfw";
     this.lbl_devfw.Click += new System.EventHandler(this.lbl_devfw_Click);
     //
     // lbl_px4io
     //
     resources.ApplyResources(this.lbl_px4io, "lbl_px4io");
     this.lbl_px4io.Cursor = System.Windows.Forms.Cursors.Hand;
     this.lbl_px4io.Name   = "lbl_px4io";
     this.lbl_px4io.Click += new System.EventHandler(this.lbl_px4io_Click);
     //
     // lbl_dlfw
     //
     resources.ApplyResources(this.lbl_dlfw, "lbl_dlfw");
     this.lbl_dlfw.Cursor = System.Windows.Forms.Cursors.Hand;
     this.lbl_dlfw.Name   = "lbl_dlfw";
     this.lbl_dlfw.Click += new System.EventHandler(this.lbl_dlfw_Click);
     //
     // lbl_px4bl
     //
     resources.ApplyResources(this.lbl_px4bl, "lbl_px4bl");
     this.lbl_px4bl.Cursor = System.Windows.Forms.Cursors.Hand;
     this.lbl_px4bl.Name   = "lbl_px4bl";
     this.lbl_px4bl.Click += new System.EventHandler(this.lbl_px4bl_Click);
     //
     // ConfigFirmware
     //
     resources.ApplyResources(this, "$this");
     this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
     this.Controls.Add(this.lbl_px4bl);
     this.Controls.Add(this.lbl_dlfw);
     this.Controls.Add(this.lbl_px4io);
     this.Controls.Add(this.lbl_devfw);
     this.Controls.Add(this.lbl_Custom_firmware_label);
     this.Controls.Add(this.CMB_history_label);
     this.Controls.Add(this.pictureBoxRover);
     this.Controls.Add(this.CMB_history);
     this.Controls.Add(this.label1);
     this.Controls.Add(this.label2);
     this.Controls.Add(this.lbl_status);
     this.Controls.Add(this.progress);
     this.Controls.Add(this.pictureBoxACHHil);
     this.Controls.Add(this.pictureBoxACHil);
     this.Controls.Add(this.pictureBoxAPHil);
     this.Controls.Add(this.pictureBoxHilimage);
     this.Controls.Add(this.pictureBoxOctaQuad);
     this.Controls.Add(this.pictureBoxOcta);
     this.Controls.Add(this.pictureBoxHeli);
     this.Controls.Add(this.pictureBoxY6);
     this.Controls.Add(this.pictureBoxTri);
     this.Controls.Add(this.pictureBoxHexa);
     this.Controls.Add(this.pictureBoxQuad);
     this.Controls.Add(this.pictureBoxAPM);
     this.Name = "ConfigFirmware";
     ((System.ComponentModel.ISupportInitialize)(this.pictureBoxHilimage)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.pictureBoxAPHil)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.pictureBoxACHil)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.pictureBoxACHHil)).EndInit();
     this.ResumeLayout(false);
     this.PerformLayout();
 }
Exemplo n.º 33
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(ImageForm));
     this.width          = new System.Windows.Forms.TextBox();
     this.label1         = new System.Windows.Forms.Label();
     this.saveButton     = new System.Windows.Forms.Button();
     this.cancelButton   = new System.Windows.Forms.Button();
     this.applyButton    = new System.Windows.Forms.Button();
     this.saveFileDialog = new System.Windows.Forms.SaveFileDialog();
     this.progressBar    = new System.Windows.Forms.ProgressBar();
     this.label2         = new System.Windows.Forms.Label();
     this.height         = new System.Windows.Forms.TextBox();
     this.SuspendLayout();
     //
     // width
     //
     this.width.Location  = new System.Drawing.Point(96, 9);
     this.width.Name      = "width";
     this.width.Size      = new System.Drawing.Size(58, 22);
     this.width.TabIndex  = 1;
     this.width.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.intKeyPress);
     //
     // label1
     //
     this.label1.Location = new System.Drawing.Point(10, 9);
     this.label1.Name     = "label1";
     this.label1.Size     = new System.Drawing.Size(76, 19);
     this.label1.TabIndex = 2;
     this.label1.Text     = "Pixel width:";
     //
     // saveButton
     //
     this.saveButton.Anchor   = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
     this.saveButton.Location = new System.Drawing.Point(10, 257);
     this.saveButton.Name     = "saveButton";
     this.saveButton.Size     = new System.Drawing.Size(90, 27);
     this.saveButton.TabIndex = 4;
     this.saveButton.Text     = "Save...";
     this.saveButton.Click   += new System.EventHandler(this.saveClick);
     //
     // cancelButton
     //
     this.cancelButton.Anchor   = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
     this.cancelButton.Location = new System.Drawing.Point(115, 257);
     this.cancelButton.Name     = "cancelButton";
     this.cancelButton.Size     = new System.Drawing.Size(90, 27);
     this.cancelButton.TabIndex = 5;
     this.cancelButton.Text     = "Cancel";
     this.cancelButton.Click   += new System.EventHandler(this.cancelClick);
     //
     // applyButton
     //
     this.applyButton.Location = new System.Drawing.Point(307, 9);
     this.applyButton.Name     = "applyButton";
     this.applyButton.Size     = new System.Drawing.Size(90, 27);
     this.applyButton.TabIndex = 6;
     this.applyButton.Text     = "Apply";
     this.applyButton.Click   += new System.EventHandler(this.applyClick);
     //
     // saveFileDialog
     //
     this.saveFileDialog.DefaultExt = "gif";
     this.saveFileDialog.Filter     = "Image Files (GIF JPEG TIFF BMP PNG EMF)|*.gif;*.jpg;*.jpeg;*.bmp;*.png;*.tif;*.ti" +
                                      "ff;*.emf";
     this.saveFileDialog.Title = "Save as GIF File";
     //
     // progressBar
     //
     this.progressBar.Anchor   = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.progressBar.Location = new System.Drawing.Point(231, 257);
     this.progressBar.Name     = "progressBar";
     this.progressBar.Size     = new System.Drawing.Size(192, 27);
     this.progressBar.TabIndex = 7;
     //
     // label2
     //
     this.label2.Location = new System.Drawing.Point(163, 9);
     this.label2.Name     = "label2";
     this.label2.Size     = new System.Drawing.Size(87, 19);
     this.label2.TabIndex = 8;
     this.label2.Text     = "Pixel height:";
     //
     // height
     //
     this.height.Location  = new System.Drawing.Point(240, 9);
     this.height.Name      = "height";
     this.height.Size      = new System.Drawing.Size(58, 22);
     this.height.TabIndex  = 9;
     this.height.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.intKeyPress);
     //
     // ImageForm
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F);
     this.AutoScaleMode       = System.Windows.Forms.AutoScaleMode.Font;
     this.ClientSize          = new System.Drawing.Size(432, 288);
     this.Controls.Add(this.height);
     this.Controls.Add(this.width);
     this.Controls.Add(this.label2);
     this.Controls.Add(this.progressBar);
     this.Controls.Add(this.applyButton);
     this.Controls.Add(this.cancelButton);
     this.Controls.Add(this.saveButton);
     this.Controls.Add(this.label1);
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.SizableToolWindow;
     this.Icon            = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
     this.MinimumSize     = new System.Drawing.Size(432, 212);
     this.Name            = "ImageForm";
     this.ShowInTaskbar   = false;
     this.Text            = "Save as Image";
     this.ResumeLayout(false);
     this.PerformLayout();
 }
Exemplo n.º 34
0
 public void SetProgressBar(System.Windows.Forms.ProgressBar _ProgressBar)
 {
     ProgressBar = _ProgressBar;
 }
Exemplo n.º 35
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.prgFolderFile         = new System.Windows.Forms.ProgressBar();
     this.dlgFolder             = new System.Windows.Forms.FolderBrowserDialog();
     this.btnFolderCopy         = new System.Windows.Forms.Button();
     this.prgFolderTotal        = new System.Windows.Forms.ProgressBar();
     this.tabControl1           = new System.Windows.Forms.TabControl();
     this.tabPage2              = new System.Windows.Forms.TabPage();
     this.lblFolderFileDetails  = new System.Windows.Forms.Label();
     this.lblFolderTotalDetails = new System.Windows.Forms.Label();
     this.lblFolderSourceFile   = new System.Windows.Forms.Label();
     this.lblFolderTargetFile   = new System.Windows.Forms.Label();
     this.label10         = new System.Windows.Forms.Label();
     this.label9          = new System.Windows.Forms.Label();
     this.btnFolderCancel = new System.Windows.Forms.Button();
     this.btnFolderSource = new System.Windows.Forms.Button();
     this.btnFolderTarget = new System.Windows.Forms.Button();
     this.txtFolderTarget = new System.Windows.Forms.TextBox();
     this.txtFolderSource = new System.Windows.Forms.TextBox();
     this.label4          = new System.Windows.Forms.Label();
     this.label3          = new System.Windows.Forms.Label();
     this.label2          = new System.Windows.Forms.Label();
     this.label1          = new System.Windows.Forms.Label();
     this.tabPage1        = new System.Windows.Forms.TabPage();
     this.lblFileDetails  = new System.Windows.Forms.Label();
     this.label8          = new System.Windows.Forms.Label();
     this.btnFileCancel   = new System.Windows.Forms.Button();
     this.btnFileSource   = new System.Windows.Forms.Button();
     this.btnFileTarget   = new System.Windows.Forms.Button();
     this.txtFileTarget   = new System.Windows.Forms.TextBox();
     this.txtFileSource   = new System.Windows.Forms.TextBox();
     this.label5          = new System.Windows.Forms.Label();
     this.label6          = new System.Windows.Forms.Label();
     this.label7          = new System.Windows.Forms.Label();
     this.prgFile         = new System.Windows.Forms.ProgressBar();
     this.btnFileCopy     = new System.Windows.Forms.Button();
     this.txtOutput       = new System.Windows.Forms.TextBox();
     this.dlgSource       = new System.Windows.Forms.OpenFileDialog();
     this.dlgTarget       = new System.Windows.Forms.SaveFileDialog();
     this.tabControl1.SuspendLayout();
     this.tabPage2.SuspendLayout();
     this.tabPage1.SuspendLayout();
     this.SuspendLayout();
     //
     // prgFolderFile
     //
     this.prgFolderFile.Location = new System.Drawing.Point(154, 240);
     this.prgFolderFile.Name     = "prgFolderFile";
     this.prgFolderFile.Size     = new System.Drawing.Size(742, 23);
     this.prgFolderFile.TabIndex = 1;
     //
     // btnFolderCopy
     //
     this.btnFolderCopy.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.btnFolderCopy.Location  = new System.Drawing.Point(622, 94);
     this.btnFolderCopy.Name      = "btnFolderCopy";
     this.btnFolderCopy.Size      = new System.Drawing.Size(146, 33);
     this.btnFolderCopy.TabIndex  = 8;
     this.btnFolderCopy.Text      = "Copy Folder";
     this.btnFolderCopy.Click    += new System.EventHandler(this.btnFolderCopy_Click);
     //
     // prgFolderTotal
     //
     this.prgFolderTotal.Location = new System.Drawing.Point(154, 304);
     this.prgFolderTotal.Name     = "prgFolderTotal";
     this.prgFolderTotal.Size     = new System.Drawing.Size(742, 23);
     this.prgFolderTotal.TabIndex = 12;
     //
     // tabControl1
     //
     this.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)));
     this.tabControl1.Controls.Add(this.tabPage2);
     this.tabControl1.Controls.Add(this.tabPage1);
     this.tabControl1.Location      = new System.Drawing.Point(13, 12);
     this.tabControl1.Name          = "tabControl1";
     this.tabControl1.SelectedIndex = 0;
     this.tabControl1.Size          = new System.Drawing.Size(998, 392);
     this.tabControl1.TabIndex      = 13;
     //
     // tabPage2
     //
     this.tabPage2.BackColor = System.Drawing.SystemColors.ControlLight;
     this.tabPage2.Controls.Add(this.lblFolderFileDetails);
     this.tabPage2.Controls.Add(this.lblFolderTotalDetails);
     this.tabPage2.Controls.Add(this.lblFolderSourceFile);
     this.tabPage2.Controls.Add(this.lblFolderTargetFile);
     this.tabPage2.Controls.Add(this.label10);
     this.tabPage2.Controls.Add(this.label9);
     this.tabPage2.Controls.Add(this.btnFolderCancel);
     this.tabPage2.Controls.Add(this.btnFolderSource);
     this.tabPage2.Controls.Add(this.btnFolderTarget);
     this.tabPage2.Controls.Add(this.txtFolderTarget);
     this.tabPage2.Controls.Add(this.txtFolderSource);
     this.tabPage2.Controls.Add(this.label4);
     this.tabPage2.Controls.Add(this.label3);
     this.tabPage2.Controls.Add(this.prgFolderFile);
     this.tabPage2.Controls.Add(this.prgFolderTotal);
     this.tabPage2.Controls.Add(this.btnFolderCopy);
     this.tabPage2.Controls.Add(this.label2);
     this.tabPage2.Controls.Add(this.label1);
     this.tabPage2.Location = new System.Drawing.Point(4, 29);
     this.tabPage2.Name     = "tabPage2";
     this.tabPage2.Size     = new System.Drawing.Size(990, 359);
     this.tabPage2.TabIndex = 1;
     this.tabPage2.Text     = "Folder Copying";
     //
     // lblFolderFileDetails
     //
     this.lblFolderFileDetails.AutoSize  = true;
     this.lblFolderFileDetails.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.lblFolderFileDetails.Location  = new System.Drawing.Point(154, 216);
     this.lblFolderFileDetails.Name      = "lblFolderFileDetails";
     this.lblFolderFileDetails.Size      = new System.Drawing.Size(75, 20);
     this.lblFolderFileDetails.TabIndex  = 28;
     this.lblFolderFileDetails.Text      = "0% Done";
     this.lblFolderFileDetails.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
     //
     // lblFolderTotalDetails
     //
     this.lblFolderTotalDetails.AutoSize  = true;
     this.lblFolderTotalDetails.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.lblFolderTotalDetails.Location  = new System.Drawing.Point(154, 281);
     this.lblFolderTotalDetails.Name      = "lblFolderTotalDetails";
     this.lblFolderTotalDetails.Size      = new System.Drawing.Size(75, 20);
     this.lblFolderTotalDetails.TabIndex  = 27;
     this.lblFolderTotalDetails.Text      = "0% Done";
     this.lblFolderTotalDetails.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
     //
     // lblFolderSourceFile
     //
     this.lblFolderSourceFile.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.lblFolderSourceFile.Location  = new System.Drawing.Point(141, 143);
     this.lblFolderSourceFile.Name      = "lblFolderSourceFile";
     this.lblFolderSourceFile.Size      = new System.Drawing.Size(755, 24);
     this.lblFolderSourceFile.TabIndex  = 26;
     //
     // lblFolderTargetFile
     //
     this.lblFolderTargetFile.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.lblFolderTargetFile.Location  = new System.Drawing.Point(141, 177);
     this.lblFolderTargetFile.Name      = "lblFolderTargetFile";
     this.lblFolderTargetFile.Size      = new System.Drawing.Size(755, 23);
     this.lblFolderTargetFile.TabIndex  = 25;
     //
     // label10
     //
     this.label10.AutoSize  = true;
     this.label10.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.label10.Location  = new System.Drawing.Point(64, 180);
     this.label10.Name      = "label10";
     this.label10.Size      = new System.Drawing.Size(55, 20);
     this.label10.TabIndex  = 23;
     this.label10.Text      = "Target";
     this.label10.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // label9
     //
     this.label9.AutoSize  = true;
     this.label9.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.label9.Location  = new System.Drawing.Point(26, 145);
     this.label9.Name      = "label9";
     this.label9.Size      = new System.Drawing.Size(91, 20);
     this.label9.TabIndex  = 22;
     this.label9.Text      = "Current File";
     this.label9.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // btnFolderCancel
     //
     this.btnFolderCancel.Enabled   = false;
     this.btnFolderCancel.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.btnFolderCancel.Location  = new System.Drawing.Point(781, 94);
     this.btnFolderCancel.Name      = "btnFolderCancel";
     this.btnFolderCancel.Size      = new System.Drawing.Size(115, 33);
     this.btnFolderCancel.TabIndex  = 21;
     this.btnFolderCancel.Text      = "Cancel";
     this.btnFolderCancel.Click    += new System.EventHandler(this.btnFolderCancel_Click);
     //
     // btnFolderSource
     //
     this.btnFolderSource.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.btnFolderSource.Location  = new System.Drawing.Point(864, 19);
     this.btnFolderSource.Name      = "btnFolderSource";
     this.btnFolderSource.Size      = new System.Drawing.Size(38, 23);
     this.btnFolderSource.TabIndex  = 20;
     this.btnFolderSource.Text      = "...";
     this.btnFolderSource.TextAlign = System.Drawing.ContentAlignment.BottomCenter;
     this.btnFolderSource.Click    += new System.EventHandler(this.btnFolderSource_Click);
     //
     // btnFolderTarget
     //
     this.btnFolderTarget.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.btnFolderTarget.Location  = new System.Drawing.Point(864, 54);
     this.btnFolderTarget.Name      = "btnFolderTarget";
     this.btnFolderTarget.Size      = new System.Drawing.Size(38, 23);
     this.btnFolderTarget.TabIndex  = 19;
     this.btnFolderTarget.Text      = "...";
     this.btnFolderTarget.TextAlign = System.Drawing.ContentAlignment.BottomCenter;
     this.btnFolderTarget.Click    += new System.EventHandler(this.btnFolderTarget_Click);
     //
     // txtFolderTarget
     //
     this.txtFolderTarget.Location = new System.Drawing.Point(154, 47);
     this.txtFolderTarget.Name     = "txtFolderTarget";
     this.txtFolderTarget.Size     = new System.Drawing.Size(704, 26);
     this.txtFolderTarget.TabIndex = 18;
     //
     // txtFolderSource
     //
     this.txtFolderSource.Location = new System.Drawing.Point(154, 12);
     this.txtFolderSource.Name     = "txtFolderSource";
     this.txtFolderSource.Size     = new System.Drawing.Size(704, 26);
     this.txtFolderSource.TabIndex = 17;
     //
     // label4
     //
     this.label4.AutoSize  = true;
     this.label4.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.label4.Location  = new System.Drawing.Point(16, 50);
     this.label4.Name      = "label4";
     this.label4.Size      = new System.Drawing.Size(104, 20);
     this.label4.TabIndex  = 16;
     this.label4.Text      = "Target Folder";
     this.label4.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // label3
     //
     this.label3.AutoSize  = true;
     this.label3.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.label3.Location  = new System.Drawing.Point(11, 16);
     this.label3.Name      = "label3";
     this.label3.Size      = new System.Drawing.Size(109, 20);
     this.label3.TabIndex  = 15;
     this.label3.Text      = "Source Folder";
     this.label3.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // label2
     //
     this.label2.AutoSize  = true;
     this.label2.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.label2.Location  = new System.Drawing.Point(13, 304);
     this.label2.Name      = "label2";
     this.label2.Size      = new System.Drawing.Size(111, 20);
     this.label2.TabIndex  = 14;
     this.label2.Text      = "Total Progress";
     this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // label1
     //
     this.label1.AutoSize  = true;
     this.label1.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.label1.Location  = new System.Drawing.Point(24, 240);
     this.label1.Name      = "label1";
     this.label1.Size      = new System.Drawing.Size(101, 20);
     this.label1.TabIndex  = 13;
     this.label1.Text      = "File Progress";
     this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // tabPage1
     //
     this.tabPage1.BackColor = System.Drawing.SystemColors.ControlLight;
     this.tabPage1.Controls.Add(this.lblFileDetails);
     this.tabPage1.Controls.Add(this.label8);
     this.tabPage1.Controls.Add(this.btnFileCancel);
     this.tabPage1.Controls.Add(this.btnFileSource);
     this.tabPage1.Controls.Add(this.btnFileTarget);
     this.tabPage1.Controls.Add(this.txtFileTarget);
     this.tabPage1.Controls.Add(this.txtFileSource);
     this.tabPage1.Controls.Add(this.label5);
     this.tabPage1.Controls.Add(this.label6);
     this.tabPage1.Controls.Add(this.label7);
     this.tabPage1.Controls.Add(this.prgFile);
     this.tabPage1.Controls.Add(this.btnFileCopy);
     this.tabPage1.Location = new System.Drawing.Point(4, 29);
     this.tabPage1.Name     = "tabPage1";
     this.tabPage1.Size     = new System.Drawing.Size(913, 411);
     this.tabPage1.TabIndex = 0;
     this.tabPage1.Text     = "File Copying";
     //
     // lblFileDetails
     //
     this.lblFileDetails.AutoSize  = true;
     this.lblFileDetails.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.lblFileDetails.Location  = new System.Drawing.Point(810, 267);
     this.lblFileDetails.Name      = "lblFileDetails";
     this.lblFileDetails.Size      = new System.Drawing.Size(75, 20);
     this.lblFileDetails.TabIndex  = 33;
     this.lblFileDetails.Text      = "0% Done";
     //
     // label8
     //
     this.label8.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.label8.Location  = new System.Drawing.Point(26, 23);
     this.label8.Name      = "label8";
     this.label8.Size      = new System.Drawing.Size(345, 24);
     this.label8.TabIndex  = 32;
     this.label8.Text      = "This demo will show copying of a file in units";
     //
     // btnFileCancel
     //
     this.btnFileCancel.Enabled   = false;
     this.btnFileCancel.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.btnFileCancel.Location  = new System.Drawing.Point(781, 175);
     this.btnFileCancel.Name      = "btnFileCancel";
     this.btnFileCancel.Size      = new System.Drawing.Size(115, 34);
     this.btnFileCancel.TabIndex  = 31;
     this.btnFileCancel.Text      = "Cancel";
     this.btnFileCancel.Click    += new System.EventHandler(this.btnFileCancel_Click);
     //
     // btnFileSource
     //
     this.btnFileSource.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.btnFileSource.Location  = new System.Drawing.Point(853, 101);
     this.btnFileSource.Name      = "btnFileSource";
     this.btnFileSource.Size      = new System.Drawing.Size(38, 23);
     this.btnFileSource.TabIndex  = 30;
     this.btnFileSource.Text      = "...";
     this.btnFileSource.TextAlign = System.Drawing.ContentAlignment.BottomCenter;
     this.btnFileSource.Click    += new System.EventHandler(this.btnFileSource_Click);
     //
     // btnFileTarget
     //
     this.btnFileTarget.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.btnFileTarget.Location  = new System.Drawing.Point(853, 136);
     this.btnFileTarget.Name      = "btnFileTarget";
     this.btnFileTarget.Size      = new System.Drawing.Size(38, 23);
     this.btnFileTarget.TabIndex  = 29;
     this.btnFileTarget.Text      = "...";
     this.btnFileTarget.TextAlign = System.Drawing.ContentAlignment.BottomCenter;
     this.btnFileTarget.Click    += new System.EventHandler(this.btnFileTarget_Click);
     //
     // txtFileTarget
     //
     this.txtFileTarget.Location = new System.Drawing.Point(115, 129);
     this.txtFileTarget.Name     = "txtFileTarget";
     this.txtFileTarget.Size     = new System.Drawing.Size(730, 26);
     this.txtFileTarget.TabIndex = 28;
     //
     // txtFileSource
     //
     this.txtFileSource.Location = new System.Drawing.Point(115, 94);
     this.txtFileSource.Name     = "txtFileSource";
     this.txtFileSource.Size     = new System.Drawing.Size(730, 26);
     this.txtFileSource.TabIndex = 27;
     //
     // label5
     //
     this.label5.AutoSize  = true;
     this.label5.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.label5.Location  = new System.Drawing.Point(18, 133);
     this.label5.Name      = "label5";
     this.label5.Size      = new System.Drawing.Size(84, 20);
     this.label5.TabIndex  = 26;
     this.label5.Text      = "Target File";
     this.label5.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // label6
     //
     this.label6.AutoSize  = true;
     this.label6.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.label6.Location  = new System.Drawing.Point(13, 98);
     this.label6.Name      = "label6";
     this.label6.Size      = new System.Drawing.Size(89, 20);
     this.label6.TabIndex  = 25;
     this.label6.Text      = "Source File";
     this.label6.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // label7
     //
     this.label7.AutoSize  = true;
     this.label7.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.label7.Location  = new System.Drawing.Point(13, 210);
     this.label7.Name      = "label7";
     this.label7.Size      = new System.Drawing.Size(112, 20);
     this.label7.TabIndex  = 24;
     this.label7.Text      = "Copy Progress";
     this.label7.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
     //
     // prgFile
     //
     this.prgFile.Location = new System.Drawing.Point(13, 234);
     this.prgFile.Name     = "prgFile";
     this.prgFile.Size     = new System.Drawing.Size(883, 23);
     this.prgFile.TabIndex = 22;
     //
     // btnFileCopy
     //
     this.btnFileCopy.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.btnFileCopy.Location  = new System.Drawing.Point(653, 175);
     this.btnFileCopy.Name      = "btnFileCopy";
     this.btnFileCopy.Size      = new System.Drawing.Size(115, 34);
     this.btnFileCopy.TabIndex  = 23;
     this.btnFileCopy.Text      = "Copy";
     this.btnFileCopy.Click    += new System.EventHandler(this.btnFileCopy_Click);
     //
     // txtOutput
     //
     this.txtOutput.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)
                                                                   | System.Windows.Forms.AnchorStyles.Right)));
     this.txtOutput.Location   = new System.Drawing.Point(13, 416);
     this.txtOutput.Multiline  = true;
     this.txtOutput.Name       = "txtOutput";
     this.txtOutput.ScrollBars = System.Windows.Forms.ScrollBars.Vertical;
     this.txtOutput.Size       = new System.Drawing.Size(998, 128);
     this.txtOutput.TabIndex   = 14;
     //
     // dlgSource
     //
     this.dlgSource.Filter = "All Files(*.*)|*.*";
     //
     // dlgTarget
     //
     this.dlgTarget.Filter = "All Files(*.*)|*.*";
     //
     // Form1
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(8, 19);
     this.ClientSize        = new System.Drawing.Size(1024, 553);
     this.Controls.Add(this.txtOutput);
     this.Controls.Add(this.tabControl1);
     this.Name = "Form1";
     this.Text = "File Coping with pause capability)";
     this.tabControl1.ResumeLayout(false);
     this.tabPage2.ResumeLayout(false);
     this.tabPage2.PerformLayout();
     this.tabPage1.ResumeLayout(false);
     this.tabPage1.PerformLayout();
     this.ResumeLayout(false);
     this.PerformLayout();
 }
Exemplo n.º 36
0
 private void InitializeComponent()
 {
     this.components   = new System.ComponentModel.Container();
     this.button1      = new System.Windows.Forms.Button();
     this.progressBar1 = new System.Windows.Forms.ProgressBar();
     this.textBox1     = new System.Windows.Forms.TextBox();
     this.timer1       = new System.Windows.Forms.Timer(this.components);
     this.button2      = new System.Windows.Forms.Button();
     this.listBox1     = new System.Windows.Forms.ListBox();
     this.pictureBox1  = new System.Windows.Forms.PictureBox();
     this.button5      = new System.Windows.Forms.Button();
     this.button6      = new System.Windows.Forms.Button();
     this.button7      = new System.Windows.Forms.Button();
     this.label1       = new System.Windows.Forms.Label();
     this.label2       = new System.Windows.Forms.Label();
     this.button8      = new System.Windows.Forms.Button();
     label3            = new System.Windows.Forms.Label();
     this.textBox2     = new System.Windows.Forms.TextBox();
     this.label4       = new System.Windows.Forms.Label();
     this.label5       = new System.Windows.Forms.Label();
     this.label6       = new System.Windows.Forms.Label();
     ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
     this.SuspendLayout();
     //
     // button1
     //
     this.button1.Location = new System.Drawing.Point(21, 271);
     this.button1.Margin   = new System.Windows.Forms.Padding(2);
     this.button1.Name     = "button1";
     this.button1.Size     = new System.Drawing.Size(139, 29);
     this.button1.TabIndex = 1;
     this.button1.Text     = "pobierz listę obrazków";
     this.button1.UseVisualStyleBackColor = true;
     this.button1.Click += new System.EventHandler(this.button1_Click);
     //
     // progressBar1
     //
     this.progressBar1.Location = new System.Drawing.Point(254, 9);
     this.progressBar1.Margin   = new System.Windows.Forms.Padding(2);
     this.progressBar1.Maximum  = 1000;
     this.progressBar1.Name     = "progressBar1";
     this.progressBar1.Size     = new System.Drawing.Size(199, 20);
     this.progressBar1.TabIndex = 2;
     //
     // textBox1
     //
     this.textBox1.Location     = new System.Drawing.Point(254, 258);
     this.textBox1.Margin       = new System.Windows.Forms.Padding(2);
     this.textBox1.Name         = "textBox1";
     this.textBox1.Size         = new System.Drawing.Size(200, 20);
     this.textBox1.TabIndex     = 4;
     this.textBox1.TextChanged += new System.EventHandler(this.textBox1_TextChanged);
     //
     // button2
     //
     this.button2.Location = new System.Drawing.Point(287, 224);
     this.button2.Margin   = new System.Windows.Forms.Padding(2);
     this.button2.Name     = "button2";
     this.button2.Size     = new System.Drawing.Size(125, 30);
     this.button2.TabIndex = 7;
     this.button2.Text     = "ładowanie zdj";
     this.button2.UseVisualStyleBackColor = true;
     this.button2.Click += new System.EventHandler(this.button2_Click);
     //
     // listBox1
     //
     this.listBox1.FormattingEnabled = true;
     this.listBox1.Location          = new System.Drawing.Point(21, 29);
     this.listBox1.Margin            = new System.Windows.Forms.Padding(2);
     this.listBox1.Name                  = "listBox1";
     this.listBox1.Size                  = new System.Drawing.Size(140, 238);
     this.listBox1.TabIndex              = 9;
     this.listBox1.SelectedIndexChanged += new System.EventHandler(this.listBox1_SelectedIndexChanged);
     //
     // pictureBox1
     //
     this.pictureBox1.Location = new System.Drawing.Point(254, 32);
     this.pictureBox1.Margin   = new System.Windows.Forms.Padding(2);
     this.pictureBox1.Name     = "pictureBox1";
     this.pictureBox1.Size     = new System.Drawing.Size(199, 188);
     this.pictureBox1.TabIndex = 10;
     this.pictureBox1.TabStop  = false;
     //
     // button5
     //
     this.button5.Location = new System.Drawing.Point(312, 305);
     this.button5.Margin   = new System.Windows.Forms.Padding(2);
     this.button5.Name     = "button5";
     this.button5.Size     = new System.Drawing.Size(100, 30);
     this.button5.TabIndex = 14;
     this.button5.Text     = "upload";
     this.button5.UseVisualStyleBackColor = true;
     this.button5.Click += new System.EventHandler(this.button5_Click);
     //
     // button6
     //
     this.button6.Location = new System.Drawing.Point(176, 32);
     this.button6.Margin   = new System.Windows.Forms.Padding(2);
     this.button6.Name     = "button6";
     this.button6.Size     = new System.Drawing.Size(65, 33);
     this.button6.TabIndex = 16;
     this.button6.Text     = "opis";
     this.button6.UseVisualStyleBackColor = true;
     this.button6.Click += new System.EventHandler(this.button6_Click);
     //
     // button7
     //
     this.button7.Location = new System.Drawing.Point(21, 305);
     this.button7.Margin   = new System.Windows.Forms.Padding(2);
     this.button7.Name     = "button7";
     this.button7.Size     = new System.Drawing.Size(139, 22);
     this.button7.TabIndex = 17;
     this.button7.Text     = "download";
     this.button7.UseVisualStyleBackColor = true;
     this.button7.Click += new System.EventHandler(this.button7_Click);
     //
     // label1
     //
     this.label1.AutoSize = true;
     this.label1.Location = new System.Drawing.Point(58, 9);
     this.label1.Margin   = new System.Windows.Forms.Padding(2, 0, 2, 0);
     this.label1.Name     = "label1";
     this.label1.Size     = new System.Drawing.Size(58, 13);
     this.label1.TabIndex = 18;
     this.label1.Text     = "lista plików";
     //
     // label2
     //
     this.label2.AutoSize = true;
     this.label2.Location = new System.Drawing.Point(173, 82);
     this.label2.Margin   = new System.Windows.Forms.Padding(2, 0, 2, 0);
     this.label2.Name     = "label2";
     this.label2.Size     = new System.Drawing.Size(0, 13);
     this.label2.TabIndex = 19;
     this.label2.Click   += new System.EventHandler(this.label2_Click);
     //
     // button8
     //
     this.button8.Location = new System.Drawing.Point(502, 9);
     this.button8.Name     = "button8";
     this.button8.Size     = new System.Drawing.Size(75, 23);
     this.button8.TabIndex = 20;
     this.button8.Text     = "Konwertuj";
     this.button8.UseVisualStyleBackColor = true;
     this.button8.Click += new System.EventHandler(this.button8_Click);
     //
     // label3
     //
     label3.AutoSize = true;
     label3.Location = new System.Drawing.Point(502, 48);
     label3.Name     = "label3";
     label3.Size     = new System.Drawing.Size(0, 13);
     label3.TabIndex = 21;
     label3.Click   += new System.EventHandler(this.label3_Click);
     //
     // textBox2
     //
     this.textBox2.Location     = new System.Drawing.Point(254, 284);
     this.textBox2.Name         = "textBox2";
     this.textBox2.Size         = new System.Drawing.Size(200, 20);
     this.textBox2.TabIndex     = 22;
     this.textBox2.TextChanged += new System.EventHandler(this.textBox2_TextChanged);
     //
     // label4
     //
     this.label4.AutoSize = true;
     this.label4.Location = new System.Drawing.Point(202, 261);
     this.label4.Name     = "label4";
     this.label4.Size     = new System.Drawing.Size(40, 13);
     this.label4.TabIndex = 23;
     this.label4.Text     = "Nazwa";
     //
     // label5
     //
     this.label5.AutoSize = true;
     this.label5.Location = new System.Drawing.Point(202, 291);
     this.label5.Name     = "label5";
     this.label5.Size     = new System.Drawing.Size(28, 13);
     this.label5.TabIndex = 24;
     this.label5.Text     = "Opis";
     //
     // label6
     //
     this.label6.AutoSize = true;
     this.label6.Location = new System.Drawing.Point(21, 333);
     this.label6.Name     = "label6";
     this.label6.Size     = new System.Drawing.Size(0, 13);
     this.label6.TabIndex = 25;
     //
     // Form1
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
     this.AutoScaleMode       = System.Windows.Forms.AutoScaleMode.Font;
     this.ClientSize          = new System.Drawing.Size(614, 353);
     this.Controls.Add(this.label6);
     this.Controls.Add(this.label5);
     this.Controls.Add(this.label4);
     this.Controls.Add(this.textBox2);
     this.Controls.Add(label3);
     this.Controls.Add(this.button8);
     this.Controls.Add(this.label2);
     this.Controls.Add(this.label1);
     this.Controls.Add(this.button7);
     this.Controls.Add(this.button6);
     this.Controls.Add(this.button5);
     this.Controls.Add(this.listBox1);
     this.Controls.Add(this.button2);
     this.Controls.Add(this.textBox1);
     this.Controls.Add(this.progressBar1);
     this.Controls.Add(this.button1);
     this.Controls.Add(this.pictureBox1);
     this.Margin = new System.Windows.Forms.Padding(2);
     this.Name   = "Form1";
     this.Text   = "Form1";
     ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
     this.ResumeLayout(false);
     this.PerformLayout();
 }
Exemplo n.º 37
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(Form1));
     this.txtUserName  = new System.Windows.Forms.TextBox();
     this.btnConfirm   = new System.Windows.Forms.Button();
     this.label1       = new System.Windows.Forms.Label();
     this.label2       = new System.Windows.Forms.Label();
     this.txtDomain    = new System.Windows.Forms.TextBox();
     this.button1      = new System.Windows.Forms.Button();
     this.progressBar1 = new System.Windows.Forms.ProgressBar();
     this.label3       = new System.Windows.Forms.Label();
     this.txtNumber    = new System.Windows.Forms.TextBox();
     this.SuspendLayout();
     //
     // txtUserName
     //
     this.txtUserName.Location = new System.Drawing.Point(80, 40);
     this.txtUserName.Name     = "txtUserName";
     this.txtUserName.Size     = new System.Drawing.Size(128, 20);
     this.txtUserName.TabIndex = 0;
     this.txtUserName.Text     = "";
     //
     // btnConfirm
     //
     this.btnConfirm.Font     = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
     this.btnConfirm.Location = new System.Drawing.Point(208, 8);
     this.btnConfirm.Name     = "btnConfirm";
     this.btnConfirm.Size     = new System.Drawing.Size(104, 23);
     this.btnConfirm.TabIndex = 1;
     this.btnConfirm.Text     = "Novo";
     this.btnConfirm.Click   += new System.EventHandler(this.btnConfirm_Click);
     //
     // label1
     //
     this.label1.Font     = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
     this.label1.Location = new System.Drawing.Point(8, 40);
     this.label1.Name     = "label1";
     this.label1.Size     = new System.Drawing.Size(100, 16);
     this.label1.TabIndex = 2;
     this.label1.Text     = "UserName";
     //
     // label2
     //
     this.label2.Font     = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
     this.label2.Location = new System.Drawing.Point(8, 8);
     this.label2.Name     = "label2";
     this.label2.Size     = new System.Drawing.Size(100, 16);
     this.label2.TabIndex = 3;
     this.label2.Text     = "Domínio";
     //
     // txtDomain
     //
     this.txtDomain.Location = new System.Drawing.Point(80, 8);
     this.txtDomain.Name     = "txtDomain";
     this.txtDomain.Size     = new System.Drawing.Size(128, 20);
     this.txtDomain.TabIndex = 4;
     this.txtDomain.Text     = "OWDEV";
     //
     // button1
     //
     this.button1.Font     = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
     this.button1.Location = new System.Drawing.Point(208, 40);
     this.button1.Name     = "button1";
     this.button1.Size     = new System.Drawing.Size(48, 23);
     this.button1.TabIndex = 5;
     this.button1.Text     = "Novo *";
     this.button1.Click   += new System.EventHandler(this.button1_Click);
     //
     // progressBar1
     //
     this.progressBar1.Location = new System.Drawing.Point(0, 80);
     this.progressBar1.Name     = "progressBar1";
     this.progressBar1.Size     = new System.Drawing.Size(312, 23);
     this.progressBar1.TabIndex = 6;
     //
     // label3
     //
     this.label3.Location = new System.Drawing.Point(264, 64);
     this.label3.Name     = "label3";
     this.label3.TabIndex = 7;
     //
     // txtNumber
     //
     this.txtNumber.Location = new System.Drawing.Point(256, 40);
     this.txtNumber.Name     = "txtNumber";
     this.txtNumber.Size     = new System.Drawing.Size(56, 20);
     this.txtNumber.TabIndex = 8;
     this.txtNumber.Text     = "100";
     //
     // Form1
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.ClientSize        = new System.Drawing.Size(312, 109);
     this.Controls.Add(this.txtNumber);
     this.Controls.Add(this.progressBar1);
     this.Controls.Add(this.button1);
     this.Controls.Add(this.txtDomain);
     this.Controls.Add(this.txtUserName);
     this.Controls.Add(this.label2);
     this.Controls.Add(this.btnConfirm);
     this.Controls.Add(this.label1);
     this.Controls.Add(this.label3);
     this.Icon          = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
     this.Name          = "Form1";
     this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
     this.Text          = "OfficeWorks - Active Directory Manager";
     this.ResumeLayout(false);
 }
Exemplo n.º 38
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.c1CommandDock1    = new C1.Win.C1Command.C1CommandDock();
     this.c1DockingTab1     = new C1.Win.C1Command.C1DockingTab();
     this.c1DockingTabPage1 = new C1.Win.C1Command.C1DockingTabPage();
     this.vss     = new C1.Win.C1FlexGrid.C1FlexGrid();
     this.panel1  = new System.Windows.Forms.Panel();
     this.panel4  = new System.Windows.Forms.Panel();
     this.panel7  = new System.Windows.Forms.Panel();
     this.vs      = new C1.Win.C1FlexGrid.C1FlexGrid();
     this.panel6  = new System.Windows.Forms.Panel();
     this.li      = new System.Windows.Forms.ListBox();
     this.panel5  = new System.Windows.Forms.Panel();
     this.pro2    = new System.Windows.Forms.ProgressBar();
     this.pro1    = new System.Windows.Forms.ProgressBar();
     this.l2      = new System.Windows.Forms.Label();
     this.l1      = new System.Windows.Forms.Label();
     this.button1 = new System.Windows.Forms.Button();
     this.button2 = new System.Windows.Forms.Button();
     this.panel2  = new System.Windows.Forms.Panel();
     this.l       = new System.Windows.Forms.Label();
     this.panel3  = new System.Windows.Forms.Panel();
     this.nav     = new Navigator1._0.NavigatorAuto();
     this.dt1     = new C1.Win.C1Input.C1DateEdit();
     this.dt2     = new C1.Win.C1Input.C1DateEdit();
     ((System.ComponentModel.ISupportInitialize)(this.c1CommandDock1)).BeginInit();
     this.c1CommandDock1.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.c1DockingTab1)).BeginInit();
     this.c1DockingTab1.SuspendLayout();
     this.c1DockingTabPage1.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.vss)).BeginInit();
     this.panel1.SuspendLayout();
     this.panel4.SuspendLayout();
     this.panel7.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.vs)).BeginInit();
     this.panel6.SuspendLayout();
     this.panel5.SuspendLayout();
     this.panel2.SuspendLayout();
     this.panel3.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.dt1)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.dt2)).BeginInit();
     this.SuspendLayout();
     //
     // c1CommandDock1
     //
     this.c1CommandDock1.Controls.Add(this.c1DockingTab1);
     this.c1CommandDock1.Dock     = System.Windows.Forms.DockStyle.Left;
     this.c1CommandDock1.Id       = 1;
     this.c1CommandDock1.Location = new System.Drawing.Point(0, 0);
     this.c1CommandDock1.Name     = "c1CommandDock1";
     this.c1CommandDock1.Size     = new System.Drawing.Size(340, 496);
     //
     // c1DockingTab1
     //
     this.c1DockingTab1.Alignment   = System.Windows.Forms.TabAlignment.Bottom;
     this.c1DockingTab1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
     this.c1DockingTab1.CanAutoHide = true;
     this.c1DockingTab1.CanMoveTabs = true;
     this.c1DockingTab1.Controls.Add(this.c1DockingTabPage1);
     this.c1DockingTab1.Location      = new System.Drawing.Point(0, 0);
     this.c1DockingTab1.Name          = "c1DockingTab1";
     this.c1DockingTab1.SelectedIndex = 0;
     this.c1DockingTab1.ShowCaption   = true;
     this.c1DockingTab1.ShowSingleTab = false;
     this.c1DockingTab1.Size          = new System.Drawing.Size(340, 496);
     this.c1DockingTab1.TabIndex      = 0;
     this.c1DockingTab1.TabSizeMode   = C1.Win.C1Command.TabSizeModeEnum.Fit;
     this.c1DockingTab1.TabStyle      = C1.Win.C1Command.TabStyleEnum.WindowsXP;
     //
     // c1DockingTabPage1
     //
     this.c1DockingTabPage1.Controls.Add(this.vss);
     this.c1DockingTabPage1.ImageIndex = -1;
     this.c1DockingTabPage1.Location   = new System.Drawing.Point(1, 1);
     this.c1DockingTabPage1.Name       = "c1DockingTabPage1";
     this.c1DockingTabPage1.Size       = new System.Drawing.Size(335, 494);
     this.c1DockingTabPage1.TabIndex   = 0;
     this.c1DockingTabPage1.Text       = "Page1";
     //
     // vss
     //
     this.vss.AllowEditing  = false;
     this.vss.BorderStyle   = C1.Win.C1FlexGrid.Util.BaseControls.BorderStyleEnum.XpThemes;
     this.vss.ColumnInfo    = "10,1,0,0,0,100,Columns:0{Width:38;}\t";
     this.vss.Dock          = System.Windows.Forms.DockStyle.Fill;
     this.vss.Font          = new System.Drawing.Font("Tahoma", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
     this.vss.KeyActionTab  = C1.Win.C1FlexGrid.KeyActionEnum.MoveAcross;
     this.vss.Location      = new System.Drawing.Point(0, 20);
     this.vss.Name          = "vss";
     this.vss.SelectionMode = C1.Win.C1FlexGrid.SelectionModeEnum.Row;
     this.vss.Size          = new System.Drawing.Size(335, 474);
     this.vss.Styles        = ((C1.Win.C1FlexGrid.CellStyleCollection)(new C1.Win.C1FlexGrid.CellStyleCollection("")));
     this.vss.TabIndex      = 29;
     this.vss.Tag           = "N";
     //
     // panel1
     //
     this.panel1.Controls.Add(this.panel4);
     this.panel1.Controls.Add(this.panel5);
     this.panel1.Controls.Add(this.panel2);
     this.panel1.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.panel1.Location = new System.Drawing.Point(340, 0);
     this.panel1.Name     = "panel1";
     this.panel1.Size     = new System.Drawing.Size(732, 496);
     this.panel1.TabIndex = 2;
     //
     // panel4
     //
     this.panel4.Controls.Add(this.panel7);
     this.panel4.Controls.Add(this.panel6);
     this.panel4.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.panel4.Location = new System.Drawing.Point(0, 36);
     this.panel4.Name     = "panel4";
     this.panel4.Size     = new System.Drawing.Size(732, 316);
     this.panel4.TabIndex = 4;
     //
     // panel7
     //
     this.panel7.Controls.Add(this.vs);
     this.panel7.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.panel7.Location = new System.Drawing.Point(0, 0);
     this.panel7.Name     = "panel7";
     this.panel7.Size     = new System.Drawing.Size(456, 316);
     this.panel7.TabIndex = 1;
     //
     // vs
     //
     this.vs.BorderStyle   = C1.Win.C1FlexGrid.Util.BaseControls.BorderStyleEnum.XpThemes;
     this.vs.ColumnInfo    = "10,1,0,0,0,100,Columns:0{Width:38;}\t";
     this.vs.Dock          = System.Windows.Forms.DockStyle.Fill;
     this.vs.Font          = new System.Drawing.Font("Tahoma", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
     this.vs.KeyActionTab  = C1.Win.C1FlexGrid.KeyActionEnum.MoveAcross;
     this.vs.Location      = new System.Drawing.Point(0, 0);
     this.vs.Name          = "vs";
     this.vs.SelectionMode = C1.Win.C1FlexGrid.SelectionModeEnum.CellRange;
     this.vs.Size          = new System.Drawing.Size(456, 316);
     this.vs.Styles        = ((C1.Win.C1FlexGrid.CellStyleCollection)(new C1.Win.C1FlexGrid.CellStyleCollection("")));
     this.vs.TabIndex      = 30;
     //
     // panel6
     //
     this.panel6.Controls.Add(this.li);
     this.panel6.Dock     = System.Windows.Forms.DockStyle.Right;
     this.panel6.Location = new System.Drawing.Point(456, 0);
     this.panel6.Name     = "panel6";
     this.panel6.Size     = new System.Drawing.Size(276, 316);
     this.panel6.TabIndex = 0;
     //
     // li
     //
     this.li.Dock       = System.Windows.Forms.DockStyle.Fill;
     this.li.ItemHeight = 16;
     this.li.Location   = new System.Drawing.Point(0, 0);
     this.li.Name       = "li";
     this.li.Size       = new System.Drawing.Size(276, 308);
     this.li.TabIndex   = 0;
     //
     // panel5
     //
     this.panel5.BackColor = System.Drawing.Color.LightSteelBlue;
     this.panel5.Controls.Add(this.pro2);
     this.panel5.Controls.Add(this.pro1);
     this.panel5.Controls.Add(this.l2);
     this.panel5.Controls.Add(this.l1);
     this.panel5.Controls.Add(this.button1);
     this.panel5.Controls.Add(this.button2);
     this.panel5.Dock     = System.Windows.Forms.DockStyle.Bottom;
     this.panel5.Location = new System.Drawing.Point(0, 352);
     this.panel5.Name     = "panel5";
     this.panel5.Size     = new System.Drawing.Size(732, 144);
     this.panel5.TabIndex = 3;
     //
     // pro2
     //
     this.pro2.Dock     = System.Windows.Forms.DockStyle.Top;
     this.pro2.Location = new System.Drawing.Point(0, 69);
     this.pro2.Name     = "pro2";
     this.pro2.Size     = new System.Drawing.Size(732, 23);
     this.pro2.TabIndex = 5;
     //
     // pro1
     //
     this.pro1.Dock     = System.Windows.Forms.DockStyle.Top;
     this.pro1.Location = new System.Drawing.Point(0, 46);
     this.pro1.Name     = "pro1";
     this.pro1.Size     = new System.Drawing.Size(732, 23);
     this.pro1.TabIndex = 4;
     //
     // l2
     //
     this.l2.BackColor = System.Drawing.Color.Black;
     this.l2.Dock      = System.Windows.Forms.DockStyle.Top;
     this.l2.Font      = new System.Drawing.Font("Tahoma", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
     this.l2.ForeColor = System.Drawing.Color.White;
     this.l2.Location  = new System.Drawing.Point(0, 23);
     this.l2.Name      = "l2";
     this.l2.Size      = new System.Drawing.Size(732, 23);
     this.l2.TabIndex  = 3;
     this.l2.Tag       = "N";
     this.l2.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
     //
     // l1
     //
     this.l1.BackColor = System.Drawing.Color.Black;
     this.l1.Dock      = System.Windows.Forms.DockStyle.Top;
     this.l1.Font      = new System.Drawing.Font("Tahoma", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
     this.l1.ForeColor = System.Drawing.Color.White;
     this.l1.Location  = new System.Drawing.Point(0, 0);
     this.l1.Name      = "l1";
     this.l1.Size      = new System.Drawing.Size(732, 23);
     this.l1.TabIndex  = 2;
     this.l1.Tag       = "N";
     this.l1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
     //
     // button1
     //
     this.button1.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.button1.Location  = new System.Drawing.Point(111, 100);
     this.button1.Name      = "button1";
     this.button1.Size      = new System.Drawing.Size(128, 36);
     this.button1.TabIndex  = 0;
     this.button1.Text      = "button1";
     this.button1.Click    += new System.EventHandler(this.button1_Click);
     //
     // button2
     //
     this.button2.DialogResult = System.Windows.Forms.DialogResult.Cancel;
     this.button2.FlatStyle    = System.Windows.Forms.FlatStyle.System;
     this.button2.Location     = new System.Drawing.Point(285, 100);
     this.button2.Name         = "button2";
     this.button2.Size         = new System.Drawing.Size(128, 36);
     this.button2.TabIndex     = 1;
     this.button2.Text         = "button2";
     this.button2.Click       += new System.EventHandler(this.button2_Click);
     //
     // panel2
     //
     this.panel2.BackColor = System.Drawing.Color.FromArgb(((System.Byte)(255)), ((System.Byte)(255)), ((System.Byte)(192)));
     this.panel2.Controls.Add(this.dt2);
     this.panel2.Controls.Add(this.dt1);
     this.panel2.Controls.Add(this.l);
     this.panel2.Controls.Add(this.panel3);
     this.panel2.Dock     = System.Windows.Forms.DockStyle.Top;
     this.panel2.Location = new System.Drawing.Point(0, 0);
     this.panel2.Name     = "panel2";
     this.panel2.Size     = new System.Drawing.Size(732, 36);
     this.panel2.TabIndex = 1;
     //
     // l
     //
     this.l.BackColor = System.Drawing.Color.FromArgb(((System.Byte)(255)), ((System.Byte)(255)), ((System.Byte)(192)));
     this.l.Dock      = System.Windows.Forms.DockStyle.Fill;
     this.l.Font      = new System.Drawing.Font("Tahoma", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
     this.l.ForeColor = System.Drawing.SystemColors.ActiveCaption;
     this.l.Location  = new System.Drawing.Point(424, 0);
     this.l.Name      = "l";
     this.l.Size      = new System.Drawing.Size(308, 36);
     this.l.TabIndex  = 6;
     this.l.Tag       = "";
     this.l.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
     this.l.Visible   = false;
     //
     // panel3
     //
     this.panel3.Controls.Add(this.nav);
     this.panel3.Dock     = System.Windows.Forms.DockStyle.Left;
     this.panel3.Location = new System.Drawing.Point(0, 0);
     this.panel3.Name     = "panel3";
     this.panel3.Size     = new System.Drawing.Size(424, 36);
     this.panel3.TabIndex = 0;
     //
     // nav
     //
     this.nav.BackColor     = System.Drawing.Color.FromArgb(((System.Byte)(255)), ((System.Byte)(255)), ((System.Byte)(192)));
     this.nav.Connection    = null;
     this.nav.ConnectionDel = null;
     this.nav.Font          = new System.Drawing.Font("Tahoma", 9.75F);
     this.nav.form          = null;
     this.nav.FormName      = null;
     this.nav.Grid          = null;
     this.nav.History       = false;
     this.nav.IsNull        = true;
     this.nav.Language      = "EN";
     this.nav.Location      = new System.Drawing.Point(4, 3);
     this.nav.MSG_Exit      = false;
     this.nav.MulltiDel     = false;
     this.nav.Name          = "nav";
     this.nav.Security      = 0;
     this.nav.ShowPopupMenu = false;
     this.nav.Size          = new System.Drawing.Size(416, 32);
     this.nav.TabIndex      = 30;
     this.nav.ToolBar_Auto  = true;
     this.nav.UserID        = null;
     this.nav.VisibleGrid   = true;
     this.nav.Where         = null;
     //
     // dt1
     //
     this.dt1.CustomFormat = "yyyyMM";
     this.dt1.FormatType   = C1.Win.C1Input.FormatTypeEnum.CustomFormat;
     this.dt1.Location     = new System.Drawing.Point(460, 4);
     this.dt1.Name         = "dt1";
     this.dt1.Size         = new System.Drawing.Size(80, 23);
     this.dt1.TabIndex     = 168;
     this.dt1.Tag          = null;
     //
     // dt2
     //
     this.dt2.CustomFormat = "yyyyMM";
     this.dt2.FormatType   = C1.Win.C1Input.FormatTypeEnum.CustomFormat;
     this.dt2.Location     = new System.Drawing.Point(552, 4);
     this.dt2.Name         = "dt2";
     this.dt2.Size         = new System.Drawing.Size(80, 23);
     this.dt2.TabIndex     = 169;
     this.dt2.Tag          = null;
     //
     // frmTaTransferToGPS
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(6, 16);
     this.ClientSize        = new System.Drawing.Size(1072, 496);
     this.Controls.Add(this.panel1);
     this.Controls.Add(this.c1CommandDock1);
     this.Font    = new System.Drawing.Font("Tahoma", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
     this.Name    = "frmTaTransferToGPS";
     this.Text    = "frmTaTransferToGPS";
     this.Load   += new System.EventHandler(this.frmTaTransferToGPS_Load);
     this.Closed += new System.EventHandler(this.frmTaTransferToGPS_Closed);
     ((System.ComponentModel.ISupportInitialize)(this.c1CommandDock1)).EndInit();
     this.c1CommandDock1.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.c1DockingTab1)).EndInit();
     this.c1DockingTab1.ResumeLayout(false);
     this.c1DockingTabPage1.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.vss)).EndInit();
     this.panel1.ResumeLayout(false);
     this.panel4.ResumeLayout(false);
     this.panel7.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.vs)).EndInit();
     this.panel6.ResumeLayout(false);
     this.panel5.ResumeLayout(false);
     this.panel2.ResumeLayout(false);
     this.panel3.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.dt1)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.dt2)).EndInit();
     this.ResumeLayout(false);
 }
Exemplo n.º 39
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();
     Infragistics.Win.Appearance appearance1 = new Infragistics.Win.Appearance();
     Infragistics.Win.UltraWinGrid.UltraGridBand   ultraGridBand1   = new Infragistics.Win.UltraWinGrid.UltraGridBand("Band 0", -1);
     Infragistics.Win.UltraWinGrid.UltraGridColumn ultraGridColumn1 = new Infragistics.Win.UltraWinGrid.UltraGridColumn("CustomerID");
     Infragistics.Win.UltraWinGrid.UltraGridColumn ultraGridColumn2 = new Infragistics.Win.UltraWinGrid.UltraGridColumn("Name", 0);
     Infragistics.Win.UltraWinGrid.UltraGridColumn ultraGridColumn3 = new Infragistics.Win.UltraWinGrid.UltraGridColumn("NoItems", 1);
     Infragistics.Win.UltraWinGrid.UltraGridColumn ultraGridColumn4 = new Infragistics.Win.UltraWinGrid.UltraGridColumn("Teacher", 2);
     Infragistics.Win.Appearance appearance2 = new Infragistics.Win.Appearance();
     Infragistics.Win.Appearance appearance3 = new Infragistics.Win.Appearance();
     Infragistics.Win.Appearance appearance4 = new Infragistics.Win.Appearance();
     Infragistics.Win.Appearance appearance5 = new Infragistics.Win.Appearance();
     this.ImageList1 = new System.Windows.Forms.ImageList(this.components);
     this.Label1     = new System.Windows.Forms.Label();
     this.GroupBox1  = new Signature.Windows.Forms.GroupBox();
     this.txtSearch  = new Signature.Windows.Forms.MaskedEdit();
     this.btnClose   = new System.Windows.Forms.Button();
     this.Label23    = new System.Windows.Forms.Label();
     this.pbar       = new System.Windows.Forms.ProgressBar();
     this.Grid       = new Infragistics.Win.UltraWinGrid.UltraGrid();
     ((System.ComponentModel.ISupportInitialize)(this.GroupBox1)).BeginInit();
     this.GroupBox1.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.Grid)).BeginInit();
     this.SuspendLayout();
     //
     // ImageList1
     //
     this.ImageList1.ColorDepth       = System.Windows.Forms.ColorDepth.Depth32Bit;
     this.ImageList1.ImageSize        = new System.Drawing.Size(15, 15);
     this.ImageList1.TransparentColor = System.Drawing.Color.Transparent;
     //
     // Label1
     //
     this.Label1.BackColor = System.Drawing.SystemColors.ActiveCaption;
     this.Label1.Dock      = System.Windows.Forms.DockStyle.Top;
     this.Label1.Font      = new System.Drawing.Font("Arial", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.Label1.ForeColor = System.Drawing.SystemColors.ActiveCaptionText;
     this.Label1.Location  = new System.Drawing.Point(0, 10);
     this.Label1.Name      = "Label1";
     this.Label1.Size      = new System.Drawing.Size(558, 6);
     this.Label1.TabIndex  = 0;
     //
     // GroupBox1
     //
     this.GroupBox1.AllowDrop = true;
     this.GroupBox1.Anchor    = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                                                                      | System.Windows.Forms.AnchorStyles.Right)));
     this.GroupBox1.BackColorInternal = System.Drawing.SystemColors.GradientInactiveCaption;
     this.GroupBox1.Controls.Add(this.txtSearch);
     this.GroupBox1.Controls.Add(this.btnClose);
     this.GroupBox1.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.GroupBox1.Location  = new System.Drawing.Point(4, 16);
     this.GroupBox1.Name      = "GroupBox1";
     this.GroupBox1.Size      = new System.Drawing.Size(546, 42);
     this.GroupBox1.TabIndex  = 1;
     this.GroupBox1.ViewStyle = Infragistics.Win.Misc.GroupBoxViewStyle.Office2007;
     //
     // txtSearch
     //
     this.txtSearch.AllowDrop    = true;
     this.txtSearch.BorderColor  = System.Drawing.Color.FromArgb(((int)(((byte)(171)))), ((int)(((byte)(173)))), ((int)(((byte)(179)))));
     this.txtSearch.BorderStyle  = System.Windows.Forms.BorderStyle.FixedSingle;
     this.txtSearch.Location     = new System.Drawing.Point(14, 15);
     this.txtSearch.Name         = "txtSearch";
     this.txtSearch.Size         = new System.Drawing.Size(446, 20);
     this.txtSearch.TabIndex     = 0;
     this.txtSearch.TextChanged += new System.EventHandler(this.txtSearch_TextChanged_1);
     this.txtSearch.KeyUp       += new System.Windows.Forms.KeyEventHandler(this.txtControl_KeyUp);
     //
     // btnClose
     //
     this.btnClose.Anchor     = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.btnClose.Cursor     = System.Windows.Forms.Cursors.Hand;
     this.btnClose.FlatStyle  = System.Windows.Forms.FlatStyle.Flat;
     this.btnClose.Font       = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.btnClose.ForeColor  = System.Drawing.Color.DimGray;
     this.btnClose.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
     this.btnClose.Location   = new System.Drawing.Point(824, 12);
     this.btnClose.Name       = "btnClose";
     this.btnClose.Size       = new System.Drawing.Size(56, 24);
     this.btnClose.TabIndex   = 67;
     this.btnClose.Tag        = "";
     this.btnClose.Text       = "Close";
     this.btnClose.Click     += new System.EventHandler(this.btnClose_Click);
     //
     // Label23
     //
     this.Label23.BackColor = System.Drawing.SystemColors.ActiveCaption;
     this.Label23.Dock      = System.Windows.Forms.DockStyle.Top;
     this.Label23.Font      = new System.Drawing.Font("Arial", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.Label23.ForeColor = System.Drawing.SystemColors.ActiveCaption;
     this.Label23.Location  = new System.Drawing.Point(0, 0);
     this.Label23.Name      = "Label23";
     this.Label23.Size      = new System.Drawing.Size(558, 10);
     this.Label23.TabIndex  = 75;
     this.Label23.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
     //
     // pbar
     //
     this.pbar.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                                                              | System.Windows.Forms.AnchorStyles.Right)));
     this.pbar.Location = new System.Drawing.Point(0, 64);
     this.pbar.Name     = "pbar";
     this.pbar.Size     = new System.Drawing.Size(550, 10);
     this.pbar.TabIndex = 78;
     //
     // Grid
     //
     appearance1.BackColor = System.Drawing.Color.White;
     this.Grid.DisplayLayout.Appearance      = appearance1;
     ultraGridColumn1.CellActivation         = Infragistics.Win.UltraWinGrid.Activation.NoEdit;
     ultraGridColumn1.Header.Caption         = "School ID";
     ultraGridColumn1.Header.VisiblePosition = 0;
     ultraGridColumn1.Width                  = 58;
     ultraGridColumn2.CellActivation         = Infragistics.Win.UltraWinGrid.Activation.NoEdit;
     ultraGridColumn2.Header.VisiblePosition = 1;
     ultraGridColumn2.Width                  = 235;
     ultraGridColumn3.CellActivation         = Infragistics.Win.UltraWinGrid.Activation.NoEdit;
     ultraGridColumn3.Header.VisiblePosition = 2;
     ultraGridColumn3.Width                  = 47;
     ultraGridColumn4.CellActivation         = Infragistics.Win.UltraWinGrid.Activation.NoEdit;
     ultraGridColumn4.Header.VisiblePosition = 3;
     ultraGridColumn4.Width                  = 203;
     ultraGridBand1.Columns.AddRange(new object[] {
         ultraGridColumn1,
         ultraGridColumn2,
         ultraGridColumn3,
         ultraGridColumn4
     });
     this.Grid.DisplayLayout.BandsSerializer.Add(ultraGridBand1);
     this.Grid.DisplayLayout.Override.BorderStyleCell = Infragistics.Win.UIElementBorderStyle.None;
     appearance2.BackColor = System.Drawing.Color.Transparent;
     this.Grid.DisplayLayout.Override.CardAreaAppearance = appearance2;
     this.Grid.DisplayLayout.Override.CellClickAction    = Infragistics.Win.UltraWinGrid.CellClickAction.RowSelect;
     this.Grid.DisplayLayout.Override.CellPadding        = 3;
     appearance3.TextHAlignAsString = "Left";
     this.Grid.DisplayLayout.Override.HeaderAppearance = appearance3;
     appearance4.BorderColor        = System.Drawing.Color.LightGray;
     appearance4.TextVAlignAsString = "Middle";
     this.Grid.DisplayLayout.Override.RowAppearance = appearance4;
     this.Grid.DisplayLayout.Override.RowSelectors  = Infragistics.Win.DefaultableBoolean.False;
     appearance5.BackColor   = System.Drawing.Color.LightSteelBlue;
     appearance5.BorderColor = System.Drawing.Color.Black;
     appearance5.ForeColor   = System.Drawing.Color.Black;
     this.Grid.DisplayLayout.Override.SelectedRowAppearance = appearance5;
     this.Grid.DisplayLayout.RowConnectorStyle = Infragistics.Win.UltraWinGrid.RowConnectorStyle.None;
     this.Grid.Location = new System.Drawing.Point(3, 75);
     this.Grid.Name     = "Grid";
     this.Grid.Size     = new System.Drawing.Size(547, 466);
     this.Grid.TabIndex = 82;
     this.Grid.KeyUp   += new System.Windows.Forms.KeyEventHandler(this.txtControl_KeyUp);
     this.Grid.MouseUp += new System.Windows.Forms.MouseEventHandler(this.DataGrid_MouseUp);
     //
     // frmViewStudent
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.ClientSize        = new System.Drawing.Size(558, 553);
     this.Controls.Add(this.Grid);
     this.Controls.Add(this.Label1);
     this.Controls.Add(this.GroupBox1);
     this.Controls.Add(this.Label23);
     this.Controls.Add(this.pbar);
     this.Name          = "frmViewStudent";
     this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
     this.Text          = "CustomerView";
     this.TopMost       = true;
     this.Load         += new System.EventHandler(this.frmCustomerView_Load);
     ((System.ComponentModel.ISupportInitialize)(this.GroupBox1)).EndInit();
     this.GroupBox1.ResumeLayout(false);
     this.GroupBox1.PerformLayout();
     ((System.ComponentModel.ISupportInitialize)(this.Grid)).EndInit();
     this.ResumeLayout(false);
 }
Exemplo n.º 40
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.wizardStartPage = new Crownwood.Magic.Controls.WizardPage();
     this.label3          = new System.Windows.Forms.Label();
     this.label2          = new System.Windows.Forms.Label();
     this.label1          = new System.Windows.Forms.Label();
     this.wizardInfo1     = new Crownwood.Magic.Controls.WizardPage();
     this.groupBox1       = new System.Windows.Forms.GroupBox();
     this.radioButton3    = new System.Windows.Forms.RadioButton();
     this.radioButton2    = new System.Windows.Forms.RadioButton();
     this.radioButton1    = new System.Windows.Forms.RadioButton();
     this.wizardLegal     = new Crownwood.Magic.Controls.WizardPage();
     this.radioButton5    = new System.Windows.Forms.RadioButton();
     this.radioButton4    = new System.Windows.Forms.RadioButton();
     this.label4          = new System.Windows.Forms.Label();
     this.textBox1        = new System.Windows.Forms.TextBox();
     this.wizardWarn      = new Crownwood.Magic.Controls.WizardPage();
     this.label6          = new System.Windows.Forms.Label();
     this.label5          = new System.Windows.Forms.Label();
     this.wizardInstall   = new Crownwood.Magic.Controls.WizardPage();
     this.label7          = new System.Windows.Forms.Label();
     this.progressBar1    = new System.Windows.Forms.ProgressBar();
     this.wizardFinish    = new Crownwood.Magic.Controls.WizardPage();
     this.label10         = new System.Windows.Forms.Label();
     this.wizardInfo2     = new Crownwood.Magic.Controls.WizardPage();
     this.label9          = new System.Windows.Forms.Label();
     this.textBox3        = new System.Windows.Forms.TextBox();
     this.label8          = new System.Windows.Forms.Label();
     this.textBox2        = new System.Windows.Forms.TextBox();
     this.wizardStartPage.SuspendLayout();
     this.wizardInfo1.SuspendLayout();
     this.groupBox1.SuspendLayout();
     this.wizardLegal.SuspendLayout();
     this.wizardWarn.SuspendLayout();
     this.wizardInstall.SuspendLayout();
     this.wizardFinish.SuspendLayout();
     this.wizardInfo2.SuspendLayout();
     this.SuspendLayout();
     //
     // wizardControl
     //
     this.wizardControl.AssignDefaultButton = true;
     this.wizardControl.Profile             = Crownwood.Magic.Controls.WizardControl.Profiles.Install;
     this.wizardControl.SelectedIndex       = 0;
     this.wizardControl.Size    = new System.Drawing.Size(410, 343);
     this.wizardControl.Title   = "Sample Wizard using Install Profile";
     this.wizardControl.Visible = true;
     this.wizardControl.WizardPages.AddRange(new Crownwood.Magic.Controls.WizardPage[] {
         this.wizardStartPage,
         this.wizardLegal,
         this.wizardInfo1,
         this.wizardInfo2,
         this.wizardWarn,
         this.wizardInstall,
         this.wizardFinish
     });
     //
     // wizardStartPage
     //
     this.wizardStartPage.CaptionTitle = "Sample Description";
     this.wizardStartPage.Controls.AddRange(new System.Windows.Forms.Control[] {
         this.label3,
         this.label2,
         this.label1
     });
     this.wizardStartPage.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.wizardStartPage.FullPage = false;
     this.wizardStartPage.Name     = "wizardStartPage";
     this.wizardStartPage.Size     = new System.Drawing.Size(410, 189);
     this.wizardStartPage.SubTitle = "Start page explaining what this sample demonstrates";
     this.wizardStartPage.TabIndex = 3;
     this.wizardStartPage.Title    = "Start";
     //
     // label3
     //
     this.label3.Location = new System.Drawing.Point(8, 136);
     this.label3.Name     = "label3";
     this.label3.Size     = new System.Drawing.Size(400, 64);
     this.label3.TabIndex = 3;
     this.label3.Text     = @"Therefore on the second to last page only the 'Cancel' button is available and used to abort the installation. On the last page only the 'Close' button is available as the only possible action left is to exit the dialog.  On preceding pages the 'Next' and 'Back' buttons are displayed when appropriate as well as the 'Cancel' button.";
     //
     // label2
     //
     this.label2.Location = new System.Drawing.Point(8, 72);
     this.label2.Name     = "label2";
     this.label2.Size     = new System.Drawing.Size(400, 64);
     this.label2.TabIndex = 2;
     this.label2.Text     = @"In this profile the last two pages have special significance. The second to last is used for conducting the actual installation. The last page is used to report the success or failure of the install. All other preceding pages are for information gathering prior to the install attempt.";
     //
     // label1
     //
     this.label1.Location = new System.Drawing.Point(8, 8);
     this.label1.Name     = "label1";
     this.label1.Size     = new System.Drawing.Size(400, 56);
     this.label1.TabIndex = 1;
     this.label1.Text     = @"The WizardControl and associated WizardDialog can be used in three different profiles depending on the type of Wizard required. Available options are 'Install', 'Configure' and 'Controller'. This sample is intended to demonstrate use of the 'Install' profile.";
     //
     // wizardInfo1
     //
     this.wizardInfo1.CaptionTitle = "Gather Info 1";
     this.wizardInfo1.Controls.AddRange(new System.Windows.Forms.Control[] {
         this.groupBox1
     });
     this.wizardInfo1.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.wizardInfo1.FullPage = false;
     this.wizardInfo1.Name     = "wizardInfo1";
     this.wizardInfo1.Selected = false;
     this.wizardInfo1.Size     = new System.Drawing.Size(410, 269);
     this.wizardInfo1.SubTitle = "This is the first of two pages for gathering input";
     this.wizardInfo1.TabIndex = 4;
     this.wizardInfo1.Title    = "Info1";
     //
     // groupBox1
     //
     this.groupBox1.Controls.AddRange(new System.Windows.Forms.Control[] {
         this.radioButton3,
         this.radioButton2,
         this.radioButton1
     });
     this.groupBox1.Location = new System.Drawing.Point(24, 16);
     this.groupBox1.Name     = "groupBox1";
     this.groupBox1.Size     = new System.Drawing.Size(160, 152);
     this.groupBox1.TabIndex = 0;
     this.groupBox1.TabStop  = false;
     this.groupBox1.Text     = "Example of Selection";
     //
     // radioButton3
     //
     this.radioButton3.Location = new System.Drawing.Point(32, 112);
     this.radioButton3.Name     = "radioButton3";
     this.radioButton3.TabIndex = 2;
     this.radioButton3.Text     = "Debug Install";
     //
     // radioButton2
     //
     this.radioButton2.Location = new System.Drawing.Point(32, 72);
     this.radioButton2.Name     = "radioButton2";
     this.radioButton2.TabIndex = 1;
     this.radioButton2.Text     = "Server Install";
     //
     // radioButton1
     //
     this.radioButton1.Location = new System.Drawing.Point(32, 32);
     this.radioButton1.Name     = "radioButton1";
     this.radioButton1.TabIndex = 0;
     this.radioButton1.Text     = "Client Install";
     //
     // wizardLegal
     //
     this.wizardLegal.CaptionTitle = "Standard Legal Notice";
     this.wizardLegal.Controls.AddRange(new System.Windows.Forms.Control[] {
         this.radioButton5,
         this.radioButton4,
         this.label4,
         this.textBox1
     });
     this.wizardLegal.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.wizardLegal.FullPage = false;
     this.wizardLegal.Name     = "wizardLegal";
     this.wizardLegal.Selected = false;
     this.wizardLegal.Size     = new System.Drawing.Size(410, 269);
     this.wizardLegal.SubTitle = "Force the user to agree a license agreement for product";
     this.wizardLegal.TabIndex = 5;
     this.wizardLegal.Title    = "Legal";
     //
     // radioButton5
     //
     this.radioButton5.Checked         = true;
     this.radioButton5.Location        = new System.Drawing.Point(216, 160);
     this.radioButton5.Name            = "radioButton5";
     this.radioButton5.Size            = new System.Drawing.Size(88, 24);
     this.radioButton5.TabIndex        = 3;
     this.radioButton5.TabStop         = true;
     this.radioButton5.Text            = "I Disagree";
     this.radioButton5.CheckedChanged += new System.EventHandler(this.radioButton5_CheckedChanged);
     //
     // radioButton4
     //
     this.radioButton4.Location        = new System.Drawing.Point(120, 160);
     this.radioButton4.Name            = "radioButton4";
     this.radioButton4.Size            = new System.Drawing.Size(72, 24);
     this.radioButton4.TabIndex        = 2;
     this.radioButton4.Text            = "I Agree";
     this.radioButton4.CheckedChanged += new System.EventHandler(this.radioButton4_CheckedChanged);
     //
     // label4
     //
     this.label4.Location = new System.Drawing.Point(32, 8);
     this.label4.Name     = "label4";
     this.label4.TabIndex = 1;
     this.label4.Text     = "Must Agree Terms";
     //
     // textBox1
     //
     this.textBox1.Location  = new System.Drawing.Point(32, 32);
     this.textBox1.Multiline = true;
     this.textBox1.Name      = "textBox1";
     this.textBox1.Size      = new System.Drawing.Size(352, 120);
     this.textBox1.TabIndex  = 0;
     this.textBox1.Text      = "You must select \'I Agree\' before the \'Next\' button will enable itself. This custo" +
                               "m action is not part of the WizardControl, see the sample code which is trivial." +
                               "";
     //
     // wizardWarn
     //
     this.wizardWarn.CaptionTitle = "Warning, about to install";
     this.wizardWarn.Controls.AddRange(new System.Windows.Forms.Control[] {
         this.label6,
         this.label5
     });
     this.wizardWarn.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.wizardWarn.FullPage = false;
     this.wizardWarn.Name     = "wizardWarn";
     this.wizardWarn.Selected = false;
     this.wizardWarn.Size     = new System.Drawing.Size(410, 269);
     this.wizardWarn.SubTitle = "This warns user that installation is about to begin";
     this.wizardWarn.TabIndex = 6;
     this.wizardWarn.Title    = "Warn";
     //
     // label6
     //
     this.label6.Location = new System.Drawing.Point(40, 56);
     this.label6.Name     = "label6";
     this.label6.Size     = new System.Drawing.Size(360, 64);
     this.label6.TabIndex = 1;
     this.label6.Text     = "Warn user that pressing \'Next\' will begin installation process.";
     //
     // label5
     //
     this.label5.Location = new System.Drawing.Point(40, 16);
     this.label5.Name     = "label5";
     this.label5.Size     = new System.Drawing.Size(280, 24);
     this.label5.TabIndex = 0;
     this.label5.Text     = "Last page before installation.";
     //
     // wizardInstall
     //
     this.wizardInstall.CaptionTitle = "Installing";
     this.wizardInstall.Controls.AddRange(new System.Windows.Forms.Control[] {
         this.label7,
         this.progressBar1
     });
     this.wizardInstall.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.wizardInstall.FullPage = false;
     this.wizardInstall.Name     = "wizardInstall";
     this.wizardInstall.Selected = false;
     this.wizardInstall.Size     = new System.Drawing.Size(410, 269);
     this.wizardInstall.SubTitle = "Perform some fake installation process";
     this.wizardInstall.TabIndex = 7;
     this.wizardInstall.Title    = "Install";
     //
     // label7
     //
     this.label7.Location = new System.Drawing.Point(40, 16);
     this.label7.Name     = "label7";
     this.label7.TabIndex = 1;
     this.label7.Text     = "Fake Installation";
     //
     // progressBar1
     //
     this.progressBar1.Location = new System.Drawing.Point(40, 48);
     this.progressBar1.Name     = "progressBar1";
     this.progressBar1.Size     = new System.Drawing.Size(328, 24);
     this.progressBar1.TabIndex = 0;
     //
     // wizardFinish
     //
     this.wizardFinish.CaptionTitle = "Intall Complete";
     this.wizardFinish.Controls.AddRange(new System.Windows.Forms.Control[] {
         this.label10
     });
     this.wizardFinish.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.wizardFinish.FullPage = false;
     this.wizardFinish.Name     = "wizardFinish";
     this.wizardFinish.Selected = false;
     this.wizardFinish.Size     = new System.Drawing.Size(410, 269);
     this.wizardFinish.SubTitle = "This page gives the success or failure of attempting the previous install process" +
                                  "";
     this.wizardFinish.TabIndex = 8;
     this.wizardFinish.Title    = "Finished";
     //
     // label10
     //
     this.label10.Location = new System.Drawing.Point(32, 16);
     this.label10.Name     = "label10";
     this.label10.Size     = new System.Drawing.Size(304, 104);
     this.label10.TabIndex = 0;
     this.label10.Text     = "Installation has completed with success.";
     //
     // wizardInfo2
     //
     this.wizardInfo2.CaptionTitle = "Gather Info 2";
     this.wizardInfo2.Controls.AddRange(new System.Windows.Forms.Control[] {
         this.label9,
         this.textBox3,
         this.label8,
         this.textBox2
     });
     this.wizardInfo2.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.wizardInfo2.FullPage = false;
     this.wizardInfo2.Name     = "wizardInfo2";
     this.wizardInfo2.Selected = false;
     this.wizardInfo2.Size     = new System.Drawing.Size(410, 269);
     this.wizardInfo2.SubTitle = "This is the second of two pages for gathering input";
     this.wizardInfo2.TabIndex = 9;
     this.wizardInfo2.Title    = "Info2";
     //
     // label9
     //
     this.label9.Location = new System.Drawing.Point(48, 80);
     this.label9.Name     = "label9";
     this.label9.Size     = new System.Drawing.Size(136, 23);
     this.label9.TabIndex = 3;
     this.label9.Text     = "Enter Company Name";
     //
     // textBox3
     //
     this.textBox3.Location = new System.Drawing.Point(48, 104);
     this.textBox3.Name     = "textBox3";
     this.textBox3.Size     = new System.Drawing.Size(160, 21);
     this.textBox3.TabIndex = 2;
     this.textBox3.Text     = "ACNE Corp.";
     //
     // label8
     //
     this.label8.Location = new System.Drawing.Point(48, 16);
     this.label8.Name     = "label8";
     this.label8.TabIndex = 1;
     this.label8.Text     = "Enter Username";
     //
     // textBox2
     //
     this.textBox2.Location = new System.Drawing.Point(48, 40);
     this.textBox2.Name     = "textBox2";
     this.textBox2.Size     = new System.Drawing.Size(160, 21);
     this.textBox2.TabIndex = 0;
     this.textBox2.Text     = "Anon";
     //
     // SampleWizard
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.ClientSize        = new System.Drawing.Size(410, 343);
     this.Controls.AddRange(new System.Windows.Forms.Control[] {
         this.wizardControl
     });
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
     this.Name            = "SampleWizard";
     this.TitleMode       = Crownwood.Magic.Forms.WizardDialog.TitleModes.Steps;
     this.wizardStartPage.ResumeLayout(false);
     this.wizardInfo1.ResumeLayout(false);
     this.groupBox1.ResumeLayout(false);
     this.wizardLegal.ResumeLayout(false);
     this.wizardWarn.ResumeLayout(false);
     this.wizardInstall.ResumeLayout(false);
     this.wizardFinish.ResumeLayout(false);
     this.wizardInfo2.ResumeLayout(false);
     this.ResumeLayout(false);
 }
Exemplo n.º 41
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.panel3    = new System.Windows.Forms.Panel();
     this.label5    = new System.Windows.Forms.Label();
     this.panel1    = new System.Windows.Forms.Panel();
     this.c1        = new System.Windows.Forms.Label();
     this.pro1      = new System.Windows.Forms.ProgressBar();
     this.panel5    = new System.Windows.Forms.Panel();
     this.p1        = new System.Windows.Forms.Panel();
     this.cb1       = new System.Windows.Forms.ComboBox();
     this.cb        = new System.Windows.Forms.ComboBox();
     this.dt3       = new C1.Win.C1Input.C1DateEdit();
     this.label6    = new System.Windows.Forms.Label();
     this.label1    = new System.Windows.Forms.Label();
     this.label2    = new System.Windows.Forms.Label();
     this.control1  = new GP8000.UserControl.CrtTaCondition1();
     this.cmd_att   = new System.Windows.Forms.Button();
     this.cmd_close = new System.Windows.Forms.Button();
     this.panel3.SuspendLayout();
     this.panel1.SuspendLayout();
     this.p1.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.dt3)).BeginInit();
     this.SuspendLayout();
     //
     // panel3
     //
     this.panel3.BackColor = System.Drawing.Color.FromArgb(((System.Byte)(255)), ((System.Byte)(255)), ((System.Byte)(192)));
     this.panel3.Controls.Add(this.label5);
     this.panel3.Dock     = System.Windows.Forms.DockStyle.Top;
     this.panel3.Location = new System.Drawing.Point(0, 0);
     this.panel3.Name     = "panel3";
     this.panel3.Size     = new System.Drawing.Size(692, 36);
     this.panel3.TabIndex = 13;
     //
     // label5
     //
     this.label5.BackColor = System.Drawing.Color.FromArgb(((System.Byte)(255)), ((System.Byte)(255)), ((System.Byte)(192)));
     this.label5.Dock      = System.Windows.Forms.DockStyle.Fill;
     this.label5.Font      = new System.Drawing.Font("Tahoma", 15.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
     this.label5.ForeColor = System.Drawing.SystemColors.ActiveCaption;
     this.label5.Location  = new System.Drawing.Point(0, 0);
     this.label5.Name      = "label5";
     this.label5.Size      = new System.Drawing.Size(692, 36);
     this.label5.TabIndex  = 11;
     this.label5.Tag       = "";
     this.label5.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
     //
     // panel1
     //
     this.panel1.Controls.Add(this.c1);
     this.panel1.Controls.Add(this.pro1);
     this.panel1.Controls.Add(this.panel5);
     this.panel1.Controls.Add(this.p1);
     this.panel1.Controls.Add(this.cmd_att);
     this.panel1.Controls.Add(this.cmd_close);
     this.panel1.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.panel1.Location = new System.Drawing.Point(0, 36);
     this.panel1.Name     = "panel1";
     this.panel1.Size     = new System.Drawing.Size(692, 280);
     this.panel1.TabIndex = 14;
     //
     // c1
     //
     this.c1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                                                            | System.Windows.Forms.AnchorStyles.Right)));
     this.c1.BackColor = System.Drawing.Color.Black;
     this.c1.Font      = new System.Drawing.Font("Tahoma", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
     this.c1.ForeColor = System.Drawing.Color.White;
     this.c1.Location  = new System.Drawing.Point(4, 196);
     this.c1.Name      = "c1";
     this.c1.Size      = new System.Drawing.Size(684, 32);
     this.c1.TabIndex  = 8;
     this.c1.Tag       = "N";
     this.c1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
     //
     // pro1
     //
     this.pro1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                                                              | System.Windows.Forms.AnchorStyles.Right)));
     this.pro1.Location = new System.Drawing.Point(4, 176);
     this.pro1.Name     = "pro1";
     this.pro1.Size     = new System.Drawing.Size(684, 20);
     this.pro1.TabIndex = 2;
     //
     // panel5
     //
     this.panel5.BackColor = System.Drawing.Color.CornflowerBlue;
     this.panel5.Dock      = System.Windows.Forms.DockStyle.Top;
     this.panel5.Location  = new System.Drawing.Point(0, 168);
     this.panel5.Name      = "panel5";
     this.panel5.Size      = new System.Drawing.Size(692, 4);
     this.panel5.TabIndex  = 1;
     //
     // p1
     //
     this.p1.Controls.Add(this.cb1);
     this.p1.Controls.Add(this.cb);
     this.p1.Controls.Add(this.dt3);
     this.p1.Controls.Add(this.label6);
     this.p1.Controls.Add(this.label1);
     this.p1.Controls.Add(this.label2);
     this.p1.Controls.Add(this.control1);
     this.p1.Dock     = System.Windows.Forms.DockStyle.Top;
     this.p1.Location = new System.Drawing.Point(0, 0);
     this.p1.Name     = "p1";
     this.p1.Size     = new System.Drawing.Size(692, 168);
     this.p1.TabIndex = 0;
     //
     // cb1
     //
     this.cb1.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.cb1.Location      = new System.Drawing.Point(532, 72);
     this.cb1.Name          = "cb1";
     this.cb1.Size          = new System.Drawing.Size(152, 24);
     this.cb1.TabIndex      = 170;
     //
     // cb
     //
     this.cb.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.cb.Location      = new System.Drawing.Point(532, 44);
     this.cb.Name          = "cb";
     this.cb.Size          = new System.Drawing.Size(152, 24);
     this.cb.TabIndex      = 169;
     //
     // dt3
     //
     this.dt3.CustomFormat = "yyyyMM";
     this.dt3.FormatType   = C1.Win.C1Input.FormatTypeEnum.CustomFormat;
     this.dt3.Location     = new System.Drawing.Point(532, 16);
     this.dt3.Name         = "dt3";
     this.dt3.Size         = new System.Drawing.Size(152, 23);
     this.dt3.TabIndex     = 167;
     this.dt3.Tag          = null;
     //
     // label6
     //
     this.label6.Location = new System.Drawing.Point(448, 76);
     this.label6.Name     = "label6";
     this.label6.TabIndex = 168;
     this.label6.Text     = "label6";
     //
     // label1
     //
     this.label1.Location = new System.Drawing.Point(448, 20);
     this.label1.Name     = "label1";
     this.label1.TabIndex = 161;
     this.label1.Text     = "label1";
     //
     // label2
     //
     this.label2.Location = new System.Drawing.Point(448, 48);
     this.label2.Name     = "label2";
     this.label2.TabIndex = 164;
     this.label2.Text     = "label2";
     //
     // control1
     //
     this.control1.Font     = new System.Drawing.Font("Tahoma", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
     this.control1.Location = new System.Drawing.Point(0, 4);
     this.control1.Name     = "control1";
     this.control1.Size     = new System.Drawing.Size(444, 164);
     this.control1.TabIndex = 0;
     //
     // cmd_att
     //
     this.cmd_att.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.cmd_att.Location  = new System.Drawing.Point(160, 236);
     this.cmd_att.Name      = "cmd_att";
     this.cmd_att.Size      = new System.Drawing.Size(136, 40);
     this.cmd_att.TabIndex  = 152;
     this.cmd_att.Text      = "cal";
     this.cmd_att.Click    += new System.EventHandler(this.cmd_att_Click);
     //
     // cmd_close
     //
     this.cmd_close.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.cmd_close.Location  = new System.Drawing.Point(396, 236);
     this.cmd_close.Name      = "cmd_close";
     this.cmd_close.Size      = new System.Drawing.Size(136, 40);
     this.cmd_close.TabIndex  = 154;
     this.cmd_close.Text      = "button3";
     this.cmd_close.Click    += new System.EventHandler(this.cmd_close_Click);
     //
     // frmTaNotesSlipCal
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(6, 16);
     this.ClientSize        = new System.Drawing.Size(692, 316);
     this.Controls.Add(this.panel1);
     this.Controls.Add(this.panel3);
     this.Font            = new System.Drawing.Font("Tahoma", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
     this.MaximizeBox     = false;
     this.MinimizeBox     = false;
     this.Name            = "frmTaNotesSlipCal";
     this.StartPosition   = System.Windows.Forms.FormStartPosition.CenterScreen;
     this.Text            = "frmTaNotesSlipCal";
     this.Load           += new System.EventHandler(this.frmTaCardDataSwitch_Load);
     this.panel3.ResumeLayout(false);
     this.panel1.ResumeLayout(false);
     this.p1.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.dt3)).EndInit();
     this.ResumeLayout(false);
 }
Exemplo n.º 42
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.txt_server = new System.Windows.Forms.TextBox();
     this.label1     = new System.Windows.Forms.Label();
     this.txt_data   = new System.Windows.Forms.TextBox();
     this.label2     = new System.Windows.Forms.Label();
     this.txt_user   = new System.Windows.Forms.TextBox();
     this.label3     = new System.Windows.Forms.Label();
     this.txt_pass   = new System.Windows.Forms.TextBox();
     this.label4     = new System.Windows.Forms.Label();
     this.button1    = new System.Windows.Forms.Button();
     this.pro        = new System.Windows.Forms.ProgressBar();
     this.lb         = new System.Windows.Forms.Label();
     this.lb1        = new System.Windows.Forms.Label();
     this.vs         = new C1.Win.C1FlexGrid.C1FlexGrid();
     this.nav        = new Navigator1._0.NavigatorAuto();
     ((System.ComponentModel.ISupportInitialize)(this.vs)).BeginInit();
     this.SuspendLayout();
     //
     // txt_server
     //
     this.txt_server.Location = new System.Drawing.Point(116, 12);
     this.txt_server.Name     = "txt_server";
     this.txt_server.Size     = new System.Drawing.Size(188, 23);
     this.txt_server.TabIndex = 0;
     this.txt_server.Text     = "10.0.0.86";
     //
     // label1
     //
     this.label1.Location = new System.Drawing.Point(24, 20);
     this.label1.Name     = "label1";
     this.label1.TabIndex = 1;
     this.label1.Text     = "Server";
     //
     // txt_data
     //
     this.txt_data.Location = new System.Drawing.Point(116, 40);
     this.txt_data.Name     = "txt_data";
     this.txt_data.Size     = new System.Drawing.Size(188, 23);
     this.txt_data.TabIndex = 2;
     this.txt_data.Text     = "GP_cartina";
     //
     // label2
     //
     this.label2.Location = new System.Drawing.Point(24, 48);
     this.label2.Name     = "label2";
     this.label2.TabIndex = 3;
     this.label2.Text     = "Database";
     //
     // txt_user
     //
     this.txt_user.Location = new System.Drawing.Point(408, 8);
     this.txt_user.Name     = "txt_user";
     this.txt_user.Size     = new System.Drawing.Size(188, 23);
     this.txt_user.TabIndex = 4;
     this.txt_user.Text     = "sa";
     //
     // label3
     //
     this.label3.Location = new System.Drawing.Point(316, 16);
     this.label3.Name     = "label3";
     this.label3.TabIndex = 5;
     this.label3.Text     = "User ID";
     //
     // txt_pass
     //
     this.txt_pass.Location = new System.Drawing.Point(408, 36);
     this.txt_pass.Name     = "txt_pass";
     this.txt_pass.Size     = new System.Drawing.Size(188, 23);
     this.txt_pass.TabIndex = 6;
     this.txt_pass.Text     = "";
     //
     // label4
     //
     this.label4.Location = new System.Drawing.Point(316, 44);
     this.label4.Name     = "label4";
     this.label4.TabIndex = 7;
     this.label4.Text     = "Password";
     //
     // button1
     //
     this.button1.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.button1.Location  = new System.Drawing.Point(244, 148);
     this.button1.Name      = "button1";
     this.button1.Size      = new System.Drawing.Size(96, 32);
     this.button1.TabIndex  = 8;
     this.button1.Text      = "Transfer";
     this.button1.Click    += new System.EventHandler(this.button1_Click);
     //
     // pro
     //
     this.pro.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                                                             | System.Windows.Forms.AnchorStyles.Right)));
     this.pro.Location = new System.Drawing.Point(0, 76);
     this.pro.Name     = "pro";
     this.pro.Size     = new System.Drawing.Size(736, 16);
     this.pro.TabIndex = 9;
     //
     // lb
     //
     this.lb.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                                                            | System.Windows.Forms.AnchorStyles.Right)));
     this.lb.BackColor = System.Drawing.SystemColors.ActiveCaptionText;
     this.lb.ForeColor = System.Drawing.Color.White;
     this.lb.Location  = new System.Drawing.Point(0, 92);
     this.lb.Name      = "lb";
     this.lb.Size      = new System.Drawing.Size(732, 23);
     this.lb.TabIndex  = 10;
     this.lb.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
     //
     // lb1
     //
     this.lb1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                                                             | System.Windows.Forms.AnchorStyles.Right)));
     this.lb1.BackColor = System.Drawing.SystemColors.ActiveCaptionText;
     this.lb1.ForeColor = System.Drawing.Color.White;
     this.lb1.Location  = new System.Drawing.Point(0, 116);
     this.lb1.Name      = "lb1";
     this.lb1.Size      = new System.Drawing.Size(732, 23);
     this.lb1.TabIndex  = 11;
     this.lb1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
     //
     // vs
     //
     this.vs.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.vs.BorderStyle  = C1.Win.C1FlexGrid.Util.BaseControls.BorderStyleEnum.XpThemes;
     this.vs.ColumnInfo   = "10,1,0,0,0,100,Columns:0{Width:38;}\t";
     this.vs.Font         = new System.Drawing.Font("Tahoma", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
     this.vs.KeyActionTab = C1.Win.C1FlexGrid.KeyActionEnum.MoveAcross;
     this.vs.Location     = new System.Drawing.Point(-4, 228);
     this.vs.Name         = "vs";
     this.vs.Size         = new System.Drawing.Size(736, 226);
     this.vs.Styles       = ((C1.Win.C1FlexGrid.CellStyleCollection)(new C1.Win.C1FlexGrid.CellStyleCollection("")));
     this.vs.TabIndex     = 12;
     //
     // nav
     //
     this.nav.BackColor     = System.Drawing.SystemColors.Control;
     this.nav.Connection    = null;
     this.nav.ConnectionDel = null;
     this.nav.Font          = new System.Drawing.Font("Tahoma", 9.75F);
     this.nav.form          = null;
     this.nav.FormName      = null;
     this.nav.Grid          = null;
     this.nav.History       = false;
     this.nav.IsNull        = true;
     this.nav.Language      = "EN";
     this.nav.Location      = new System.Drawing.Point(-4, 192);
     this.nav.MSG_Exit      = false;
     this.nav.MulltiDel     = false;
     this.nav.Name          = "nav";
     this.nav.Security      = 0;
     this.nav.ShowPopupMenu = true;
     this.nav.Size          = new System.Drawing.Size(408, 32);
     this.nav.TabIndex      = 13;
     this.nav.Tag           = "";
     this.nav.ToolBar_Auto  = true;
     this.nav.UserID        = null;
     this.nav.VisibleGrid   = true;
     this.nav.Where         = null;
     //
     // frmTuSynGPS
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(6, 16);
     this.ClientSize        = new System.Drawing.Size(732, 420);
     this.Controls.Add(this.vs);
     this.Controls.Add(this.nav);
     this.Controls.Add(this.lb1);
     this.Controls.Add(this.lb);
     this.Controls.Add(this.pro);
     this.Controls.Add(this.button1);
     this.Controls.Add(this.txt_pass);
     this.Controls.Add(this.txt_user);
     this.Controls.Add(this.txt_data);
     this.Controls.Add(this.txt_server);
     this.Controls.Add(this.label4);
     this.Controls.Add(this.label3);
     this.Controls.Add(this.label2);
     this.Controls.Add(this.label1);
     this.Font  = new System.Drawing.Font("Tahoma", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
     this.Name  = "frmTuSynGPS";
     this.Text  = "frmTaTransfer";
     this.Load += new System.EventHandler(this.frmTuSynGPS_Load);
     ((System.ComponentModel.ISupportInitialize)(this.vs)).EndInit();
     this.ResumeLayout(false);
 }
 private void InitializeComponent()
 {
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(PaletteEditorSplash));
     this.kryptonPanel1       = new ComponentFactory.Krypton.Toolkit.KryptonPanel();
     this.klblCloseDisabled   = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
     this.klblCloseEnabled    = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
     this.klblBetaInformation = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
     this.pictureBox1         = new System.Windows.Forms.PictureBox();
     this.pbProgress          = new System.Windows.Forms.ProgressBar();
     ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel1)).BeginInit();
     this.kryptonPanel1.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
     this.SuspendLayout();
     //
     // kryptonPanel1
     //
     this.kryptonPanel1.Controls.Add(this.klblCloseDisabled);
     this.kryptonPanel1.Controls.Add(this.klblCloseEnabled);
     this.kryptonPanel1.Controls.Add(this.klblBetaInformation);
     this.kryptonPanel1.Controls.Add(this.pictureBox1);
     this.kryptonPanel1.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.kryptonPanel1.Location = new System.Drawing.Point(0, 0);
     this.kryptonPanel1.Name     = "kryptonPanel1";
     this.kryptonPanel1.Size     = new System.Drawing.Size(1012, 577);
     this.kryptonPanel1.TabIndex = 0;
     //
     // klblCloseDisabled
     //
     this.klblCloseDisabled.Location = new System.Drawing.Point(977, 12);
     this.klblCloseDisabled.Name     = "klblCloseDisabled";
     this.klblCloseDisabled.Size     = new System.Drawing.Size(23, 26);
     this.klblCloseDisabled.StateCommon.ShortText.Color1 = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))));
     this.klblCloseDisabled.StateCommon.ShortText.Color2 = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))));
     this.klblCloseDisabled.StateCommon.ShortText.Font   = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.klblCloseDisabled.StateCommon.ShortText.TextH  = ComponentFactory.Krypton.Toolkit.PaletteRelativeAlign.Center;
     this.klblCloseDisabled.StateCommon.ShortText.TextV  = ComponentFactory.Krypton.Toolkit.PaletteRelativeAlign.Center;
     this.klblCloseDisabled.TabIndex    = 2;
     this.klblCloseDisabled.Values.Text = "X";
     this.klblCloseDisabled.MouseEnter += new System.EventHandler(this.klblCloseDisabled_MouseEnter);
     //
     // klblCloseEnabled
     //
     this.klblCloseEnabled.Location = new System.Drawing.Point(977, 12);
     this.klblCloseEnabled.Name     = "klblCloseEnabled";
     this.klblCloseEnabled.Size     = new System.Drawing.Size(23, 26);
     this.klblCloseEnabled.StateCommon.ShortText.Color1 = System.Drawing.Color.Red;
     this.klblCloseEnabled.StateCommon.ShortText.Color2 = System.Drawing.Color.Red;
     this.klblCloseEnabled.StateCommon.ShortText.Font   = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.klblCloseEnabled.StateCommon.ShortText.TextH  = ComponentFactory.Krypton.Toolkit.PaletteRelativeAlign.Center;
     this.klblCloseEnabled.StateCommon.ShortText.TextV  = ComponentFactory.Krypton.Toolkit.PaletteRelativeAlign.Center;
     this.klblCloseEnabled.TabIndex    = 3;
     this.klblCloseEnabled.Values.Text = "X";
     this.klblCloseEnabled.Click      += new System.EventHandler(this.klblCloseEnabled_Click);
     this.klblCloseEnabled.MouseLeave += new System.EventHandler(this.klblCloseEnabled_MouseLeave);
     //
     // klblBetaInformation
     //
     this.klblBetaInformation.AutoSize = false;
     this.klblBetaInformation.Location = new System.Drawing.Point(251, 522);
     this.klblBetaInformation.Name     = "klblBetaInformation";
     this.klblBetaInformation.Size     = new System.Drawing.Size(512, 25);
     this.klblBetaInformation.StateCommon.ShortText.Font  = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.klblBetaInformation.StateCommon.ShortText.TextH = ComponentFactory.Krypton.Toolkit.PaletteRelativeAlign.Center;
     this.klblBetaInformation.StateCommon.ShortText.TextV = ComponentFactory.Krypton.Toolkit.PaletteRelativeAlign.Center;
     this.klblBetaInformation.TabIndex    = 1;
     this.klblBetaInformation.Values.Text = "Palette Explorer - Beta (Build: {0})";
     //
     // pictureBox1
     //
     this.pictureBox1.BackColor = System.Drawing.Color.Transparent;
     this.pictureBox1.Image     = global::PaletteEditor.Properties.Resources.PE_Icon_512_x_512;
     this.pictureBox1.Location  = new System.Drawing.Point(251, 3);
     this.pictureBox1.Name      = "pictureBox1";
     this.pictureBox1.Size      = new System.Drawing.Size(512, 512);
     this.pictureBox1.SizeMode  = System.Windows.Forms.PictureBoxSizeMode.AutoSize;
     this.pictureBox1.TabIndex  = 0;
     this.pictureBox1.TabStop   = false;
     //
     // pbProgress
     //
     this.pbProgress.Dock     = System.Windows.Forms.DockStyle.Bottom;
     this.pbProgress.Location = new System.Drawing.Point(0, 554);
     this.pbProgress.Name     = "pbProgress";
     this.pbProgress.Size     = new System.Drawing.Size(1012, 23);
     this.pbProgress.TabIndex = 1;
     //
     // PaletteEditorSplash
     //
     this.ClientSize = new System.Drawing.Size(1012, 577);
     this.ControlBox = false;
     this.Controls.Add(this.pbProgress);
     this.Controls.Add(this.kryptonPanel1);
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.Fixed3D;
     this.Icon            = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
     this.Name            = "PaletteEditorSplash";
     this.ShowInTaskbar   = false;
     this.StartPosition   = System.Windows.Forms.FormStartPosition.CenterScreen;
     this.FormClosing    += new System.Windows.Forms.FormClosingEventHandler(this.PaletteEditorSplash_FormClosing);
     this.Load           += new System.EventHandler(this.PaletteEditorSplash_Load);
     ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel1)).EndInit();
     this.kryptonPanel1.ResumeLayout(false);
     this.kryptonPanel1.PerformLayout();
     ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
     this.ResumeLayout(false);
 }
Exemplo n.º 44
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();
     this.mainMenu         = new System.Windows.Forms.MainMenu(this.components);
     this.menuItem1        = new System.Windows.Forms.MenuItem();
     this.menuItem2        = new System.Windows.Forms.MenuItem();
     this.ExitItem         = new System.Windows.Forms.MenuItem();
     this.menuItem3        = new System.Windows.Forms.MenuItem();
     this.AboutItem        = new System.Windows.Forms.MenuItem();
     this.groupBox1        = new System.Windows.Forms.GroupBox();
     this.ThroughputLabel  = new System.Windows.Forms.Label();
     this.ProgressBar      = new System.Windows.Forms.ProgressBar();
     this.StartBtn         = new System.Windows.Forms.Button();
     this.lblDevices       = new System.Windows.Forms.Label();
     this.PerfTimer        = new System.Windows.Forms.Timer(this.components);
     this.txtDeviceName    = new System.Windows.Forms.TextBox();
     this.lblVer           = new System.Windows.Forms.Label();
     this.txtVersion       = new System.Windows.Forms.TextBox();
     this.txtData          = new System.Windows.Forms.TextBox();
     this.lblFreq          = new System.Windows.Forms.Label();
     this.txtPortValue     = new System.Windows.Forms.TextBox();
     this.btnSetOutputPort = new System.Windows.Forms.Button();
     this.canvas           = new System.Windows.Forms.PictureBox();
     this.btnGetStatus     = new System.Windows.Forms.Button();
     this.groupBox1.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.canvas)).BeginInit();
     this.SuspendLayout();
     //
     // mainMenu
     //
     this.mainMenu.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
         this.menuItem1,
         this.menuItem3
     });
     //
     // menuItem1
     //
     this.menuItem1.Index = 0;
     this.menuItem1.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
         this.menuItem2,
         this.ExitItem
     });
     this.menuItem1.Text = "File";
     //
     // menuItem2
     //
     this.menuItem2.Index = 0;
     this.menuItem2.Text  = "-";
     //
     // ExitItem
     //
     this.ExitItem.Index  = 1;
     this.ExitItem.Text   = "Exit";
     this.ExitItem.Click += new System.EventHandler(this.ExitItem_Click);
     //
     // menuItem3
     //
     this.menuItem3.Index = 1;
     this.menuItem3.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
         this.AboutItem
     });
     this.menuItem3.Text = "Help";
     //
     // AboutItem
     //
     this.AboutItem.Index  = 0;
     this.AboutItem.Text   = "About";
     this.AboutItem.Click += new System.EventHandler(this.AboutItem_Click);
     //
     // groupBox1
     //
     this.groupBox1.Controls.Add(this.ThroughputLabel);
     this.groupBox1.Controls.Add(this.ProgressBar);
     this.groupBox1.Location = new System.Drawing.Point(21, 122);
     this.groupBox1.Name     = "groupBox1";
     this.groupBox1.Size     = new System.Drawing.Size(330, 60);
     this.groupBox1.TabIndex = 8;
     this.groupBox1.TabStop  = false;
     this.groupBox1.Text     = " Throughput (KB/s) ";
     //
     // ThroughputLabel
     //
     this.ThroughputLabel.Font      = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.ThroughputLabel.Location  = new System.Drawing.Point(16, 38);
     this.ThroughputLabel.Name      = "ThroughputLabel";
     this.ThroughputLabel.Size      = new System.Drawing.Size(294, 16);
     this.ThroughputLabel.TabIndex  = 1;
     this.ThroughputLabel.Text      = "0";
     this.ThroughputLabel.TextAlign = System.Drawing.ContentAlignment.BottomCenter;
     //
     // ProgressBar
     //
     this.ProgressBar.ForeColor = System.Drawing.SystemColors.HotTrack;
     this.ProgressBar.Location  = new System.Drawing.Point(16, 25);
     this.ProgressBar.Maximum   = 40000;
     this.ProgressBar.Name      = "ProgressBar";
     this.ProgressBar.Size      = new System.Drawing.Size(294, 10);
     this.ProgressBar.TabIndex  = 0;
     //
     // StartBtn
     //
     this.StartBtn.BackColor = System.Drawing.Color.Aquamarine;
     this.StartBtn.Location  = new System.Drawing.Point(223, 79);
     this.StartBtn.Name      = "StartBtn";
     this.StartBtn.Size      = new System.Drawing.Size(128, 28);
     this.StartBtn.TabIndex  = 3;
     this.StartBtn.Text      = "Start";
     this.StartBtn.UseVisualStyleBackColor = false;
     this.StartBtn.Click += new System.EventHandler(this.StartBtn_Click);
     //
     // lblDevices
     //
     this.lblDevices.AutoSize = true;
     this.lblDevices.Location = new System.Drawing.Point(16, 18);
     this.lblDevices.Name     = "lblDevices";
     this.lblDevices.Size     = new System.Drawing.Size(44, 13);
     this.lblDevices.TabIndex = 11;
     this.lblDevices.Text     = "Device:";
     //
     // txtDeviceName
     //
     this.txtDeviceName.Location = new System.Drawing.Point(111, 15);
     this.txtDeviceName.Name     = "txtDeviceName";
     this.txtDeviceName.ReadOnly = true;
     this.txtDeviceName.Size     = new System.Drawing.Size(240, 20);
     this.txtDeviceName.TabIndex = 17;
     //
     // lblVer
     //
     this.lblVer.AutoSize = true;
     this.lblVer.Location = new System.Drawing.Point(16, 46);
     this.lblVer.Name     = "lblVer";
     this.lblVer.Size     = new System.Drawing.Size(45, 13);
     this.lblVer.TabIndex = 18;
     this.lblVer.Text     = "Version:";
     //
     // txtVersion
     //
     this.txtVersion.Location = new System.Drawing.Point(111, 43);
     this.txtVersion.Name     = "txtVersion";
     this.txtVersion.ReadOnly = true;
     this.txtVersion.Size     = new System.Drawing.Size(240, 20);
     this.txtVersion.TabIndex = 19;
     //
     // txtData
     //
     this.txtData.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                                                                 | System.Windows.Forms.AnchorStyles.Right)));
     this.txtData.Location   = new System.Drawing.Point(21, 197);
     this.txtData.Multiline  = true;
     this.txtData.Name       = "txtData";
     this.txtData.ScrollBars = System.Windows.Forms.ScrollBars.Vertical;
     this.txtData.Size       = new System.Drawing.Size(330, 152);
     this.txtData.TabIndex   = 20;
     //
     // lblFreq
     //
     this.lblFreq.AutoSize = true;
     this.lblFreq.Location = new System.Drawing.Point(18, 87);
     this.lblFreq.Name     = "lblFreq";
     this.lblFreq.Size     = new System.Drawing.Size(39, 13);
     this.lblFreq.TabIndex = 21;
     this.lblFreq.Text     = "FREQ:";
     //
     // txtPortValue
     //
     this.txtPortValue.Location  = new System.Drawing.Point(70, 83);
     this.txtPortValue.MaxLength = 4;
     this.txtPortValue.Name      = "txtPortValue";
     this.txtPortValue.Size      = new System.Drawing.Size(35, 20);
     this.txtPortValue.TabIndex  = 22;
     this.txtPortValue.Text      = "0x00";
     //
     // btnSetOutputPort
     //
     this.btnSetOutputPort.Location = new System.Drawing.Point(111, 83);
     this.btnSetOutputPort.Name     = "btnSetOutputPort";
     this.btnSetOutputPort.Size     = new System.Drawing.Size(42, 20);
     this.btnSetOutputPort.TabIndex = 23;
     this.btnSetOutputPort.Text     = "Set";
     this.btnSetOutputPort.UseVisualStyleBackColor = false;
     this.btnSetOutputPort.Click += new System.EventHandler(this.btnSetPortA_Click);
     //
     // canvas
     //
     this.canvas.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.canvas.BackColor   = System.Drawing.SystemColors.Window;
     this.canvas.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
     this.canvas.Location    = new System.Drawing.Point(21, 366);
     this.canvas.Name        = "canvas";
     this.canvas.Size        = new System.Drawing.Size(330, 183);
     this.canvas.SizeMode    = System.Windows.Forms.PictureBoxSizeMode.CenterImage;
     this.canvas.TabIndex    = 24;
     this.canvas.TabStop     = false;
     //
     // btnGetStatus
     //
     this.btnGetStatus.Location = new System.Drawing.Point(159, 83);
     this.btnGetStatus.Name     = "btnGetStatus";
     this.btnGetStatus.Size     = new System.Drawing.Size(46, 20);
     this.btnGetStatus.TabIndex = 25;
     this.btnGetStatus.Text     = "Status";
     this.btnGetStatus.UseVisualStyleBackColor = false;
     this.btnGetStatus.Click += new System.EventHandler(this.btnGetStatus_Click);
     //
     // MainFrm
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.ClientSize        = new System.Drawing.Size(374, 561);
     this.Controls.Add(this.btnGetStatus);
     this.Controls.Add(this.canvas);
     this.Controls.Add(this.btnSetOutputPort);
     this.Controls.Add(this.txtPortValue);
     this.Controls.Add(this.lblFreq);
     this.Controls.Add(this.txtData);
     this.Controls.Add(this.txtVersion);
     this.Controls.Add(this.lblVer);
     this.Controls.Add(this.txtDeviceName);
     this.Controls.Add(this.lblDevices);
     this.Controls.Add(this.StartBtn);
     this.Controls.Add(this.groupBox1);
     this.Menu          = this.mainMenu;
     this.Name          = "MainFrm";
     this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
     this.Text          = "CyCapture";
     this.FormClosing  += new System.Windows.Forms.FormClosingEventHandler(this.MainFrm_FormClosing);
     this.Load         += new System.EventHandler(this.MainFrm_Load);
     this.groupBox1.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.canvas)).EndInit();
     this.ResumeLayout(false);
     this.PerformLayout();
 }
Exemplo n.º 45
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();
     this.contextMenuLegendUrl = new System.Windows.Forms.ContextMenu();
     this.treeOgcCaps          = new CarbonTools.Controls.TreeViewOGCCapabilities();
     this.wmsGetCapstextbox    = new System.Windows.Forms.ComboBox();
     this.label4                = new System.Windows.Forms.Label();
     this.wmsbutton             = new System.Windows.Forms.Button();
     this.comboBox2             = new System.Windows.Forms.ComboBox();
     this.label5                = new System.Windows.Forms.Label();
     this.xmlsaveGroupBox       = new System.Windows.Forms.GroupBox();
     this.label6                = new System.Windows.Forms.Label();
     this.textBox3              = new System.Windows.Forms.TextBox();
     this.checkBox1             = new System.Windows.Forms.CheckBox();
     this.label7                = new System.Windows.Forms.Label();
     this.label3                = new System.Windows.Forms.Label();
     this.textBox1              = new System.Windows.Forms.TextBox();
     this.savewmsbutton         = new System.Windows.Forms.Button();
     this.label2                = new System.Windows.Forms.Label();
     this.groupBox1             = new System.Windows.Forms.GroupBox();
     this.pictureBoxProgressBar = new System.Windows.Forms.ProgressBar();
     this.panelLower            = new System.Windows.Forms.Panel();
     this.panelContents         = new System.Windows.Forms.Panel();
     this.PasswordLabel         = new System.Windows.Forms.Label();
     this.PasswordTextBox       = new System.Windows.Forms.TextBox();
     this.UserNameLabel         = new System.Windows.Forms.Label();
     this.UsernameTextBox       = new System.Windows.Forms.TextBox();
     this.treeViewProgressBar   = new System.Windows.Forms.ProgressBar();
     this.label9                = new System.Windows.Forms.Label();
     this.label8                = new System.Windows.Forms.Label();
     this.ConfLabel             = new System.Windows.Forms.Label();
     this.toolTip1              = new System.Windows.Forms.ToolTip(this.components);
     this.xmlsaveGroupBox.SuspendLayout();
     this.groupBox1.SuspendLayout();
     this.panelLower.SuspendLayout();
     this.panelContents.SuspendLayout();
     this.SuspendLayout();
     //
     // treeOgcCaps
     //
     this.treeOgcCaps.BackColor   = System.Drawing.Color.FromArgb(((int)(((byte)(151)))), ((int)(((byte)(151)))), ((int)(((byte)(151)))));
     this.treeOgcCaps.Credentials = null;
     this.treeOgcCaps.Location    = new System.Drawing.Point(2, 179);
     this.treeOgcCaps.Name        = "treeOgcCaps";
     this.treeOgcCaps.Proxy       = null;
     this.treeOgcCaps.Size        = new System.Drawing.Size(509, 181);
     this.treeOgcCaps.TabIndex    = 5;
     this.toolTip1.SetToolTip(this.treeOgcCaps, "All data available from the requested WMS server.  Highlight an item to show a pr" +
                              "eview image.");
     this.treeOgcCaps.URL            = "";
     this.treeOgcCaps.AfterSelect   += new System.Windows.Forms.TreeViewEventHandler(this.treeOgcCaps_AfterSelect);
     this.treeOgcCaps.OperationDone += new System.EventHandler(this.treeOgcCaps_OperationDone);
     //
     // wmsGetCapstextbox
     //
     this.wmsGetCapstextbox.DropDownWidth = 480;
     this.wmsGetCapstextbox.Items.AddRange(new object[] {
         "http://www.ga.gov.au/bin/getmap.pl?request=capabilities",
         "http://www.geosignal.org/cgi-bin/wmsmap?",
         "http://wms.globexplorer.com/gexservlets/wms?"
     });
     this.wmsGetCapstextbox.Location = new System.Drawing.Point(10, 137);
     this.wmsGetCapstextbox.Name     = "wmsGetCapstextbox";
     this.wmsGetCapstextbox.Size     = new System.Drawing.Size(399, 21);
     this.wmsGetCapstextbox.TabIndex = 20;
     this.toolTip1.SetToolTip(this.wmsGetCapstextbox, "Enter a WMS server address or select one from the list.  Note World Wnd only supp" +
                              "orts WGS:84 data.");
     this.wmsGetCapstextbox.SelectedIndexChanged += new System.EventHandler(this.wmsGetCapstextbox_SelectedIndexChanged);
     this.wmsGetCapstextbox.TextChanged          += new System.EventHandler(this.textBox3_TextChanged);
     //
     // label4
     //
     this.label4.AutoSize = true;
     this.label4.Location = new System.Drawing.Point(10, 120);
     this.label4.Name     = "label4";
     this.label4.Size     = new System.Drawing.Size(51, 13);
     this.label4.TabIndex = 4;
     this.label4.Text     = "WMS url:";
     //
     // wmsbutton
     //
     this.wmsbutton.Location = new System.Drawing.Point(415, 137);
     this.wmsbutton.Name     = "wmsbutton";
     this.wmsbutton.Size     = new System.Drawing.Size(91, 21);
     this.wmsbutton.TabIndex = 1;
     this.wmsbutton.Text     = "Get WMS Tree";
     this.toolTip1.SetToolTip(this.wmsbutton, "Downloads the list of available imagery from the WMS server");
     this.wmsbutton.UseVisualStyleBackColor = true;
     this.wmsbutton.Click += new System.EventHandler(this.button1_Click);
     //
     // comboBox2
     //
     this.comboBox2.FormattingEnabled = true;
     this.comboBox2.Items.AddRange(new object[] {
         "png",
         "jpeg"
     });
     this.comboBox2.Location = new System.Drawing.Point(196, 10);
     this.comboBox2.Name     = "comboBox2";
     this.comboBox2.Size     = new System.Drawing.Size(71, 21);
     this.comboBox2.TabIndex = 6;
     this.comboBox2.Text     = "jpeg";
     this.toolTip1.SetToolTip(this.comboBox2, "Select image format to request, jpeg is best for imagery and png for vectors.");
     this.comboBox2.SelectedIndexChanged += new System.EventHandler(this.comboBox2_SelectedIndexChanged);
     //
     // label5
     //
     this.label5.AutoSize = true;
     this.label5.Location = new System.Drawing.Point(119, 13);
     this.label5.Name     = "label5";
     this.label5.Size     = new System.Drawing.Size(71, 13);
     this.label5.TabIndex = 7;
     this.label5.Text     = "Image Format";
     //
     // xmlsaveGroupBox
     //
     this.xmlsaveGroupBox.Controls.Add(this.label6);
     this.xmlsaveGroupBox.Controls.Add(this.textBox3);
     this.xmlsaveGroupBox.Controls.Add(this.checkBox1);
     this.xmlsaveGroupBox.Controls.Add(this.label7);
     this.xmlsaveGroupBox.Controls.Add(this.label3);
     this.xmlsaveGroupBox.Controls.Add(this.textBox1);
     this.xmlsaveGroupBox.Controls.Add(this.savewmsbutton);
     this.xmlsaveGroupBox.Controls.Add(this.label2);
     this.xmlsaveGroupBox.Enabled  = false;
     this.xmlsaveGroupBox.Location = new System.Drawing.Point(21, 37);
     this.xmlsaveGroupBox.Name     = "xmlsaveGroupBox";
     this.xmlsaveGroupBox.Size     = new System.Drawing.Size(268, 156);
     this.xmlsaveGroupBox.TabIndex = 14;
     this.xmlsaveGroupBox.TabStop  = false;
     this.xmlsaveGroupBox.Text     = "Create layer";
     //
     // label6
     //
     this.label6.AutoSize = true;
     this.label6.Enabled  = false;
     this.label6.Location = new System.Drawing.Point(17, 46);
     this.label6.Name     = "label6";
     this.label6.Size     = new System.Drawing.Size(89, 13);
     this.label6.TabIndex = 13;
     this.label6.Text     = "Specify layer title:";
     //
     // textBox3
     //
     this.textBox3.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(151)))), ((int)(((byte)(151)))), ((int)(((byte)(151)))));
     this.textBox3.Enabled   = false;
     this.textBox3.ForeColor = System.Drawing.Color.White;
     this.textBox3.Location  = new System.Drawing.Point(112, 43);
     this.textBox3.Name      = "textBox3";
     this.textBox3.Size      = new System.Drawing.Size(133, 20);
     this.textBox3.TabIndex  = 12;
     this.textBox3.Text      = "WMS Layer";
     this.toolTip1.SetToolTip(this.textBox3, "The name which will be shown in your layer manager for this data.");
     this.textBox3.TextChanged += new System.EventHandler(this.textBox3_TextChanged_1);
     //
     // checkBox1
     //
     this.checkBox1.AutoSize   = true;
     this.checkBox1.Checked    = true;
     this.checkBox1.CheckState = System.Windows.Forms.CheckState.Checked;
     this.checkBox1.Location   = new System.Drawing.Point(61, 20);
     this.checkBox1.Name       = "checkBox1";
     this.checkBox1.Size       = new System.Drawing.Size(179, 17);
     this.checkBox1.TabIndex   = 17;
     this.checkBox1.Text       = "Use default layer title from server";
     this.checkBox1.UseVisualStyleBackColor = true;
     this.checkBox1.CheckedChanged         += new System.EventHandler(this.checkBox1_CheckedChanged);
     //
     // label7
     //
     this.label7.AutoSize = true;
     this.label7.Location = new System.Drawing.Point(58, 137);
     this.label7.Name     = "label7";
     this.label7.Size     = new System.Drawing.Size(160, 13);
     this.label7.TabIndex = 14;
     this.label7.Text     = "Warning: overwrites existing files";
     this.label7.Click   += new System.EventHandler(this.label7_Click);
     //
     // label3
     //
     this.label3.AutoSize = true;
     this.label3.Location = new System.Drawing.Point(18, 85);
     this.label3.Name     = "label3";
     this.label3.Size     = new System.Drawing.Size(74, 13);
     this.label3.TabIndex = 11;
     this.label3.Text     = "XML filename:";
     //
     // textBox1
     //
     this.textBox1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(151)))), ((int)(((byte)(151)))), ((int)(((byte)(151)))));
     this.textBox1.ForeColor = System.Drawing.Color.White;
     this.textBox1.Location  = new System.Drawing.Point(98, 81);
     this.textBox1.Name      = "textBox1";
     this.textBox1.Size      = new System.Drawing.Size(133, 20);
     this.textBox1.TabIndex  = 9;
     this.textBox1.Text      = "wms";
     this.toolTip1.SetToolTip(this.textBox1, "The filename for the data, this will be stored in your Config\\PlanetName director" +
                              "y.");
     this.textBox1.TextChanged += new System.EventHandler(this.textBox1_TextChanged);
     //
     // savewmsbutton
     //
     this.savewmsbutton.Location = new System.Drawing.Point(82, 107);
     this.savewmsbutton.Name     = "savewmsbutton";
     this.savewmsbutton.Size     = new System.Drawing.Size(109, 27);
     this.savewmsbutton.TabIndex = 5;
     this.savewmsbutton.Text     = "Save as XML";
     this.toolTip1.SetToolTip(this.savewmsbutton, "Saves the file as XML and adds it to the layer manager");
     this.savewmsbutton.UseVisualStyleBackColor = true;
     this.savewmsbutton.Click += new System.EventHandler(this.savewmsbutton_Click);
     //
     // label2
     //
     this.label2.AutoSize = true;
     this.label2.Location = new System.Drawing.Point(229, 85);
     this.label2.Name     = "label2";
     this.label2.Size     = new System.Drawing.Size(25, 13);
     this.label2.TabIndex = 10;
     this.label2.Text     = ".xml";
     this.label2.Click   += new System.EventHandler(this.label2_Click);
     //
     // groupBox1
     //
     this.groupBox1.Controls.Add(this.pictureBoxProgressBar);
     this.groupBox1.Location = new System.Drawing.Point(295, 6);
     this.groupBox1.Name     = "groupBox1";
     this.groupBox1.Size     = new System.Drawing.Size(214, 183);
     this.groupBox1.TabIndex = 16;
     this.groupBox1.TabStop  = false;
     this.groupBox1.Text     = "Preview";
     //
     // pictureBoxProgressBar
     //
     this.pictureBoxProgressBar.Location = new System.Drawing.Point(3, 170);
     this.pictureBoxProgressBar.Name     = "pictureBoxProgressBar";
     this.pictureBoxProgressBar.Size     = new System.Drawing.Size(208, 17);
     this.pictureBoxProgressBar.TabIndex = 16;
     //
     // panelLower
     //
     this.panelLower.Controls.Add(this.groupBox1);
     this.panelLower.Controls.Add(this.xmlsaveGroupBox);
     this.panelLower.Controls.Add(this.label5);
     this.panelLower.Controls.Add(this.comboBox2);
     this.panelLower.Dock     = System.Windows.Forms.DockStyle.Bottom;
     this.panelLower.Location = new System.Drawing.Point(0, 459);
     this.panelLower.Name     = "panelLower";
     this.panelLower.Size     = new System.Drawing.Size(702, 209);
     this.panelLower.TabIndex = 0;
     this.panelLower.Paint   += new System.Windows.Forms.PaintEventHandler(this.panelLower_Paint);
     //
     // panelContents
     //
     this.panelContents.Controls.Add(this.PasswordLabel);
     this.panelContents.Controls.Add(this.PasswordTextBox);
     this.panelContents.Controls.Add(this.UserNameLabel);
     this.panelContents.Controls.Add(this.UsernameTextBox);
     this.panelContents.Controls.Add(this.treeViewProgressBar);
     this.panelContents.Controls.Add(this.treeOgcCaps);
     this.panelContents.Controls.Add(this.label9);
     this.panelContents.Controls.Add(this.label8);
     this.panelContents.Controls.Add(this.wmsbutton);
     this.panelContents.Controls.Add(this.ConfLabel);
     this.panelContents.Controls.Add(this.label4);
     this.panelContents.Controls.Add(this.wmsGetCapstextbox);
     this.panelContents.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.panelContents.Location = new System.Drawing.Point(0, 0);
     this.panelContents.Name     = "panelContents";
     this.panelContents.Size     = new System.Drawing.Size(702, 459);
     this.panelContents.TabIndex = 4;
     //
     // PasswordLabel
     //
     this.PasswordLabel.AutoSize = true;
     this.PasswordLabel.Location = new System.Drawing.Point(100, 76);
     this.PasswordLabel.Name     = "PasswordLabel";
     this.PasswordLabel.Size     = new System.Drawing.Size(53, 13);
     this.PasswordLabel.TabIndex = 24;
     this.PasswordLabel.Text     = "Password";
     //
     // PasswordTextBox
     //
     this.PasswordTextBox.Location     = new System.Drawing.Point(102, 94);
     this.PasswordTextBox.Name         = "PasswordTextBox";
     this.PasswordTextBox.PasswordChar = '*';
     this.PasswordTextBox.Size         = new System.Drawing.Size(84, 20);
     this.PasswordTextBox.TabIndex     = 23;
     //
     // UserNameLabel
     //
     this.UserNameLabel.AutoSize = true;
     this.UserNameLabel.Location = new System.Drawing.Point(7, 76);
     this.UserNameLabel.Name     = "UserNameLabel";
     this.UserNameLabel.Size     = new System.Drawing.Size(55, 13);
     this.UserNameLabel.TabIndex = 22;
     this.UserNameLabel.Text     = "Username";
     //
     // UsernameTextBox
     //
     this.UsernameTextBox.Location = new System.Drawing.Point(10, 94);
     this.UsernameTextBox.Name     = "UsernameTextBox";
     this.UsernameTextBox.Size     = new System.Drawing.Size(83, 20);
     this.UsernameTextBox.TabIndex = 21;
     //
     // treeViewProgressBar
     //
     this.treeViewProgressBar.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(151)))), ((int)(((byte)(151)))), ((int)(((byte)(151)))));
     this.treeViewProgressBar.Location  = new System.Drawing.Point(298, 163);
     this.treeViewProgressBar.Name      = "treeViewProgressBar";
     this.treeViewProgressBar.Size      = new System.Drawing.Size(208, 10);
     this.treeViewProgressBar.TabIndex  = 17;
     this.toolTip1.SetToolTip(this.treeViewProgressBar, "Loading .... Please Wait.");
     this.treeViewProgressBar.Visible = false;
     //
     // label9
     //
     this.label9.AutoSize = true;
     this.label9.Location = new System.Drawing.Point(12, 27);
     this.label9.Name     = "label9";
     this.label9.Size     = new System.Drawing.Size(394, 13);
     this.label9.TabIndex = 19;
     this.label9.Text     = "• Fill in options and click \"Save as XML\" to add the all of the layers to World W" +
                            "ind";
     //
     // label8
     //
     this.label8.AutoSize = true;
     this.label8.Location = new System.Drawing.Point(12, 9);
     this.label8.Name     = "label8";
     this.label8.Size     = new System.Drawing.Size(473, 13);
     this.label8.TabIndex = 18;
     this.label8.Text     = "• Enter a WMS url in the url bar below and click \"Get WMS Tree\" to see the conten" +
                            "ts of the server";
     //
     // ConfLabel
     //
     this.ConfLabel.AutoSize = true;
     this.ConfLabel.Location = new System.Drawing.Point(2, 163);
     this.ConfLabel.Name     = "ConfLabel";
     this.ConfLabel.Size     = new System.Drawing.Size(84, 13);
     this.ConfLabel.TabIndex = 4;
     this.ConfLabel.Text     = "Available Layers";
     //
     // toolTip1
     //
     this.toolTip1.Popup += new System.Windows.Forms.PopupEventHandler(this.toolTip1_Popup);
     //
     // WMSBrowserNG
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.BackColor         = System.Drawing.Color.FromArgb(((int)(((byte)(111)))), ((int)(((byte)(111)))), ((int)(((byte)(111)))));
     this.ClientSize        = new System.Drawing.Size(702, 668);
     this.Controls.Add(this.panelContents);
     this.Controls.Add(this.panelLower);
     this.ForeColor   = System.Drawing.Color.White;
     this.KeyPreview  = true;
     this.MinimumSize = new System.Drawing.Size(504, 483);
     this.Name        = "WMSBrowserNG";
     this.Text        = "WMS Importer";
     this.toolTip1.SetToolTip(this, "Import WMS imagery to a World Wind layer.");
     this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.OnClosing);
     this.xmlsaveGroupBox.ResumeLayout(false);
     this.xmlsaveGroupBox.PerformLayout();
     this.groupBox1.ResumeLayout(false);
     this.panelLower.ResumeLayout(false);
     this.panelLower.PerformLayout();
     this.panelContents.ResumeLayout(false);
     this.panelContents.PerformLayout();
     this.ResumeLayout(false);
 }
Exemplo n.º 46
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();
     this.lblPleaseWait = new System.Windows.Forms.Label();
     this.grpStatus     = new System.Windows.Forms.GroupBox();
     this.txtStatus     = new System.Windows.Forms.TextBox();
     this.prgProgress   = new System.Windows.Forms.ProgressBar();
     this.tmrStart      = new System.Windows.Forms.Timer(this.components);
     this.grpStatus.SuspendLayout();
     this.SuspendLayout();
     //
     // lblStep1
     //
     this.lblStep1.ImageIndex = 2;
     this.lblStep1.Name       = "lblStep1";
     //
     // lblStep2
     //
     this.lblStep2.ImageIndex = 5;
     this.lblStep2.Name       = "lblStep2";
     //
     // lblStep3
     //
     this.lblStep3.Font       = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(161)));
     this.lblStep3.ImageIndex = 7;
     this.lblStep3.Name       = "lblStep3";
     //
     // lblStep4
     //
     this.lblStep4.Name = "lblStep4";
     //
     // lblStep5
     //
     this.lblStep5.Name = "lblStep5";
     //
     // lblStep6
     //
     this.lblStep6.Name = "lblStep6";
     //
     // cmdBack
     //
     this.cmdBack.Enabled = false;
     this.cmdBack.Name    = "cmdBack";
     this.cmdBack.Click  += new System.EventHandler(this.cmdBack_Click);
     //
     // cmdNext
     //
     this.cmdNext.Enabled = false;
     this.cmdNext.Name    = "cmdNext";
     this.cmdNext.Click  += new System.EventHandler(this.cmdNext_Click);
     //
     // cmdCancel
     //
     this.cmdCancel.Enabled = false;
     this.cmdCancel.Name    = "cmdCancel";
     this.cmdCancel.Click  += new System.EventHandler(this.cmdCancel_Click);
     //
     // lblPleaseWait
     //
     this.lblPleaseWait.Location  = new System.Drawing.Point(144, 8);
     this.lblPleaseWait.Name      = "lblPleaseWait";
     this.lblPleaseWait.Size      = new System.Drawing.Size(344, 23);
     this.lblPleaseWait.TabIndex  = 4;
     this.lblPleaseWait.Text      = "Performing requested actions, please wait...";
     this.lblPleaseWait.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
     //
     // grpStatus
     //
     this.grpStatus.Controls.Add(this.txtStatus);
     this.grpStatus.Controls.Add(this.prgProgress);
     this.grpStatus.Location = new System.Drawing.Point(144, 32);
     this.grpStatus.Name     = "grpStatus";
     this.grpStatus.Size     = new System.Drawing.Size(344, 200);
     this.grpStatus.TabIndex = 5;
     this.grpStatus.TabStop  = false;
     this.grpStatus.Text     = "Status";
     //
     // txtStatus
     //
     this.txtStatus.Location   = new System.Drawing.Point(8, 16);
     this.txtStatus.Multiline  = true;
     this.txtStatus.Name       = "txtStatus";
     this.txtStatus.ScrollBars = System.Windows.Forms.ScrollBars.Vertical;
     this.txtStatus.Size       = new System.Drawing.Size(328, 152);
     this.txtStatus.TabIndex   = 0;
     this.txtStatus.Text       = "";
     //
     // prgProgress
     //
     this.prgProgress.Location = new System.Drawing.Point(8, 176);
     this.prgProgress.Name     = "prgProgress";
     this.prgProgress.Size     = new System.Drawing.Size(328, 16);
     this.prgProgress.TabIndex = 1;
     //
     // tmrStart
     //
     this.tmrStart.Enabled = true;
     this.tmrStart.Tick   += new System.EventHandler(this.tmrStart_Tick);
     //
     // frmStep3b
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.ClientSize        = new System.Drawing.Size(498, 271);
     this.Controls.Add(this.lblPleaseWait);
     this.Controls.Add(this.grpStatus);
     this.Name  = "frmStep3b";
     this.Text  = "Building Database (Step 3 of 6)";
     this.Load += new System.EventHandler(this.frmStep3b_Load);
     this.Controls.SetChildIndex(this.cmdCancel, 0);
     this.Controls.SetChildIndex(this.cmdNext, 0);
     this.Controls.SetChildIndex(this.cmdBack, 0);
     this.Controls.SetChildIndex(this.grpStatus, 0);
     this.Controls.SetChildIndex(this.lblPleaseWait, 0);
     this.grpStatus.ResumeLayout(false);
     this.ResumeLayout(false);
 }
Exemplo n.º 47
0
 /// <summary>
 /// 设计器支持所需的方法 - 不要使用代码编辑器修改
 /// 此方法的内容。
 /// </summary>
 private void InitializeComponent()
 {
     System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(FrmUpdate));
     this.sttbMain    = new System.Windows.Forms.StatusBar();
     this.sttbplFiles = new System.Windows.Forms.StatusBarPanel();
     this.sttbDesc    = new System.Windows.Forms.StatusBarPanel();
     this.picUpdate   = new System.Windows.Forms.PictureBox();
     this.lblUpdate   = new System.Windows.Forms.Label();
     this.label1      = new System.Windows.Forms.Label();
     this.pbCurrent   = new System.Windows.Forms.ProgressBar();
     this.label2      = new System.Windows.Forms.Label();
     this.label3      = new System.Windows.Forms.Label();
     this.pbTotal     = new System.Windows.Forms.ProgressBar();
     this.btnOk       = new System.Windows.Forms.Button();
     this.lstInfo     = new System.Windows.Forms.ListBox();
     ((System.ComponentModel.ISupportInitialize)(this.sttbplFiles)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.sttbDesc)).BeginInit();
     this.SuspendLayout();
     //
     // sttbMain
     //
     this.sttbMain.Location = new System.Drawing.Point(0, 202);
     this.sttbMain.Name     = "sttbMain";
     this.sttbMain.Panels.AddRange(new System.Windows.Forms.StatusBarPanel[] {
         this.sttbplFiles,
         this.sttbDesc
     });
     this.sttbMain.ShowPanels = true;
     this.sttbMain.Size       = new System.Drawing.Size(454, 24);
     this.sttbMain.TabIndex   = 0;
     //
     // sttbplFiles
     //
     this.sttbplFiles.Text  = "文件";
     this.sttbplFiles.Width = 240;
     //
     // sttbDesc
     //
     this.sttbDesc.Text  = "正在下载最新程序...............";
     this.sttbDesc.Width = 200;
     //
     // picUpdate
     //
     this.picUpdate.Image    = ((System.Drawing.Image)(resources.GetObject("picUpdate.Image")));
     this.picUpdate.Location = new System.Drawing.Point(4, 4);
     this.picUpdate.Name     = "picUpdate";
     this.picUpdate.Size     = new System.Drawing.Size(54, 40);
     this.picUpdate.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
     this.picUpdate.TabIndex = 1;
     this.picUpdate.TabStop  = false;
     //
     // lblUpdate
     //
     this.lblUpdate.AutoSize = true;
     this.lblUpdate.Location = new System.Drawing.Point(72, 26);
     this.lblUpdate.Name     = "lblUpdate";
     this.lblUpdate.Size     = new System.Drawing.Size(128, 17);
     this.lblUpdate.TabIndex = 2;
     this.lblUpdate.Text     = "从旧版本升级到新版本";
     //
     // label1
     //
     this.label1.AutoSize = true;
     this.label1.Location = new System.Drawing.Point(72, 4);
     this.label1.Name     = "label1";
     this.label1.Size     = new System.Drawing.Size(79, 17);
     this.label1.TabIndex = 3;
     this.label1.Text     = "发现新版本!";
     //
     // pbCurrent
     //
     this.pbCurrent.Location = new System.Drawing.Point(72, 52);
     this.pbCurrent.Name     = "pbCurrent";
     this.pbCurrent.Size     = new System.Drawing.Size(380, 18);
     this.pbCurrent.Step     = 1;
     this.pbCurrent.TabIndex = 4;
     //
     // label2
     //
     this.label2.AutoSize = true;
     this.label2.Location = new System.Drawing.Point(4, 52);
     this.label2.Name     = "label2";
     this.label2.Size     = new System.Drawing.Size(66, 17);
     this.label2.TabIndex = 5;
     this.label2.Text     = "当前进度:";
     //
     // label3
     //
     this.label3.AutoSize = true;
     this.label3.Location = new System.Drawing.Point(4, 76);
     this.label3.Name     = "label3";
     this.label3.Size     = new System.Drawing.Size(66, 17);
     this.label3.TabIndex = 7;
     this.label3.Text     = "总体进度:";
     //
     // pbTotal
     //
     this.pbTotal.Location = new System.Drawing.Point(72, 74);
     this.pbTotal.Name     = "pbTotal";
     this.pbTotal.Size     = new System.Drawing.Size(380, 18);
     this.pbTotal.Step     = 1;
     this.pbTotal.TabIndex = 6;
     //
     // btnOk
     //
     this.btnOk.Location = new System.Drawing.Point(370, 176);
     this.btnOk.Name     = "btnOk";
     this.btnOk.Size     = new System.Drawing.Size(82, 24);
     this.btnOk.TabIndex = 8;
     this.btnOk.Text     = "升级完成";
     this.btnOk.Click   += new System.EventHandler(this.btnOk_Click);
     //
     // lstInfo
     //
     this.lstInfo.ItemHeight = 12;
     this.lstInfo.Location   = new System.Drawing.Point(2, 96);
     this.lstInfo.Name       = "lstInfo";
     this.lstInfo.Size       = new System.Drawing.Size(448, 76);
     this.lstInfo.TabIndex   = 9;
     this.lstInfo.TabStop    = false;
     //
     // FrmUpdate
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(6, 14);
     this.ClientSize        = new System.Drawing.Size(454, 226);
     this.Controls.Add(this.lstInfo);
     this.Controls.Add(this.btnOk);
     this.Controls.Add(this.label3);
     this.Controls.Add(this.label2);
     this.Controls.Add(this.label1);
     this.Controls.Add(this.lblUpdate);
     this.Controls.Add(this.pbTotal);
     this.Controls.Add(this.pbCurrent);
     this.Controls.Add(this.picUpdate);
     this.Controls.Add(this.sttbMain);
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
     this.MaximizeBox     = false;
     this.MinimizeBox     = false;
     this.Name            = "FrmUpdate";
     this.StartPosition   = System.Windows.Forms.FormStartPosition.CenterScreen;
     this.Text            = "系统升级";
     this.Load           += new System.EventHandler(this.FrmUpdate_Load);
     ((System.ComponentModel.ISupportInitialize)(this.sttbplFiles)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.sttbDesc)).EndInit();
     this.ResumeLayout(false);
 }
Exemplo n.º 48
0
 private void InitializeComponent()
 {
     this.components = new System.ComponentModel.Container();
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(SoftwareUpdater));
     this.kryptonPanel1                = new ComponentFactory.Krypton.Toolkit.KryptonPanel();
     this.kryptonManager1              = new ComponentFactory.Krypton.Toolkit.KryptonManager(this.components);
     this.kryptonPalette1              = new ComponentFactory.Krypton.Toolkit.KryptonPalette(this.components);
     this.klblCurrentState             = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
     this.kuacbtnInstallUpdate         = new KryptonExtendedToolkit.ExtendedToolkit.Controls.KryptonUACElevatedButton();
     this.kbtnDownloadUpdate           = new ComponentFactory.Krypton.Toolkit.KryptonButton();
     this.kbtnCheckForUpdates          = new ComponentFactory.Krypton.Toolkit.KryptonButton();
     this.kbtnCancel                   = new ComponentFactory.Krypton.Toolkit.KryptonButton();
     this.kbtnOptions                  = new ComponentFactory.Krypton.Toolkit.KryptonButton();
     this.klblDownloadingFrom          = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
     this.kllblDownloadingTo           = new ComponentFactory.Krypton.Toolkit.KryptonLinkLabel();
     this.klblUpdateType               = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
     this.klblUpdateDownloadSize       = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
     this.klblCurrentDownloadSpeed     = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
     this.kbtnViewChecksums            = new ComponentFactory.Krypton.Toolkit.KryptonButton();
     this.pbDownloadProgress           = new System.Windows.Forms.ProgressBar();
     this.klblDownloadProgressPercenta = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
     ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel1)).BeginInit();
     this.kryptonPanel1.SuspendLayout();
     this.SuspendLayout();
     //
     // kryptonPanel1
     //
     this.kryptonPanel1.Controls.Add(this.klblDownloadProgressPercenta);
     this.kryptonPanel1.Controls.Add(this.pbDownloadProgress);
     this.kryptonPanel1.Controls.Add(this.kbtnViewChecksums);
     this.kryptonPanel1.Controls.Add(this.klblCurrentDownloadSpeed);
     this.kryptonPanel1.Controls.Add(this.klblUpdateDownloadSize);
     this.kryptonPanel1.Controls.Add(this.klblUpdateType);
     this.kryptonPanel1.Controls.Add(this.kllblDownloadingTo);
     this.kryptonPanel1.Controls.Add(this.klblDownloadingFrom);
     this.kryptonPanel1.Controls.Add(this.kbtnOptions);
     this.kryptonPanel1.Controls.Add(this.kbtnCancel);
     this.kryptonPanel1.Controls.Add(this.kbtnCheckForUpdates);
     this.kryptonPanel1.Controls.Add(this.kbtnDownloadUpdate);
     this.kryptonPanel1.Controls.Add(this.kuacbtnInstallUpdate);
     this.kryptonPanel1.Controls.Add(this.klblCurrentState);
     this.kryptonPanel1.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.kryptonPanel1.Location = new System.Drawing.Point(0, 0);
     this.kryptonPanel1.Name     = "kryptonPanel1";
     this.kryptonPanel1.Size     = new System.Drawing.Size(1059, 409);
     this.kryptonPanel1.TabIndex = 0;
     //
     // kryptonManager1
     //
     this.kryptonManager1.GlobalPaletteMode = ComponentFactory.Krypton.Toolkit.PaletteModeManager.Office2007Blue;
     //
     // kryptonPalette1
     //
     this.kryptonPalette1.CustomisedKryptonPaletteFilePath = "";
     //
     // klblCurrentState
     //
     this.klblCurrentState.Location = new System.Drawing.Point(12, 12);
     this.klblCurrentState.Name     = "klblCurrentState";
     this.klblCurrentState.Size     = new System.Drawing.Size(33, 26);
     this.klblCurrentState.StateCommon.ShortText.Font = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.klblCurrentState.TabIndex    = 0;
     this.klblCurrentState.Values.Text = "{0}";
     //
     // kuacbtnInstallUpdate
     //
     this.kuacbtnInstallUpdate.AutoSize = true;
     this.kuacbtnInstallUpdate.Location = new System.Drawing.Point(825, 251);
     this.kuacbtnInstallUpdate.Name     = "kuacbtnInstallUpdate";
     this.kuacbtnInstallUpdate.Size     = new System.Drawing.Size(156, 30);
     this.kuacbtnInstallUpdate.StateCommon.Content.ShortText.Font = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.kuacbtnInstallUpdate.TabIndex     = 1;
     this.kuacbtnInstallUpdate.Values.Image = ((System.Drawing.Image)(resources.GetObject("kryptonUACElevatedButton1.Values.Image")));
     this.kuacbtnInstallUpdate.Values.Text  = "Inst&all Update";
     this.kuacbtnInstallUpdate.Click       += new System.EventHandler(this.kuacbtnInstallUpdate_Click);
     //
     // kbtnDownloadUpdate
     //
     this.kbtnDownloadUpdate.AutoSize = true;
     this.kbtnDownloadUpdate.Location = new System.Drawing.Point(825, 251);
     this.kbtnDownloadUpdate.Name     = "kbtnDownloadUpdate";
     this.kbtnDownloadUpdate.Size     = new System.Drawing.Size(156, 30);
     this.kbtnDownloadUpdate.StateCommon.Content.ShortText.Font = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.kbtnDownloadUpdate.TabIndex    = 1;
     this.kbtnDownloadUpdate.Values.Text = "&Download Update...";
     this.kbtnDownloadUpdate.Click      += new System.EventHandler(this.kbtnDownloadUpdate_Click);
     //
     // kbtnCheckForUpdates
     //
     this.kbtnCheckForUpdates.AutoSize     = true;
     this.kbtnCheckForUpdates.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink;
     this.kbtnCheckForUpdates.Location     = new System.Drawing.Point(825, 251);
     this.kbtnCheckForUpdates.Name         = "kbtnCheckForUpdates";
     this.kbtnCheckForUpdates.Size         = new System.Drawing.Size(156, 30);
     this.kbtnCheckForUpdates.StateCommon.Content.ShortText.Font = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.kbtnCheckForUpdates.TabIndex    = 2;
     this.kbtnCheckForUpdates.Values.Text = "C&heck for Updates...";
     this.kbtnCheckForUpdates.Click      += new System.EventHandler(this.kbtnCheckForUpdates_Click);
     //
     // kbtnCancel
     //
     this.kbtnCancel.AutoSize     = true;
     this.kbtnCancel.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink;
     this.kbtnCancel.Location     = new System.Drawing.Point(987, 251);
     this.kbtnCancel.Name         = "kbtnCancel";
     this.kbtnCancel.Size         = new System.Drawing.Size(60, 30);
     this.kbtnCancel.StateCommon.Content.ShortText.Font = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.kbtnCancel.TabIndex    = 3;
     this.kbtnCancel.Values.Text = "C&ancel";
     //
     // kbtnOptions
     //
     this.kbtnOptions.AutoSize     = true;
     this.kbtnOptions.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink;
     this.kbtnOptions.Location     = new System.Drawing.Point(750, 251);
     this.kbtnOptions.Name         = "kbtnOptions";
     this.kbtnOptions.Size         = new System.Drawing.Size(69, 30);
     this.kbtnOptions.StateCommon.Content.ShortText.Font = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.kbtnOptions.TabIndex    = 4;
     this.kbtnOptions.Values.Text = "Op&tions";
     //
     // klblDownloadingFrom
     //
     this.klblDownloadingFrom.Location = new System.Drawing.Point(12, 61);
     this.klblDownloadingFrom.Name     = "klblDownloadingFrom";
     this.klblDownloadingFrom.Size     = new System.Drawing.Size(33, 26);
     this.klblDownloadingFrom.StateCommon.ShortText.Font = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.klblDownloadingFrom.TabIndex    = 5;
     this.klblDownloadingFrom.Values.Text = "{0}";
     //
     // kllblDownloadingTo
     //
     this.kllblDownloadingTo.Location = new System.Drawing.Point(12, 110);
     this.kllblDownloadingTo.Name     = "kllblDownloadingTo";
     this.kllblDownloadingTo.Size     = new System.Drawing.Size(33, 26);
     this.kllblDownloadingTo.StateCommon.ShortText.Font = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.kllblDownloadingTo.TabIndex     = 6;
     this.kllblDownloadingTo.Values.Text  = "{0}";
     this.kllblDownloadingTo.LinkClicked += new System.EventHandler(this.kllblDownloadingTo_LinkClicked);
     //
     // klblUpdateType
     //
     this.klblUpdateType.Location = new System.Drawing.Point(12, 159);
     this.klblUpdateType.Name     = "klblUpdateType";
     this.klblUpdateType.Size     = new System.Drawing.Size(33, 26);
     this.klblUpdateType.StateCommon.ShortText.Font = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.klblUpdateType.TabIndex    = 7;
     this.klblUpdateType.Values.Text = "{0}";
     //
     // klblUpdateDownloadSize
     //
     this.klblUpdateDownloadSize.Location = new System.Drawing.Point(406, 159);
     this.klblUpdateDownloadSize.Name     = "klblUpdateDownloadSize";
     this.klblUpdateDownloadSize.Size     = new System.Drawing.Size(33, 26);
     this.klblUpdateDownloadSize.StateCommon.ShortText.Font = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.klblUpdateDownloadSize.TabIndex    = 8;
     this.klblUpdateDownloadSize.Values.Text = "{0}";
     //
     // klblCurrentDownloadSpeed
     //
     this.klblCurrentDownloadSpeed.Location = new System.Drawing.Point(790, 159);
     this.klblCurrentDownloadSpeed.Name     = "klblCurrentDownloadSpeed";
     this.klblCurrentDownloadSpeed.Size     = new System.Drawing.Size(33, 26);
     this.klblCurrentDownloadSpeed.StateCommon.ShortText.Font = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.klblCurrentDownloadSpeed.TabIndex    = 9;
     this.klblCurrentDownloadSpeed.Values.Text = "{0}";
     //
     // kbtnViewChecksums
     //
     this.kbtnViewChecksums.AutoSize     = true;
     this.kbtnViewChecksums.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink;
     this.kbtnViewChecksums.Location     = new System.Drawing.Point(611, 251);
     this.kbtnViewChecksums.Name         = "kbtnViewChecksums";
     this.kbtnViewChecksums.Size         = new System.Drawing.Size(133, 30);
     this.kbtnViewChecksums.StateCommon.Content.ShortText.Font = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.kbtnViewChecksums.TabIndex    = 10;
     this.kbtnViewChecksums.Values.Text = "&View Checksums";
     //
     // pbDownloadProgress
     //
     this.pbDownloadProgress.Location = new System.Drawing.Point(12, 205);
     this.pbDownloadProgress.Name     = "pbDownloadProgress";
     this.pbDownloadProgress.Size     = new System.Drawing.Size(974, 26);
     this.pbDownloadProgress.TabIndex = 11;
     //
     // klblDownloadProgressPercenta
     //
     this.klblDownloadProgressPercenta.Location = new System.Drawing.Point(992, 205);
     this.klblDownloadProgressPercenta.Name     = "klblDownloadProgressPercenta";
     this.klblDownloadProgressPercenta.Size     = new System.Drawing.Size(33, 26);
     this.klblDownloadProgressPercenta.StateCommon.ShortText.Font = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.klblDownloadProgressPercenta.TabIndex    = 12;
     this.klblDownloadProgressPercenta.Target      = this.pbDownloadProgress;
     this.klblDownloadProgressPercenta.Values.Text = "{0}";
     //
     // SoftwareUpdater
     //
     this.ClientSize = new System.Drawing.Size(1059, 409);
     this.Controls.Add(this.kryptonPanel1);
     this.Font            = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.Fixed3D;
     this.MaximizeBox     = false;
     this.MinimizeBox     = false;
     this.Name            = "SoftwareUpdater";
     this.ShowInTaskbar   = false;
     this.StartPosition   = System.Windows.Forms.FormStartPosition.CenterParent;
     this.Text            = "{0} Software Updater";
     this.Load           += new System.EventHandler(this.SoftwareUpdater_Load);
     ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel1)).EndInit();
     this.kryptonPanel1.ResumeLayout(false);
     this.kryptonPanel1.PerformLayout();
     this.ResumeLayout(false);
 }
Exemplo n.º 49
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.Windows.Forms.ListViewItem listViewItem1 = new System.Windows.Forms.ListViewItem("");
     System.Windows.Forms.ListViewItem listViewItem2 = new System.Windows.Forms.ListViewItem("");
     System.Windows.Forms.ListViewItem listViewItem3 = new System.Windows.Forms.ListViewItem("");
     System.Windows.Forms.ListViewItem listViewItem4 = new System.Windows.Forms.ListViewItem("");
     System.Resources.ResourceManager  resources     = new System.Resources.ResourceManager(typeof(RunBox));
     this.labelInfo          = new System.Windows.Forms.Label();
     this.buttonStop         = new System.Windows.Forms.Button();
     this.progressBarRun     = new System.Windows.Forms.ProgressBar();
     this.buttonClose        = new System.Windows.Forms.Button();
     this.label1             = new System.Windows.Forms.Label();
     this.timerProgress      = new System.Windows.Forms.Timer(this.components);
     this.listViewEvents     = new System.Windows.Forms.ListView();
     this._colType           = new System.Windows.Forms.ColumnHeader();
     this._colDescription    = new System.Windows.Forms.ColumnHeader();
     this._colSender         = new System.Windows.Forms.ColumnHeader();
     this._colSimulationTime = new System.Windows.Forms.ColumnHeader();
     this._colOrder          = new System.Windows.Forms.ColumnHeader();
     this.SuspendLayout();
     //
     // labelInfo
     //
     this.labelInfo.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                                                                   | System.Windows.Forms.AnchorStyles.Right)));
     this.labelInfo.Location = new System.Drawing.Point(4, 4);
     this.labelInfo.Name     = "labelInfo";
     this.labelInfo.Size     = new System.Drawing.Size(460, 16);
     this.labelInfo.TabIndex = 0;
     this.labelInfo.Text     = "Running...";
     //
     // buttonStop
     //
     this.buttonStop.Anchor    = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.buttonStop.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
     this.buttonStop.Location  = new System.Drawing.Point(280, 202);
     this.buttonStop.Name      = "buttonStop";
     this.buttonStop.Size      = new System.Drawing.Size(84, 24);
     this.buttonStop.TabIndex  = 1;
     this.buttonStop.Text      = "Stop !!!";
     this.buttonStop.Click    += new System.EventHandler(this.buttonStop_Click);
     //
     // progressBarRun
     //
     this.progressBarRun.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                                                                        | System.Windows.Forms.AnchorStyles.Right)));
     this.progressBarRun.Location        = new System.Drawing.Point(4, 24);
     this.progressBarRun.Maximum         = 256;
     this.progressBarRun.Name            = "progressBarRun";
     this.progressBarRun.Size            = new System.Drawing.Size(464, 24);
     this.progressBarRun.TabIndex        = 2;
     this.progressBarRun.EnabledChanged += new System.EventHandler(this.progressBarRun_EnabledChanged);
     //
     // buttonClose
     //
     this.buttonClose.Anchor       = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.buttonClose.DialogResult = System.Windows.Forms.DialogResult.Cancel;
     this.buttonClose.Enabled      = false;
     this.buttonClose.FlatStyle    = System.Windows.Forms.FlatStyle.Popup;
     this.buttonClose.Location     = new System.Drawing.Point(372, 202);
     this.buttonClose.Name         = "buttonClose";
     this.buttonClose.Size         = new System.Drawing.Size(84, 24);
     this.buttonClose.TabIndex     = 3;
     this.buttonClose.Text         = "Close";
     this.buttonClose.Click       += new System.EventHandler(this.buttonClose_Click);
     //
     // label1
     //
     this.label1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                                                                | System.Windows.Forms.AnchorStyles.Right)));
     this.label1.Location = new System.Drawing.Point(4, 56);
     this.label1.Name     = "label1";
     this.label1.Size     = new System.Drawing.Size(464, 16);
     this.label1.TabIndex = 5;
     this.label1.Text     = "Events:";
     //
     // listViewEvents
     //
     this.listViewEvents.AllowColumnReorder = true;
     this.listViewEvents.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.listViewEvents.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
     this.listViewEvents.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
         this._colOrder,
         this._colType,
         this._colDescription,
         this._colSender,
         this._colSimulationTime
     });
     this.listViewEvents.FullRowSelect = true;
     this.listViewEvents.GridLines     = true;
     this.listViewEvents.Items.AddRange(new System.Windows.Forms.ListViewItem[] {
         listViewItem1,
         listViewItem2,
         listViewItem3,
         listViewItem4
     });
     this.listViewEvents.Location = new System.Drawing.Point(4, 76);
     this.listViewEvents.Name     = "listViewEvents";
     this.listViewEvents.Size     = new System.Drawing.Size(464, 116);
     this.listViewEvents.TabIndex = 6;
     this.listViewEvents.View     = System.Windows.Forms.View.Details;
     //
     // _colType
     //
     this._colType.Text  = "Type";
     this._colType.Width = 82;
     //
     // _colDescription
     //
     this._colDescription.Text  = "Description";
     this._colDescription.Width = 147;
     //
     // _colSender
     //
     this._colSender.Text  = "Sender";
     this._colSender.Width = 82;
     //
     // _colSimulationTime
     //
     this._colSimulationTime.Text  = "Simulation Time";
     this._colSimulationTime.Width = 102;
     //
     // _colOrder
     //
     this._colOrder.Text  = "Order";
     this._colOrder.Width = 48;
     //
     // RunBox
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.CancelButton      = this.buttonClose;
     this.ClientSize        = new System.Drawing.Size(472, 233);
     this.Controls.Add(this.listViewEvents);
     this.Controls.Add(this.label1);
     this.Controls.Add(this.buttonClose);
     this.Controls.Add(this.progressBarRun);
     this.Controls.Add(this.buttonStop);
     this.Controls.Add(this.labelInfo);
     this.Icon          = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
     this.MinimizeBox   = false;
     this.MinimumSize   = new System.Drawing.Size(440, 200);
     this.Name          = "RunBox";
     this.ShowInTaskbar = false;
     this.SizeGripStyle = System.Windows.Forms.SizeGripStyle.Show;
     this.Text          = "Simulation progress";
     this.Closing      += new System.ComponentModel.CancelEventHandler(this.RunBox_Closing);
     this.Paint        += new System.Windows.Forms.PaintEventHandler(this.RunBox_Paint);
     this.ResumeLayout(false);
 }
Exemplo n.º 50
0
        /// <summary>
        /// downloadFile
        /// </summary>
        /// <param name="filename">Ten file</param>
        /// <param name="pro">chon controls ProgressBar</param>
        /// <returns></returns>
        public bool downloadFile(string filename, System.Windows.Forms.ProgressBar pro)
        {
            downloadedData = new byte[0];

            try
            {
                //Optional
                Application.DoEvents();

                //Create FTP request
                //Note: format is ftp://server.com/file.ext
                FtpWebRequest request = FtpWebRequest.Create("ftp://" + server + "/" + filename) as FtpWebRequest;

                //Optional
                Application.DoEvents();

                //Get the file size first (for progress bar)
                request.Method      = WebRequestMethods.Ftp.GetFileSize;
                request.Credentials = new NetworkCredential(user, pass);
                request.UsePassive  = true;
                request.UseBinary   = true;
                request.KeepAlive   = true; //don't close the connection

                int dataLength = (int)request.GetResponse().ContentLength;

                //Optional
                Application.DoEvents();

                //Now get the actual data
                request             = FtpWebRequest.Create("ftp://" + server + "/" + filename) as FtpWebRequest;
                request.Method      = WebRequestMethods.Ftp.DownloadFile;
                request.Credentials = new NetworkCredential(user, pass);
                request.UsePassive  = true;
                request.UseBinary   = true;
                request.KeepAlive   = false; //close the connection when done

                //Set up progress bar
                pro.Value   = 0;
                pro.Maximum = dataLength;
                //lbProgress.Text = "0/" + dataLength.ToString();

                //Streams
                FtpWebResponse response = request.GetResponse() as FtpWebResponse;
                Stream         reader   = response.GetResponseStream();

                //Download to memory
                //Note: adjust the streams here to download directly to the hard drive
                MemoryStream memStream = new MemoryStream();
                byte[]       buffer    = new byte[1024]; //downloads in chuncks

                while (true)
                {
                    Application.DoEvents(); //prevent application from crashing

                    //Try to read the data
                    int bytesRead = reader.Read(buffer, 0, buffer.Length);

                    if (bytesRead == 0)
                    {
                        //Nothing was read, finished downloading
                        pro.Value = pro.Maximum;
                        //lbProgress.Text = dataLength.ToString() + "/" + dataLength.ToString();

                        Application.DoEvents();
                        break;
                    }
                    else
                    {
                        //Write the downloaded data
                        memStream.Write(buffer, 0, bytesRead);

                        ////Update the progress bar
                        if (pro.Value + bytesRead <= pro.Maximum)
                        {
                            pro.Value += bytesRead;
                            //lbProgress.Text = progressBar1.Value.ToString() + "/" + dataLength.ToString();

                            pro.Refresh();
                            Application.DoEvents();
                        }
                    }
                }

                //Convert the downloaded stream to a byte array
                downloadedData = memStream.ToArray();

                //Clean up
                reader.Close();
                memStream.Close();
                response.Close();
                return(true);
            }
            catch (Exception)
            {
                MessageBox.Show("There was an error connecting to the FTP Server.");
                return(false);
            }

            //txtData.Text = downloadedData.Length.ToString();
            //this.Text = "Download Data through FTP";

            user = string.Empty;
            pass = string.Empty;
        }
Exemplo n.º 51
0
 /// <summary>
 /// 设计器支持所需的方法 - 不要使用代码编辑器修改
 /// 此方法的内容。
 /// </summary>
 private void InitializeComponent()
 {
     this.components = new System.ComponentModel.Container();
     System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(ProjectExp));
     this.groupBox1       = new System.Windows.Forms.GroupBox();
     this.textBox2        = new System.Windows.Forms.TextBox();
     this.btn_ProFold     = new WiB.Pinkie.Controls.ButtonXP();
     this.textBox1        = new System.Windows.Forms.TextBox();
     this.label1          = new System.Windows.Forms.Label();
     this.label2          = new System.Windows.Forms.Label();
     this.btn_TargetFold  = new WiB.Pinkie.Controls.ButtonXP();
     this.btnExp          = new WiB.Pinkie.Controls.ButtonXP();
     this.statusBar1      = new System.Windows.Forms.StatusBar();
     this.statusBarPanel1 = new System.Windows.Forms.StatusBarPanel();
     this.btn_Set         = new WiB.Pinkie.Controls.ButtonXP();
     this.groupBox2       = new System.Windows.Forms.GroupBox();
     this.listView1       = new System.Windows.Forms.ListView();
     this.imageList1      = new System.Windows.Forms.ImageList(this.components);
     this.progressBar1    = new System.Windows.Forms.ProgressBar();
     this.btn_Cancle      = new WiB.Pinkie.Controls.ButtonXP();
     this.groupBox1.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.statusBarPanel1)).BeginInit();
     this.groupBox2.SuspendLayout();
     this.SuspendLayout();
     //
     // groupBox1
     //
     this.groupBox1.Controls.Add(this.textBox2);
     this.groupBox1.Controls.Add(this.btn_ProFold);
     this.groupBox1.Controls.Add(this.textBox1);
     this.groupBox1.Controls.Add(this.label1);
     this.groupBox1.Controls.Add(this.label2);
     this.groupBox1.Controls.Add(this.btn_TargetFold);
     this.groupBox1.Location = new System.Drawing.Point(8, 8);
     this.groupBox1.Name     = "groupBox1";
     this.groupBox1.Size     = new System.Drawing.Size(440, 88);
     this.groupBox1.TabIndex = 0;
     this.groupBox1.TabStop  = false;
     this.groupBox1.Text     = "路径";
     //
     // textBox2
     //
     this.textBox2.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
     this.textBox2.Location    = new System.Drawing.Point(80, 52);
     this.textBox2.Name        = "textBox2";
     this.textBox2.Size        = new System.Drawing.Size(288, 21);
     this.textBox2.TabIndex    = 1;
     this.textBox2.Text        = "";
     //
     // btn_ProFold
     //
     this.btn_ProFold._Image        = null;
     this.btn_ProFold.BackColor     = System.Drawing.Color.FromArgb(((System.Byte)(0)), ((System.Byte)(212)), ((System.Byte)(208)), ((System.Byte)(200)));
     this.btn_ProFold.DefaultScheme = false;
     this.btn_ProFold.DialogResult  = System.Windows.Forms.DialogResult.None;
     this.btn_ProFold.Image         = null;
     this.btn_ProFold.Location      = new System.Drawing.Point(368, 21);
     this.btn_ProFold.Name          = "btn_ProFold";
     this.btn_ProFold.Scheme        = WiB.Pinkie.Controls.ButtonXP.Schemes.Blue;
     this.btn_ProFold.Size          = new System.Drawing.Size(57, 23);
     this.btn_ProFold.TabIndex      = 43;
     this.btn_ProFold.Text          = "选择...";
     this.btn_ProFold.Click        += new System.EventHandler(this.btn_ProFold_Click);
     //
     // textBox1
     //
     this.textBox1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
     this.textBox1.Location    = new System.Drawing.Point(80, 22);
     this.textBox1.Name        = "textBox1";
     this.textBox1.Size        = new System.Drawing.Size(288, 21);
     this.textBox1.TabIndex    = 1;
     this.textBox1.Text        = "";
     //
     // label1
     //
     this.label1.AutoSize = true;
     this.label1.Location = new System.Drawing.Point(16, 24);
     this.label1.Name     = "label1";
     this.label1.Size     = new System.Drawing.Size(66, 17);
     this.label1.TabIndex = 0;
     this.label1.Text     = "选择项目:";
     //
     // label2
     //
     this.label2.AutoSize = true;
     this.label2.Location = new System.Drawing.Point(16, 54);
     this.label2.Name     = "label2";
     this.label2.Size     = new System.Drawing.Size(66, 17);
     this.label2.TabIndex = 0;
     this.label2.Text     = "输出目录:";
     //
     // btn_TargetFold
     //
     this.btn_TargetFold._Image        = null;
     this.btn_TargetFold.BackColor     = System.Drawing.Color.FromArgb(((System.Byte)(0)), ((System.Byte)(212)), ((System.Byte)(208)), ((System.Byte)(200)));
     this.btn_TargetFold.DefaultScheme = false;
     this.btn_TargetFold.DialogResult  = System.Windows.Forms.DialogResult.None;
     this.btn_TargetFold.Image         = null;
     this.btn_TargetFold.Location      = new System.Drawing.Point(368, 51);
     this.btn_TargetFold.Name          = "btn_TargetFold";
     this.btn_TargetFold.Scheme        = WiB.Pinkie.Controls.ButtonXP.Schemes.Blue;
     this.btn_TargetFold.Size          = new System.Drawing.Size(57, 23);
     this.btn_TargetFold.TabIndex      = 43;
     this.btn_TargetFold.Text          = "选择...";
     this.btn_TargetFold.Click        += new System.EventHandler(this.btn_TargetFold_Click);
     //
     // btnExp
     //
     this.btnExp._Image        = null;
     this.btnExp.BackColor     = System.Drawing.Color.FromArgb(((System.Byte)(0)), ((System.Byte)(212)), ((System.Byte)(208)), ((System.Byte)(200)));
     this.btnExp.DefaultScheme = false;
     this.btnExp.DialogResult  = System.Windows.Forms.DialogResult.None;
     this.btnExp.Image         = null;
     this.btnExp.Location      = new System.Drawing.Point(192, 278);
     this.btnExp.Name          = "btnExp";
     this.btnExp.Scheme        = WiB.Pinkie.Controls.ButtonXP.Schemes.Blue;
     this.btnExp.Size          = new System.Drawing.Size(75, 26);
     this.btnExp.TabIndex      = 42;
     this.btnExp.Text          = "导出项目";
     this.btnExp.Click        += new System.EventHandler(this.btnExp_Click);
     //
     // statusBar1
     //
     this.statusBar1.Location = new System.Drawing.Point(0, 319);
     this.statusBar1.Name     = "statusBar1";
     this.statusBar1.Panels.AddRange(new System.Windows.Forms.StatusBarPanel[] {
         this.statusBarPanel1
     });
     this.statusBar1.ShowPanels = true;
     this.statusBar1.Size       = new System.Drawing.Size(456, 22);
     this.statusBar1.TabIndex   = 43;
     this.statusBar1.Text       = "statusBar1";
     //
     // statusBarPanel1
     //
     this.statusBarPanel1.AutoSize = System.Windows.Forms.StatusBarPanelAutoSize.Spring;
     this.statusBarPanel1.Text     = "就绪";
     this.statusBarPanel1.Width    = 440;
     //
     // btn_Set
     //
     this.btn_Set._Image        = null;
     this.btn_Set.BackColor     = System.Drawing.Color.FromArgb(((System.Byte)(0)), ((System.Byte)(212)), ((System.Byte)(208)), ((System.Byte)(200)));
     this.btn_Set.DefaultScheme = false;
     this.btn_Set.DialogResult  = System.Windows.Forms.DialogResult.None;
     this.btn_Set.Image         = null;
     this.btn_Set.Location      = new System.Drawing.Point(72, 278);
     this.btn_Set.Name          = "btn_Set";
     this.btn_Set.Scheme        = WiB.Pinkie.Controls.ButtonXP.Schemes.Blue;
     this.btn_Set.Size          = new System.Drawing.Size(75, 26);
     this.btn_Set.TabIndex      = 42;
     this.btn_Set.Text          = "设  置";
     this.btn_Set.Click        += new System.EventHandler(this.btn_Set_Click);
     //
     // groupBox2
     //
     this.groupBox2.Controls.Add(this.listView1);
     this.groupBox2.Location = new System.Drawing.Point(8, 104);
     this.groupBox2.Name     = "groupBox2";
     this.groupBox2.Size     = new System.Drawing.Size(440, 160);
     this.groupBox2.TabIndex = 44;
     this.groupBox2.TabStop  = false;
     this.groupBox2.Text     = "目录信息";
     //
     // listView1
     //
     this.listView1.Dock           = System.Windows.Forms.DockStyle.Fill;
     this.listView1.Location       = new System.Drawing.Point(3, 17);
     this.listView1.Name           = "listView1";
     this.listView1.Size           = new System.Drawing.Size(434, 140);
     this.listView1.SmallImageList = this.imageList1;
     this.listView1.TabIndex       = 0;
     //
     // imageList1
     //
     this.imageList1.ImageSize        = new System.Drawing.Size(16, 16);
     this.imageList1.ImageStream      = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("imageList1.ImageStream")));
     this.imageList1.TransparentColor = System.Drawing.Color.Transparent;
     //
     // progressBar1
     //
     this.progressBar1.Location = new System.Drawing.Point(0, 311);
     this.progressBar1.Name     = "progressBar1";
     this.progressBar1.Size     = new System.Drawing.Size(440, 10);
     this.progressBar1.TabIndex = 45;
     //
     // btn_Cancle
     //
     this.btn_Cancle._Image        = null;
     this.btn_Cancle.BackColor     = System.Drawing.Color.FromArgb(((System.Byte)(0)), ((System.Byte)(212)), ((System.Byte)(208)), ((System.Byte)(200)));
     this.btn_Cancle.DefaultScheme = false;
     this.btn_Cancle.DialogResult  = System.Windows.Forms.DialogResult.Cancel;
     this.btn_Cancle.Image         = null;
     this.btn_Cancle.Location      = new System.Drawing.Point(312, 278);
     this.btn_Cancle.Name          = "btn_Cancle";
     this.btn_Cancle.Scheme        = WiB.Pinkie.Controls.ButtonXP.Schemes.Blue;
     this.btn_Cancle.Size          = new System.Drawing.Size(75, 26);
     this.btn_Cancle.TabIndex      = 46;
     this.btn_Cancle.Text          = "取  消";
     this.btn_Cancle.Click        += new System.EventHandler(this.btn_Cancle_Click);
     //
     // ProjectExp
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(6, 14);
     this.ClientSize        = new System.Drawing.Size(456, 341);
     this.Controls.Add(this.btn_Cancle);
     this.Controls.Add(this.progressBar1);
     this.Controls.Add(this.groupBox2);
     this.Controls.Add(this.statusBar1);
     this.Controls.Add(this.btnExp);
     this.Controls.Add(this.groupBox1);
     this.Controls.Add(this.btn_Set);
     this.Icon          = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
     this.MaximizeBox   = false;
     this.MinimizeBox   = false;
     this.Name          = "ProjectExp";
     this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
     this.Text          = "WEB项目发布";
     this.Load         += new System.EventHandler(this.ProjectExp_Load);
     this.groupBox1.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.statusBarPanel1)).EndInit();
     this.groupBox2.ResumeLayout(false);
     this.ResumeLayout(false);
 }
Exemplo n.º 52
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(FormProgress));
     this.butCancel     = new OpenDental.UI.Button();
     this.progressBar1  = new System.Windows.Forms.ProgressBar();
     this.label1        = new System.Windows.Forms.Label();
     this.timer1        = new System.Windows.Forms.Timer(this.components);
     this.labelProgress = new System.Windows.Forms.Label();
     this.labelError    = new System.Windows.Forms.Label();
     this.SuspendLayout();
     //
     // butCancel
     //
     this.butCancel.AdjustImageLocation = new System.Drawing.Point(0, 0);
     this.butCancel.Anchor       = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.butCancel.Autosize     = true;
     this.butCancel.BtnShape     = OpenDental.UI.enumType.BtnShape.Rectangle;
     this.butCancel.BtnStyle     = OpenDental.UI.enumType.XPStyle.Silver;
     this.butCancel.CornerRadius = 4F;
     this.butCancel.Location     = new System.Drawing.Point(376, 215);
     this.butCancel.Name         = "butCancel";
     this.butCancel.Size         = new System.Drawing.Size(75, 26);
     this.butCancel.TabIndex     = 0;
     this.butCancel.Text         = "&Cancel";
     this.butCancel.Click       += new System.EventHandler(this.butCancel_Click);
     //
     // progressBar1
     //
     this.progressBar1.Location = new System.Drawing.Point(73, 99);
     this.progressBar1.Name     = "progressBar1";
     this.progressBar1.Size     = new System.Drawing.Size(377, 23);
     this.progressBar1.TabIndex = 2;
     //
     // label1
     //
     this.label1.Location  = new System.Drawing.Point(71, 69);
     this.label1.Name      = "label1";
     this.label1.Size      = new System.Drawing.Size(100, 23);
     this.label1.TabIndex  = 3;
     this.label1.Text      = "Progress";
     this.label1.TextAlign = System.Drawing.ContentAlignment.BottomLeft;
     //
     // timer1
     //
     this.timer1.Enabled  = true;
     this.timer1.Interval = 200;
     this.timer1.Tick    += new System.EventHandler(this.timer1_Tick);
     //
     // labelProgress
     //
     this.labelProgress.Location = new System.Drawing.Point(71, 135);
     this.labelProgress.Name     = "labelProgress";
     this.labelProgress.Size     = new System.Drawing.Size(402, 55);
     this.labelProgress.TabIndex = 4;
     this.labelProgress.Text     = "Preparing for Upload";
     //
     // labelError
     //
     this.labelError.Font      = new System.Drawing.Font("Microsoft Sans Serif", 10F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.labelError.ForeColor = System.Drawing.Color.DarkRed;
     this.labelError.Location  = new System.Drawing.Point(32, 13);
     this.labelError.Name      = "labelError";
     this.labelError.Size      = new System.Drawing.Size(456, 41);
     this.labelError.TabIndex  = 5;
     this.labelError.Text      = "Error Message";
     this.labelError.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
     //
     // FormProgress
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.ClientSize        = new System.Drawing.Size(500, 294);
     this.Controls.Add(this.labelError);
     this.Controls.Add(this.labelProgress);
     this.Controls.Add(this.label1);
     this.Controls.Add(this.progressBar1);
     this.Controls.Add(this.butCancel);
     this.Icon          = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
     this.MaximizeBox   = false;
     this.MinimizeBox   = false;
     this.Name          = "FormProgress";
     this.ShowInTaskbar = false;
     this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
     this.Load         += new System.EventHandler(this.FormProgress_Load);
     this.ResumeLayout(false);
 }
Exemplo n.º 53
0
 /// <summary>
 /// 设计器支持所需的方法 - 不要使用代码编辑器修改
 /// 此方法的内容。
 /// </summary>
 private void InitializeComponent()
 {
     this.panel1                  = new System.Windows.Forms.Panel();
     this.pb                      = new System.Windows.Forms.ProgressBar();
     this.label3                  = new System.Windows.Forms.Label();
     this.butok                   = new System.Windows.Forms.Button();
     this.butquit                 = new System.Windows.Forms.Button();
     this.label6                  = new System.Windows.Forms.Label();
     this.dtp1                    = new System.Windows.Forms.DateTimePicker();
     this.label7                  = new System.Windows.Forms.Label();
     this.dtp2                    = new System.Windows.Forms.DateTimePicker();
     this.groupBox1               = new System.Windows.Forms.GroupBox();
     this.cmbyplx                 = new System.Windows.Forms.ComboBox();
     this.label1                  = new System.Windows.Forms.Label();
     this.txtxx                   = new System.Windows.Forms.TextBox();
     this.txtsx                   = new System.Windows.Forms.TextBox();
     this.checkBox2               = new System.Windows.Forms.CheckBox();
     this.checkBox1               = new System.Windows.Forms.CheckBox();
     this.butcx                   = new System.Windows.Forms.Button();
     this.myDataGrid1             = new myDataGrid.myDataGrid();
     this.dataGridTableStyle1     = new System.Windows.Forms.DataGridTableStyle();
     this.dataGridTextBoxColumn1  = new System.Windows.Forms.DataGridTextBoxColumn();
     this.dataGridTextBoxColumn2  = new System.Windows.Forms.DataGridTextBoxColumn();
     this.dataGridTextBoxColumn3  = new System.Windows.Forms.DataGridTextBoxColumn();
     this.dataGridTextBoxColumn4  = new System.Windows.Forms.DataGridTextBoxColumn();
     this.dataGridTextBoxColumn6  = new System.Windows.Forms.DataGridTextBoxColumn();
     this.dataGridTextBoxColumn7  = new System.Windows.Forms.DataGridTextBoxColumn();
     this.dataGridTextBoxColumn12 = new System.Windows.Forms.DataGridTextBoxColumn();
     this.dataGridTextBoxColumn13 = new System.Windows.Forms.DataGridTextBoxColumn();
     this.dataGridTextBoxColumn9  = new System.Windows.Forms.DataGridTextBoxColumn();
     this.dataGridTextBoxColumn5  = new System.Windows.Forms.DataGridTextBoxColumn();
     this.dataGridTextBoxColumn8  = new System.Windows.Forms.DataGridTextBoxColumn();
     this.dataGridTextBoxColumn10 = new System.Windows.Forms.DataGridTextBoxColumn();
     this.dataGridTextBoxColumn11 = new System.Windows.Forms.DataGridTextBoxColumn();
     this.dataGridBoolColumn1     = new System.Windows.Forms.DataGridBoolColumn();
     this.groupBox2               = new System.Windows.Forms.GroupBox();
     this.panel1.SuspendLayout();
     this.groupBox1.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.myDataGrid1)).BeginInit();
     this.groupBox2.SuspendLayout();
     this.SuspendLayout();
     //
     // panel1
     //
     this.panel1.Controls.Add(this.pb);
     this.panel1.Controls.Add(this.label3);
     this.panel1.Dock     = System.Windows.Forms.DockStyle.Bottom;
     this.panel1.Location = new System.Drawing.Point(0, 532);
     this.panel1.Name     = "panel1";
     this.panel1.Size     = new System.Drawing.Size(824, 41);
     this.panel1.TabIndex = 3;
     this.panel1.Visible  = false;
     //
     // pb
     //
     this.pb.Location = new System.Drawing.Point(96, 10);
     this.pb.Name     = "pb";
     this.pb.Size     = new System.Drawing.Size(1067, 21);
     this.pb.TabIndex = 2;
     //
     // label3
     //
     this.label3.Location = new System.Drawing.Point(13, 12);
     this.label3.Name     = "label3";
     this.label3.Size     = new System.Drawing.Size(96, 20);
     this.label3.TabIndex = 1;
     this.label3.Text     = "更新进度";
     //
     // butok
     //
     this.butok.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
     this.butok.ForeColor = System.Drawing.Color.Navy;
     this.butok.Location  = new System.Drawing.Point(885, 31);
     this.butok.Name      = "butok";
     this.butok.Size      = new System.Drawing.Size(96, 41);
     this.butok.TabIndex  = 7;
     this.butok.Text      = "更新(&O)";
     this.butok.Click    += new System.EventHandler(this.butok_Click);
     //
     // butquit
     //
     this.butquit.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
     this.butquit.ForeColor = System.Drawing.Color.Navy;
     this.butquit.Location  = new System.Drawing.Point(992, 31);
     this.butquit.Name      = "butquit";
     this.butquit.Size      = new System.Drawing.Size(96, 41);
     this.butquit.TabIndex  = 8;
     this.butquit.Text      = "退出 (&Q)";
     this.butquit.Click    += new System.EventHandler(this.butquit_Click);
     //
     // label6
     //
     this.label6.Font     = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
     this.label6.Location = new System.Drawing.Point(171, 44);
     this.label6.Name     = "label6";
     this.label6.Size     = new System.Drawing.Size(60, 22);
     this.label6.TabIndex = 9;
     this.label6.Text     = "日期从";
     //
     // dtp1
     //
     this.dtp1.Location = new System.Drawing.Point(224, 41);
     this.dtp1.Name     = "dtp1";
     this.dtp1.Size     = new System.Drawing.Size(149, 25);
     this.dtp1.TabIndex = 10;
     //
     // label7
     //
     this.label7.Font     = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
     this.label7.Location = new System.Drawing.Point(373, 48);
     this.label7.Name     = "label7";
     this.label7.Size     = new System.Drawing.Size(32, 20);
     this.label7.TabIndex = 11;
     this.label7.Text     = "到";
     //
     // dtp2
     //
     this.dtp2.Location = new System.Drawing.Point(395, 41);
     this.dtp2.Name     = "dtp2";
     this.dtp2.Size     = new System.Drawing.Size(149, 25);
     this.dtp2.TabIndex = 12;
     //
     // groupBox1
     //
     this.groupBox1.Controls.Add(this.cmbyplx);
     this.groupBox1.Controls.Add(this.label1);
     this.groupBox1.Controls.Add(this.txtxx);
     this.groupBox1.Controls.Add(this.txtsx);
     this.groupBox1.Controls.Add(this.checkBox2);
     this.groupBox1.Controls.Add(this.checkBox1);
     this.groupBox1.Controls.Add(this.butcx);
     this.groupBox1.Controls.Add(this.dtp2);
     this.groupBox1.Controls.Add(this.dtp1);
     this.groupBox1.Controls.Add(this.label6);
     this.groupBox1.Controls.Add(this.label7);
     this.groupBox1.Controls.Add(this.butok);
     this.groupBox1.Controls.Add(this.butquit);
     this.groupBox1.Dock      = System.Windows.Forms.DockStyle.Top;
     this.groupBox1.ForeColor = System.Drawing.Color.Navy;
     this.groupBox1.Location  = new System.Drawing.Point(0, 0);
     this.groupBox1.Name      = "groupBox1";
     this.groupBox1.Size      = new System.Drawing.Size(824, 103);
     this.groupBox1.TabIndex  = 19;
     this.groupBox1.TabStop   = false;
     this.groupBox1.Text      = "平均日销售量";
     //
     // cmbyplx
     //
     this.cmbyplx.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.cmbyplx.Location      = new System.Drawing.Point(53, 42);
     this.cmbyplx.Name          = "cmbyplx";
     this.cmbyplx.Size          = new System.Drawing.Size(107, 23);
     this.cmbyplx.TabIndex      = 19;
     //
     // label1
     //
     this.label1.Font     = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
     this.label1.Location = new System.Drawing.Point(11, 44);
     this.label1.Name     = "label1";
     this.label1.Size     = new System.Drawing.Size(60, 22);
     this.label1.TabIndex = 18;
     this.label1.Text     = "类型";
     //
     // txtxx
     //
     this.txtxx.Enabled  = false;
     this.txtxx.Location = new System.Drawing.Point(800, 62);
     this.txtxx.Name     = "txtxx";
     this.txtxx.Size     = new System.Drawing.Size(64, 25);
     this.txtxx.TabIndex = 17;
     this.txtxx.KeyUp   += new System.Windows.Forms.KeyEventHandler(this.textBox1_KeyUp);
     //
     // txtsx
     //
     this.txtsx.Enabled  = false;
     this.txtsx.Location = new System.Drawing.Point(800, 22);
     this.txtsx.Name     = "txtsx";
     this.txtsx.Size     = new System.Drawing.Size(64, 25);
     this.txtsx.TabIndex = 16;
     this.txtsx.KeyUp   += new System.Windows.Forms.KeyEventHandler(this.textBox1_KeyUp);
     //
     // checkBox2
     //
     this.checkBox2.Location        = new System.Drawing.Point(672, 62);
     this.checkBox2.Name            = "checkBox2";
     this.checkBox2.Size            = new System.Drawing.Size(139, 31);
     this.checkBox2.TabIndex        = 15;
     this.checkBox2.Text            = "更新下限倍数";
     this.checkBox2.CheckedChanged += new System.EventHandler(this.checkBox2_CheckedChanged);
     //
     // checkBox1
     //
     this.checkBox1.Location        = new System.Drawing.Point(672, 21);
     this.checkBox1.Name            = "checkBox1";
     this.checkBox1.Size            = new System.Drawing.Size(139, 30);
     this.checkBox1.TabIndex        = 14;
     this.checkBox1.Text            = "更新上限陪数";
     this.checkBox1.CheckedChanged += new System.EventHandler(this.checkBox2_CheckedChanged);
     //
     // butcx
     //
     this.butcx.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
     this.butcx.ForeColor = System.Drawing.Color.Navy;
     this.butcx.Location  = new System.Drawing.Point(565, 33);
     this.butcx.Name      = "butcx";
     this.butcx.Size      = new System.Drawing.Size(86, 42);
     this.butcx.TabIndex  = 13;
     this.butcx.Text      = "查询(&C)";
     this.butcx.Click    += new System.EventHandler(this.butcx_Click);
     //
     // myDataGrid1
     //
     this.myDataGrid1.BackgroundColor = System.Drawing.Color.White;
     this.myDataGrid1.CaptionVisible  = false;
     this.myDataGrid1.DataMember      = "";
     this.myDataGrid1.Dock            = System.Windows.Forms.DockStyle.Fill;
     this.myDataGrid1.HeaderForeColor = System.Drawing.SystemColors.ControlText;
     this.myDataGrid1.Location        = new System.Drawing.Point(3, 21);
     this.myDataGrid1.Name            = "myDataGrid1";
     this.myDataGrid1.Size            = new System.Drawing.Size(818, 405);
     this.myDataGrid1.TabIndex        = 20;
     this.myDataGrid1.TableStyles.AddRange(new System.Windows.Forms.DataGridTableStyle[] {
         this.dataGridTableStyle1
     });
     this.myDataGrid1.Click += new System.EventHandler(this.myDataGrid1_Click);
     //
     // dataGridTableStyle1
     //
     this.dataGridTableStyle1.AllowSorting = false;
     this.dataGridTableStyle1.DataGrid     = this.myDataGrid1;
     this.dataGridTableStyle1.GridColumnStyles.AddRange(new System.Windows.Forms.DataGridColumnStyle[] {
         this.dataGridTextBoxColumn1,
         this.dataGridTextBoxColumn2,
         this.dataGridTextBoxColumn3,
         this.dataGridTextBoxColumn4,
         this.dataGridTextBoxColumn6,
         this.dataGridTextBoxColumn7,
         this.dataGridTextBoxColumn12,
         this.dataGridTextBoxColumn13,
         this.dataGridTextBoxColumn9,
         this.dataGridTextBoxColumn5,
         this.dataGridTextBoxColumn8,
         this.dataGridTextBoxColumn10,
         this.dataGridTextBoxColumn11,
         this.dataGridBoolColumn1
     });
     this.dataGridTableStyle1.HeaderForeColor = System.Drawing.SystemColors.ControlText;
     //
     // dataGridTextBoxColumn1
     //
     this.dataGridTextBoxColumn1.Format     = "";
     this.dataGridTextBoxColumn1.FormatInfo = null;
     this.dataGridTextBoxColumn1.HeaderText = "序号";
     this.dataGridTextBoxColumn1.ReadOnly   = true;
     this.dataGridTextBoxColumn1.Width      = 40;
     //
     // dataGridTextBoxColumn2
     //
     this.dataGridTextBoxColumn2.Format     = "";
     this.dataGridTextBoxColumn2.FormatInfo = null;
     this.dataGridTextBoxColumn2.HeaderText = "品名";
     this.dataGridTextBoxColumn2.ReadOnly   = true;
     this.dataGridTextBoxColumn2.Width      = 150;
     //
     // dataGridTextBoxColumn3
     //
     this.dataGridTextBoxColumn3.Format     = "";
     this.dataGridTextBoxColumn3.FormatInfo = null;
     this.dataGridTextBoxColumn3.HeaderText = "规格";
     this.dataGridTextBoxColumn3.ReadOnly   = true;
     this.dataGridTextBoxColumn3.Width      = 75;
     //
     // dataGridTextBoxColumn4
     //
     this.dataGridTextBoxColumn4.Format     = "";
     this.dataGridTextBoxColumn4.FormatInfo = null;
     this.dataGridTextBoxColumn4.HeaderText = "厂家";
     this.dataGridTextBoxColumn4.ReadOnly   = true;
     this.dataGridTextBoxColumn4.Width      = 75;
     //
     // dataGridTextBoxColumn6
     //
     this.dataGridTextBoxColumn6.Format     = "";
     this.dataGridTextBoxColumn6.FormatInfo = null;
     this.dataGridTextBoxColumn6.HeaderText = "批发价";
     this.dataGridTextBoxColumn6.ReadOnly   = true;
     this.dataGridTextBoxColumn6.Width      = 0;
     //
     // dataGridTextBoxColumn7
     //
     this.dataGridTextBoxColumn7.Format     = "";
     this.dataGridTextBoxColumn7.FormatInfo = null;
     this.dataGridTextBoxColumn7.HeaderText = "零售价";
     this.dataGridTextBoxColumn7.ReadOnly   = true;
     this.dataGridTextBoxColumn7.Width      = 80;
     //
     // dataGridTextBoxColumn12
     //
     this.dataGridTextBoxColumn12.Format     = "";
     this.dataGridTextBoxColumn12.FormatInfo = null;
     this.dataGridTextBoxColumn12.HeaderText = "总销售量";
     this.dataGridTextBoxColumn12.ReadOnly   = true;
     this.dataGridTextBoxColumn12.Width      = 60;
     //
     // dataGridTextBoxColumn13
     //
     this.dataGridTextBoxColumn13.Format     = "";
     this.dataGridTextBoxColumn13.FormatInfo = null;
     this.dataGridTextBoxColumn13.HeaderText = "天数";
     this.dataGridTextBoxColumn13.ReadOnly   = true;
     this.dataGridTextBoxColumn13.Width      = 0;
     //
     // dataGridTextBoxColumn9
     //
     this.dataGridTextBoxColumn9.Format     = "";
     this.dataGridTextBoxColumn9.FormatInfo = null;
     this.dataGridTextBoxColumn9.HeaderText = "平均日销售量";
     this.dataGridTextBoxColumn9.Width      = 80;
     //
     // dataGridTextBoxColumn5
     //
     this.dataGridTextBoxColumn5.Format     = "";
     this.dataGridTextBoxColumn5.FormatInfo = null;
     this.dataGridTextBoxColumn5.HeaderText = "单位";
     this.dataGridTextBoxColumn5.ReadOnly   = true;
     this.dataGridTextBoxColumn5.Width      = 40;
     //
     // dataGridTextBoxColumn8
     //
     this.dataGridTextBoxColumn8.Format     = "";
     this.dataGridTextBoxColumn8.FormatInfo = null;
     this.dataGridTextBoxColumn8.HeaderText = "cjid";
     this.dataGridTextBoxColumn8.ReadOnly   = true;
     this.dataGridTextBoxColumn8.Width      = 0;
     //
     // dataGridTextBoxColumn10
     //
     this.dataGridTextBoxColumn10.Format     = "";
     this.dataGridTextBoxColumn10.FormatInfo = null;
     this.dataGridTextBoxColumn10.HeaderText = "ydwbl";
     this.dataGridTextBoxColumn10.ReadOnly   = true;
     this.dataGridTextBoxColumn10.Width      = 0;
     //
     // dataGridTextBoxColumn11
     //
     this.dataGridTextBoxColumn11.Format     = "";
     this.dataGridTextBoxColumn11.FormatInfo = null;
     this.dataGridTextBoxColumn11.HeaderText = "nypdw";
     this.dataGridTextBoxColumn11.ReadOnly   = true;
     this.dataGridTextBoxColumn11.Width      = 0;
     //
     // dataGridBoolColumn1
     //
     this.dataGridBoolColumn1.AllowNull  = false;
     this.dataGridBoolColumn1.FalseValue = ((short)(0));
     this.dataGridBoolColumn1.HeaderText = "更新";
     this.dataGridBoolColumn1.NullValue  = ((short)(0));
     this.dataGridBoolColumn1.TrueValue  = ((short)(1));
     this.dataGridBoolColumn1.Width      = 40;
     //
     // groupBox2
     //
     this.groupBox2.Controls.Add(this.myDataGrid1);
     this.groupBox2.Dock      = System.Windows.Forms.DockStyle.Fill;
     this.groupBox2.ForeColor = System.Drawing.Color.Navy;
     this.groupBox2.Location  = new System.Drawing.Point(0, 103);
     this.groupBox2.Name      = "groupBox2";
     this.groupBox2.Size      = new System.Drawing.Size(824, 429);
     this.groupBox2.TabIndex  = 21;
     this.groupBox2.TabStop   = false;
     //
     // Frmkcsxx1
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(8, 18);
     this.ClientSize        = new System.Drawing.Size(824, 573);
     this.Controls.Add(this.groupBox2);
     this.Controls.Add(this.groupBox1);
     this.Controls.Add(this.panel1);
     this.Name          = "Frmkcsxx1";
     this.StartPosition = System.Windows.Forms.FormStartPosition.Manual;
     this.Text          = "更新库存上下限";
     this.Load         += new System.EventHandler(this.Frmkcsxx1_Load);
     this.Closed       += new System.EventHandler(this.Frmkcsxx1_Closed);
     this.panel1.ResumeLayout(false);
     this.groupBox1.ResumeLayout(false);
     this.groupBox1.PerformLayout();
     ((System.ComponentModel.ISupportInitialize)(this.myDataGrid1)).EndInit();
     this.groupBox2.ResumeLayout(false);
     this.ResumeLayout(false);
 }
Exemplo n.º 54
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.replaceButton          = new System.Windows.Forms.Button();
     this.redirectCheckBox       = new System.Windows.Forms.CheckBox();
     this.regexCheckBox          = new System.Windows.Forms.CheckBox();
     this.optionsGroupBox        = new System.Windows.Forms.GroupBox();
     this.stringsCheckBox        = new System.Windows.Forms.CheckBox();
     this.commentsCheckBox       = new System.Windows.Forms.CheckBox();
     this.escapedCheckBox        = new System.Windows.Forms.CheckBox();
     this.wholeWordCheckBox      = new System.Windows.Forms.CheckBox();
     this.matchCaseCheckBox      = new System.Windows.Forms.CheckBox();
     this.subDirectoriesCheckBox = new System.Windows.Forms.CheckBox();
     this.replaceComboBox        = new System.Windows.Forms.ComboBox();
     this.replaceLabel           = new System.Windows.Forms.Label();
     this.findComboBox           = new System.Windows.Forms.ComboBox();
     this.findLabel         = new System.Windows.Forms.Label();
     this.findButton        = new System.Windows.Forms.Button();
     this.folderComboBox    = new System.Windows.Forms.ComboBox();
     this.folderLabel       = new System.Windows.Forms.Label();
     this.extensionComboBox = new System.Windows.Forms.ComboBox();
     this.extensionLabel    = new System.Windows.Forms.Label();
     this.browseButton      = new System.Windows.Forms.Button();
     this.replacedHeader    = new System.Windows.Forms.ColumnHeader();
     this.cancelButton      = new System.Windows.Forms.Button();
     this.infoLabel         = new System.Windows.Forms.Label();
     this.lineHeader        = new System.Windows.Forms.ColumnHeader();
     this.descHeader        = new System.Windows.Forms.ColumnHeader();
     this.pathHeader        = new System.Windows.Forms.ColumnHeader();
     this.fileHeader        = new System.Windows.Forms.ColumnHeader();
     this.resultsView       = new System.Windows.Forms.ListView();
     this.progressBar       = new System.Windows.Forms.ProgressBar();
     this.closeButton       = new System.Windows.Forms.Button();
     this.optionsGroupBox.SuspendLayout();
     this.SuspendLayout();
     //
     // replaceButton
     //
     this.replaceButton.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.replaceButton.Location  = new System.Drawing.Point(113, 171);
     this.replaceButton.Name      = "replaceButton";
     this.replaceButton.Size      = new System.Drawing.Size(90, 23);
     this.replaceButton.TabIndex  = 8;
     this.replaceButton.Text      = "&Replace";
     this.replaceButton.Click    += new System.EventHandler(this.ReplaceButtonClick);
     //
     // regexCheckBox
     //
     this.regexCheckBox.AutoSize  = true;
     this.regexCheckBox.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.regexCheckBox.Location  = new System.Drawing.Point(12, 85);
     this.regexCheckBox.Name      = "regexCheckBox";
     this.regexCheckBox.Size      = new System.Drawing.Size(132, 18);
     this.regexCheckBox.TabIndex  = 4;
     this.regexCheckBox.Text      = " &Regular expressions";
     //
     // optionsGroupBox
     //
     this.optionsGroupBox.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.optionsGroupBox.Controls.Add(this.stringsCheckBox);
     this.optionsGroupBox.Controls.Add(this.commentsCheckBox);
     this.optionsGroupBox.Controls.Add(this.regexCheckBox);
     this.optionsGroupBox.Controls.Add(this.escapedCheckBox);
     this.optionsGroupBox.Controls.Add(this.wholeWordCheckBox);
     this.optionsGroupBox.Controls.Add(this.matchCaseCheckBox);
     this.optionsGroupBox.Controls.Add(this.subDirectoriesCheckBox);
     this.optionsGroupBox.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.optionsGroupBox.Location  = new System.Drawing.Point(347, 15);
     this.optionsGroupBox.Name      = "optionsGroupBox";
     this.optionsGroupBox.Size      = new System.Drawing.Size(156, 178);
     this.optionsGroupBox.TabIndex  = 6;
     this.optionsGroupBox.TabStop   = false;
     this.optionsGroupBox.Text      = " Options";
     //
     // stringsCheckBox
     //
     this.stringsCheckBox.AutoSize   = true;
     this.stringsCheckBox.Checked    = true;
     this.stringsCheckBox.CheckState = System.Windows.Forms.CheckState.Checked;
     this.stringsCheckBox.FlatStyle  = System.Windows.Forms.FlatStyle.System;
     this.stringsCheckBox.Location   = new System.Drawing.Point(12, 151);
     this.stringsCheckBox.Name       = "stringsCheckBox";
     this.stringsCheckBox.Size       = new System.Drawing.Size(103, 18);
     this.stringsCheckBox.TabIndex   = 7;
     this.stringsCheckBox.Text       = " Look in &strings";
     //
     // commentsCheckBox
     //
     this.commentsCheckBox.AutoSize   = true;
     this.commentsCheckBox.Checked    = true;
     this.commentsCheckBox.CheckState = System.Windows.Forms.CheckState.Checked;
     this.commentsCheckBox.FlatStyle  = System.Windows.Forms.FlatStyle.System;
     this.commentsCheckBox.Location   = new System.Drawing.Point(12, 129);
     this.commentsCheckBox.Name       = "commentsCheckBox";
     this.commentsCheckBox.Size       = new System.Drawing.Size(119, 18);
     this.commentsCheckBox.TabIndex   = 6;
     this.commentsCheckBox.Text       = " Look in &comments";
     //
     // escapedCheckBox
     //
     this.escapedCheckBox.AutoSize  = true;
     this.escapedCheckBox.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.escapedCheckBox.Location  = new System.Drawing.Point(12, 63);
     this.escapedCheckBox.Name      = "escapedCheckBox";
     this.escapedCheckBox.Size      = new System.Drawing.Size(129, 18);
     this.escapedCheckBox.TabIndex  = 3;
     this.escapedCheckBox.Text      = " &Escaped characters";
     //
     // wholeWordCheckBox
     //
     this.wholeWordCheckBox.AutoSize  = true;
     this.wholeWordCheckBox.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.wholeWordCheckBox.Location  = new System.Drawing.Point(12, 19);
     this.wholeWordCheckBox.Name      = "wholeWordCheckBox";
     this.wholeWordCheckBox.Size      = new System.Drawing.Size(92, 18);
     this.wholeWordCheckBox.TabIndex  = 1;
     this.wholeWordCheckBox.Text      = " &Whole word";
     //
     // matchCaseCheckBox
     //
     this.matchCaseCheckBox.AutoSize  = true;
     this.matchCaseCheckBox.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.matchCaseCheckBox.Location  = new System.Drawing.Point(12, 41);
     this.matchCaseCheckBox.Name      = "matchCaseCheckBox";
     this.matchCaseCheckBox.Size      = new System.Drawing.Size(89, 18);
     this.matchCaseCheckBox.TabIndex  = 2;
     this.matchCaseCheckBox.Text      = " Match &case";
     //
     // subDirectoriesCheckBox
     //
     this.subDirectoriesCheckBox.AutoSize   = true;
     this.subDirectoriesCheckBox.Checked    = true;
     this.subDirectoriesCheckBox.CheckState = System.Windows.Forms.CheckState.Checked;
     this.subDirectoriesCheckBox.FlatStyle  = System.Windows.Forms.FlatStyle.System;
     this.subDirectoriesCheckBox.Location   = new System.Drawing.Point(12, 107);
     this.subDirectoriesCheckBox.Name       = "subDirectoriesCheckBox";
     this.subDirectoriesCheckBox.Size       = new System.Drawing.Size(138, 18);
     this.subDirectoriesCheckBox.TabIndex   = 5;
     this.subDirectoriesCheckBox.Text       = " Look in sub&directories";
     //
     // replaceComboBox
     //
     this.replaceComboBox.Anchor    = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right)));
     this.replaceComboBox.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.replaceComboBox.Location  = new System.Drawing.Point(12, 61);
     this.replaceComboBox.Name      = "replaceComboBox";
     this.replaceComboBox.Size      = new System.Drawing.Size(324, 21);
     this.replaceComboBox.TabIndex  = 2;
     //
     // replaceLabel
     //
     this.replaceLabel.AutoSize  = true;
     this.replaceLabel.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.replaceLabel.Location  = new System.Drawing.Point(13, 46);
     this.replaceLabel.Name      = "replaceLabel";
     this.replaceLabel.Size      = new System.Drawing.Size(72, 13);
     this.replaceLabel.TabIndex  = 24;
     this.replaceLabel.Text      = "Replace with:";
     //
     // findComboBox
     //
     this.findComboBox.Anchor    = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right)));
     this.findComboBox.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.findComboBox.Location  = new System.Drawing.Point(12, 22);
     this.findComboBox.Name      = "findComboBox";
     this.findComboBox.Size      = new System.Drawing.Size(324, 21);
     this.findComboBox.TabIndex  = 1;
     //
     // findLabel
     //
     this.findLabel.AutoSize  = true;
     this.findLabel.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.findLabel.Location  = new System.Drawing.Point(13, 7);
     this.findLabel.Name      = "findLabel";
     this.findLabel.Size      = new System.Drawing.Size(58, 13);
     this.findLabel.TabIndex  = 17;
     this.findLabel.Text      = "Find what:";
     //
     // findButton
     //
     this.findButton.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.findButton.Location  = new System.Drawing.Point(11, 171);
     this.findButton.Name      = "findButton";
     this.findButton.Size      = new System.Drawing.Size(90, 23);
     this.findButton.TabIndex  = 7;
     this.findButton.Text      = "&Find";
     this.findButton.Click    += new System.EventHandler(this.FindButtonClick);
     //
     // folderComboBox
     //
     this.folderComboBox.Anchor    = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right)));
     this.folderComboBox.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.folderComboBox.Location  = new System.Drawing.Point(12, 139);
     this.folderComboBox.Name      = "folderComboBox";
     this.folderComboBox.Size      = new System.Drawing.Size(293, 21);
     this.folderComboBox.TabIndex  = 4;
     this.folderComboBox.Text      = "<Project>";
     //
     // folderLabel
     //
     this.folderLabel.AutoSize  = true;
     this.folderLabel.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.folderLabel.Location  = new System.Drawing.Point(13, 124);
     this.folderLabel.Name      = "folderLabel";
     this.folderLabel.Size      = new System.Drawing.Size(60, 13);
     this.folderLabel.TabIndex  = 28;
     this.folderLabel.Text      = "Top folder:";
     //
     // extensionComboBox
     //
     this.extensionComboBox.Anchor    = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right)));
     this.extensionComboBox.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.extensionComboBox.Location  = new System.Drawing.Point(12, 100);
     this.extensionComboBox.Name      = "extensionComboBox";
     this.extensionComboBox.Size      = new System.Drawing.Size(324, 21);
     this.extensionComboBox.TabIndex  = 3;
     this.extensionComboBox.Text      = ".ext";
     //
     // extensionLabel
     //
     this.extensionLabel.AutoSize  = true;
     this.extensionLabel.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.extensionLabel.Location  = new System.Drawing.Point(13, 85);
     this.extensionLabel.Name      = "extensionLabel";
     this.extensionLabel.Size      = new System.Drawing.Size(83, 13);
     this.extensionLabel.TabIndex  = 25;
     this.extensionLabel.Text      = "Extension filter:";
     //
     // browseButton
     //
     this.browseButton.Anchor   = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.browseButton.Location = new System.Drawing.Point(311, 136);
     this.browseButton.Name     = "browseButton";
     this.browseButton.Size     = new System.Drawing.Size(26, 24);
     this.browseButton.TabIndex = 5;
     this.browseButton.Click   += new System.EventHandler(this.BrowseButtonClick);
     //
     // replacedHeader
     //
     this.replacedHeader.Text  = "Replacements";
     this.replacedHeader.Width = 120;
     //
     // cancelButton
     //
     this.cancelButton.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.cancelButton.Location  = new System.Drawing.Point(215, 171);
     this.cancelButton.Name      = "cancelButton";
     this.cancelButton.Size      = new System.Drawing.Size(90, 23);
     this.cancelButton.TabIndex  = 9;
     this.cancelButton.Text      = "Ca&ncel";
     this.cancelButton.Click    += new System.EventHandler(this.CancelButtonClick);
     //
     // infoLabel
     //
     this.infoLabel.AutoSize  = true;
     this.infoLabel.BackColor = System.Drawing.SystemColors.Control;
     this.infoLabel.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.infoLabel.ForeColor = System.Drawing.SystemColors.ControlText;
     this.infoLabel.Location  = new System.Drawing.Point(14, 203);
     this.infoLabel.Name      = "infoLabel";
     this.infoLabel.Size      = new System.Drawing.Size(130, 13);
     this.infoLabel.TabIndex  = 0;
     this.infoLabel.Text      = "No suitable results found.";
     this.infoLabel.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
     //
     // lineHeader
     //
     this.lineHeader.Text  = "Line";
     this.lineHeader.Width = 50;
     //
     // descHeader
     //
     this.descHeader.Text  = "Description";
     this.descHeader.Width = 120;
     //
     // fileHeader
     //
     this.fileHeader.Text  = "File";
     this.fileHeader.Width = 120;
     //
     // pathHeader
     //
     this.pathHeader.Text  = "Path";
     this.pathHeader.Width = 220;
     //
     // resultsView
     //
     this.resultsView.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.resultsView.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
         this.lineHeader,
         this.descHeader,
         this.fileHeader,
         this.pathHeader
     });
     this.resultsView.ShowGroups       = true;
     this.resultsView.LabelWrap        = false;
     this.resultsView.FullRowSelect    = true;
     this.resultsView.GridLines        = true;
     this.resultsView.Location         = new System.Drawing.Point(12, 219);
     this.resultsView.Name             = "resultsView";
     this.resultsView.ShowItemToolTips = true;
     this.resultsView.Size             = new System.Drawing.Size(492, 167);
     this.resultsView.TabIndex         = 11;
     this.resultsView.UseCompatibleStateImageBehavior = false;
     this.resultsView.View         = System.Windows.Forms.View.Details;
     this.resultsView.DoubleClick += new System.EventHandler(this.ResultsViewDoubleClick);
     //
     // progressBar
     //
     this.progressBar.Anchor   = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right)));
     this.progressBar.Location = new System.Drawing.Point(12, 392);
     this.progressBar.Name     = "progressBar";
     this.progressBar.Size     = new System.Drawing.Size(491, 14);
     this.progressBar.TabIndex = 0;
     //
     // closeButton
     //
     this.closeButton.TabStop   = false;
     this.closeButton.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.closeButton.Location  = new System.Drawing.Point(0, 0);
     this.closeButton.Name      = "closeButton";
     this.closeButton.Size      = new System.Drawing.Size(0, 0);
     this.closeButton.TabIndex  = 29;
     this.closeButton.Click    += new System.EventHandler(this.CloseButtonClick);
     //
     // sendCheckBox
     //
     this.redirectCheckBox.Anchor          = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Right)));
     this.redirectCheckBox.AutoSize        = true;
     this.redirectCheckBox.Checked         = true;
     this.redirectCheckBox.CheckState      = System.Windows.Forms.CheckState.Checked;
     this.redirectCheckBox.FlatStyle       = System.Windows.Forms.FlatStyle.System;
     this.redirectCheckBox.Location        = new System.Drawing.Point(273, 201);
     this.redirectCheckBox.Name            = "redirectCheckBox";
     this.redirectCheckBox.RightToLeft     = System.Windows.Forms.RightToLeft.Yes;
     this.redirectCheckBox.Size            = new System.Drawing.Size(230, 25);
     this.redirectCheckBox.TabIndex        = 8;
     this.redirectCheckBox.Text            = " Send results to Results Panel";
     this.redirectCheckBox.CheckedChanged += new EventHandler(this.RedirectCheckBoxCheckChanged);
     //
     // FRInFilesDialog
     //
     this.AcceptButton        = this.findButton;
     this.CancelButton        = this.closeButton;
     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
     this.AutoScaleMode       = System.Windows.Forms.AutoScaleMode.Font;
     this.ClientSize          = new System.Drawing.Size(515, 418);
     this.Controls.Add(this.infoLabel);
     this.Controls.Add(this.cancelButton);
     this.Controls.Add(this.resultsView);
     this.Controls.Add(this.browseButton);
     this.Controls.Add(this.progressBar);
     this.Controls.Add(this.folderComboBox);
     this.Controls.Add(this.folderLabel);
     this.Controls.Add(this.extensionComboBox);
     this.Controls.Add(this.extensionLabel);
     this.Controls.Add(this.replaceButton);
     this.Controls.Add(this.optionsGroupBox);
     this.Controls.Add(this.replaceComboBox);
     this.Controls.Add(this.replaceLabel);
     this.Controls.Add(this.findComboBox);
     this.Controls.Add(this.findLabel);
     this.Controls.Add(this.findButton);
     this.Controls.Add(this.closeButton);
     this.Controls.Add(this.redirectCheckBox);
     this.MaximizeBox     = false;
     this.MinimizeBox     = false;
     this.Name            = "FRInFilesDialog";
     this.ShowIcon        = false;
     this.ShowInTaskbar   = false;
     this.MinimumSize     = new System.Drawing.Size(500, 340);
     this.SizeGripStyle   = System.Windows.Forms.SizeGripStyle.Show;
     this.StartPosition   = System.Windows.Forms.FormStartPosition.CenterParent;
     this.Text            = " Find And Replace In Files";
     this.Load           += new System.EventHandler(this.DialogLoaded);
     this.VisibleChanged += new System.EventHandler(this.VisibleChange);
     this.Closing        += new System.ComponentModel.CancelEventHandler(this.DialogClosing);
     this.optionsGroupBox.ResumeLayout(false);
     this.optionsGroupBox.PerformLayout();
     this.ResumeLayout(false);
     this.PerformLayout();
 }
Exemplo n.º 55
0
 private void InitializeComponent()
 {
     this.label1           = new System.Windows.Forms.Label();
     this.label2           = new System.Windows.Forms.Label();
     this.txtEpochs        = new System.Windows.Forms.TextBox();
     this.label4           = new System.Windows.Forms.Label();
     this.btnStart         = new System.Windows.Forms.Button();
     this.progBar          = new System.Windows.Forms.ProgressBar();
     this.label8           = new System.Windows.Forms.Label();
     this.chkBias          = new System.Windows.Forms.CheckBox();
     this.label9           = new System.Windows.Forms.Label();
     this.lblHiddenNeurons = new System.Windows.Forms.Label();
     this.label3           = new System.Windows.Forms.Label();
     this.label11          = new System.Windows.Forms.Label();
     this.label12          = new System.Windows.Forms.Label();
     this.label13          = new System.Windows.Forms.Label();
     this.label14          = new System.Windows.Forms.Label();
     this.label15          = new System.Windows.Forms.Label();
     this.label16          = new System.Windows.Forms.Label();
     this.chkGrouped       = new System.Windows.Forms.CheckBox();
     this.label5           = new System.Windows.Forms.Label();
     this.SuspendLayout();
     //
     // label1
     //
     this.label1.Font      = new System.Drawing.Font("Tahoma", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
     this.label1.Location  = new System.Drawing.Point(0, 0);
     this.label1.Name      = "label1";
     this.label1.Size      = new System.Drawing.Size(536, 32);
     this.label1.TabIndex  = 0;
     this.label1.Text      = "Neural Network Training: Multi Logic Operators";
     this.label1.TextAlign = System.Drawing.ContentAlignment.BottomCenter;
     //
     // label2
     //
     this.label2.Location = new System.Drawing.Point(16, 64);
     this.label2.Name     = "label2";
     this.label2.Size     = new System.Drawing.Size(104, 16);
     this.label2.TabIndex = 1;
     this.label2.Text     = "Epochs:";
     //
     // txtEpochs
     //
     this.txtEpochs.Location     = new System.Drawing.Point(16, 80);
     this.txtEpochs.Name         = "txtEpochs";
     this.txtEpochs.Size         = new System.Drawing.Size(104, 21);
     this.txtEpochs.TabIndex     = 2;
     this.txtEpochs.Text         = "100";
     this.txtEpochs.TextChanged += new System.EventHandler(this.txtEpochs_TextChanged);
     //
     // label4
     //
     this.label4.BackColor = System.Drawing.Color.Red;
     this.label4.Location  = new System.Drawing.Point(160, 131);
     this.label4.Name      = "label4";
     this.label4.Size      = new System.Drawing.Size(45, 13);
     this.label4.TabIndex  = 41;
     this.label4.Text      = "X= -5";
     this.label4.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
     //
     // btnStart
     //
     this.btnStart.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.btnStart.Location  = new System.Drawing.Point(136, 80);
     this.btnStart.Name      = "btnStart";
     this.btnStart.Size      = new System.Drawing.Size(384, 24);
     this.btnStart.TabIndex  = 42;
     this.btnStart.Text      = "Start";
     this.btnStart.Click    += new System.EventHandler(this.btnStart_Click);
     //
     // progBar
     //
     this.progBar.Location = new System.Drawing.Point(16, 376);
     this.progBar.Name     = "progBar";
     this.progBar.Size     = new System.Drawing.Size(504, 16);
     this.progBar.TabIndex = 43;
     //
     // label8
     //
     this.label8.ForeColor = System.Drawing.SystemColors.ControlDarkDark;
     this.label8.Location  = new System.Drawing.Point(16, 392);
     this.label8.Name      = "label8";
     this.label8.Size      = new System.Drawing.Size(504, 16);
     this.label8.TabIndex  = 45;
     this.label8.Text      = "GPL Copyleft © 2006 Christoph Rüegg, http://www.cdrnet.net/projects/neuro/";
     this.label8.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
     //
     // chkBias
     //
     this.chkBias.Checked         = true;
     this.chkBias.CheckState      = System.Windows.Forms.CheckState.Checked;
     this.chkBias.FlatStyle       = System.Windows.Forms.FlatStyle.System;
     this.chkBias.Location        = new System.Drawing.Point(136, 56);
     this.chkBias.Name            = "chkBias";
     this.chkBias.Size            = new System.Drawing.Size(16, 16);
     this.chkBias.TabIndex        = 48;
     this.chkBias.CheckedChanged += new System.EventHandler(this.chkBias_CheckedChanged);
     //
     // label9
     //
     this.label9.Location  = new System.Drawing.Point(152, 56);
     this.label9.Name      = "label9";
     this.label9.Size      = new System.Drawing.Size(64, 16);
     this.label9.TabIndex  = 1;
     this.label9.Text      = "Bias Neuron";
     this.label9.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
     //
     // lblHiddenNeurons
     //
     this.lblHiddenNeurons.Location  = new System.Drawing.Point(368, 56);
     this.lblHiddenNeurons.Name      = "lblHiddenNeurons";
     this.lblHiddenNeurons.Size      = new System.Drawing.Size(152, 16);
     this.lblHiddenNeurons.TabIndex  = 1;
     this.lblHiddenNeurons.Text      = "Hidden Neurons: 64 (4x16)";
     this.lblHiddenNeurons.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // label3
     //
     this.label3.BackColor = System.Drawing.Color.Red;
     this.label3.Location  = new System.Drawing.Point(205, 131);
     this.label3.Name      = "label3";
     this.label3.Size      = new System.Drawing.Size(45, 13);
     this.label3.TabIndex  = 41;
     this.label3.Text      = "Y= -5";
     this.label3.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
     //
     // label11
     //
     this.label11.BackColor = System.Drawing.Color.Lime;
     this.label11.Location  = new System.Drawing.Point(295, 131);
     this.label11.Name      = "label11";
     this.label11.Size      = new System.Drawing.Size(45, 13);
     this.label11.TabIndex  = 41;
     this.label11.Text      = "Y= 5";
     this.label11.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
     //
     // label12
     //
     this.label12.BackColor = System.Drawing.Color.Red;
     this.label12.Location  = new System.Drawing.Point(250, 131);
     this.label12.Name      = "label12";
     this.label12.Size      = new System.Drawing.Size(45, 13);
     this.label12.TabIndex  = 41;
     this.label12.Text      = "X= -5";
     this.label12.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
     //
     // label13
     //
     this.label13.BackColor = System.Drawing.Color.Red;
     this.label13.Location  = new System.Drawing.Point(385, 131);
     this.label13.Name      = "label13";
     this.label13.Size      = new System.Drawing.Size(45, 13);
     this.label13.TabIndex  = 41;
     this.label13.Text      = "Y= -5";
     this.label13.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
     //
     // label14
     //
     this.label14.BackColor = System.Drawing.Color.Lime;
     this.label14.Location  = new System.Drawing.Point(340, 131);
     this.label14.Name      = "label14";
     this.label14.Size      = new System.Drawing.Size(45, 13);
     this.label14.TabIndex  = 41;
     this.label14.Text      = "X= 5";
     this.label14.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
     //
     // label15
     //
     this.label15.BackColor = System.Drawing.Color.Lime;
     this.label15.Location  = new System.Drawing.Point(475, 131);
     this.label15.Name      = "label15";
     this.label15.Size      = new System.Drawing.Size(45, 13);
     this.label15.TabIndex  = 41;
     this.label15.Text      = "Y= 5";
     this.label15.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
     //
     // label16
     //
     this.label16.BackColor = System.Drawing.Color.Lime;
     this.label16.Location  = new System.Drawing.Point(430, 131);
     this.label16.Name      = "label16";
     this.label16.Size      = new System.Drawing.Size(45, 13);
     this.label16.TabIndex  = 41;
     this.label16.Text      = "X= 5";
     this.label16.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
     //
     // chkGrouped
     //
     this.chkGrouped.FlatStyle       = System.Windows.Forms.FlatStyle.System;
     this.chkGrouped.Location        = new System.Drawing.Point(232, 56);
     this.chkGrouped.Name            = "chkGrouped";
     this.chkGrouped.Size            = new System.Drawing.Size(16, 16);
     this.chkGrouped.TabIndex        = 48;
     this.chkGrouped.CheckedChanged += new System.EventHandler(this.chkGrouped_CheckedChanged);
     //
     // label5
     //
     this.label5.Location  = new System.Drawing.Point(248, 56);
     this.label5.Name      = "label5";
     this.label5.Size      = new System.Drawing.Size(120, 16);
     this.label5.TabIndex  = 1;
     this.label5.Text      = "Grouped Hidden Layer";
     this.label5.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
     //
     // Form1
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 14);
     this.ClientSize        = new System.Drawing.Size(530, 421);
     this.Controls.Add(this.chkBias);
     this.Controls.Add(this.label8);
     this.Controls.Add(this.progBar);
     this.Controls.Add(this.btnStart);
     this.Controls.Add(this.txtEpochs);
     this.Controls.Add(this.label4);
     this.Controls.Add(this.label2);
     this.Controls.Add(this.label1);
     this.Controls.Add(this.label9);
     this.Controls.Add(this.lblHiddenNeurons);
     this.Controls.Add(this.label3);
     this.Controls.Add(this.label11);
     this.Controls.Add(this.label12);
     this.Controls.Add(this.label13);
     this.Controls.Add(this.label14);
     this.Controls.Add(this.label15);
     this.Controls.Add(this.label16);
     this.Controls.Add(this.chkGrouped);
     this.Controls.Add(this.label5);
     this.Font            = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
     this.MaximizeBox     = false;
     this.Name            = "Form1";
     this.Text            = "NeuroBox Demo - Multi Logic Operators";
     this.ResumeLayout(false);
 }
Exemplo n.º 56
0
 private void InitializeComponent()
 {
     this.cancelAsyncButton = new System.Windows.Forms.Button();
     this.resultLabel       = new System.Windows.Forms.Label();
     this.progressBar1      = new System.Windows.Forms.ProgressBar();
     this.progressBar2      = new System.Windows.Forms.ProgressBar();
     this.backgroundWorker1 = new System.ComponentModel.BackgroundWorker();
     this.SuspendLayout();
     this.StartPosition   = FormStartPosition.CenterParent;
     this.FormBorderStyle = FormBorderStyle.FixedDialog;
     this.MaximizeBox     = false;
     this.MinimizeBox     = false;
     //
     // cancelAsyncButton
     //
     this.cancelAsyncButton.Enabled  = false;
     this.cancelAsyncButton.Location = new System.Drawing.Point(18, 72);
     this.cancelAsyncButton.Name     = "cancelAsyncButton";
     this.cancelAsyncButton.Size     = new System.Drawing.Size(256, 23);
     this.cancelAsyncButton.TabIndex = 2;
     this.cancelAsyncButton.Text     = "Cancel time consuming process";
     this.cancelAsyncButton.Click   += new System.EventHandler(this.cancelAsyncButton_Click);
     //
     // resultLabel
     //
     this.resultLabel.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
     this.resultLabel.Location    = new System.Drawing.Point(18, 8);
     this.resultLabel.Name        = "resultLabel";
     this.resultLabel.Size        = new System.Drawing.Size(256, 23);
     this.resultLabel.TabIndex    = 3;
     this.resultLabel.Text        = "(no result)";
     this.resultLabel.TextAlign   = System.Drawing.ContentAlignment.MiddleCenter;
     //
     // progressBar1
     //
     this.progressBar1.Location = new System.Drawing.Point(18, 40);
     this.progressBar1.Name     = "progressBar1";
     this.progressBar1.Size     = new System.Drawing.Size(256, 8);
     this.progressBar1.Step     = 2;
     this.progressBar1.TabIndex = 4;
     //
     // progressBar1
     //
     this.progressBar2.Location = new System.Drawing.Point(18, 58);
     this.progressBar2.Name     = "progressBar2";
     this.progressBar2.Size     = new System.Drawing.Size(256, 8);
     this.progressBar2.Step     = 2;
     this.progressBar2.TabIndex = 4;
     //
     // backgroundWorker1
     //
     this.backgroundWorker1.WorkerReportsProgress      = true;
     this.backgroundWorker1.WorkerSupportsCancellation = true;
     //
     // FibonacciForm
     //
     this.ClientSize = new System.Drawing.Size(292, 118);
     this.Controls.Add(this.progressBar1);
     this.Controls.Add(this.progressBar2);
     this.Controls.Add(this.resultLabel);
     this.Controls.Add(this.cancelAsyncButton);
     this.Name = "GraphicWorker";
     this.Text = "Process graphic objects";
     this.ResumeLayout(false);
 }
Exemplo n.º 57
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();
     this.panel3     = new System.Windows.Forms.Panel();
     this.label5     = new System.Windows.Forms.Label();
     this.panel1     = new System.Windows.Forms.Panel();
     this.panel4     = new System.Windows.Forms.Panel();
     this.err        = new System.Windows.Forms.TextBox();
     this.tm         = new System.Windows.Forms.Label();
     this.panel9     = new System.Windows.Forms.Panel();
     this.panel8     = new System.Windows.Forms.Panel();
     this.c4         = new System.Windows.Forms.Label();
     this.label6     = new System.Windows.Forms.Label();
     this.c2         = new System.Windows.Forms.Label();
     this.pro3       = new System.Windows.Forms.ProgressBar();
     this.pro4       = new System.Windows.Forms.ProgressBar();
     this.panel7     = new System.Windows.Forms.Panel();
     this.panel6     = new System.Windows.Forms.Panel();
     this.c3         = new System.Windows.Forms.Label();
     this.label4     = new System.Windows.Forms.Label();
     this.c1         = new System.Windows.Forms.Label();
     this.pro1       = new System.Windows.Forms.ProgressBar();
     this.pro2       = new System.Windows.Forms.ProgressBar();
     this.panel5     = new System.Windows.Forms.Panel();
     this.panel2     = new System.Windows.Forms.Panel();
     this.cmd_for    = new System.Windows.Forms.Button();
     this.dt2        = new C1.Win.C1Input.C1DateEdit();
     this.dt1        = new C1.Win.C1Input.C1DateEdit();
     this.label1     = new System.Windows.Forms.Label();
     this.cmd_close  = new System.Windows.Forms.Button();
     this.cmd_att    = new System.Windows.Forms.Button();
     this.control1   = new GP8000.UserControl.CrtTaCondition1();
     this.label3     = new System.Windows.Forms.Label();
     this.label2     = new System.Windows.Forms.Label();
     this.timer1     = new System.Windows.Forms.Timer(this.components);
     this.panel3.SuspendLayout();
     this.panel1.SuspendLayout();
     this.panel4.SuspendLayout();
     this.panel8.SuspendLayout();
     this.panel6.SuspendLayout();
     this.panel2.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.dt2)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.dt1)).BeginInit();
     this.SuspendLayout();
     //
     // panel3
     //
     this.panel3.BackColor = System.Drawing.Color.FromArgb(((System.Byte)(255)), ((System.Byte)(255)), ((System.Byte)(192)));
     this.panel3.Controls.Add(this.label5);
     this.panel3.Dock     = System.Windows.Forms.DockStyle.Top;
     this.panel3.Location = new System.Drawing.Point(0, 0);
     this.panel3.Name     = "panel3";
     this.panel3.Size     = new System.Drawing.Size(1156, 36);
     this.panel3.TabIndex = 13;
     //
     // label5
     //
     this.label5.BackColor = System.Drawing.Color.FromArgb(((System.Byte)(255)), ((System.Byte)(255)), ((System.Byte)(192)));
     this.label5.Dock      = System.Windows.Forms.DockStyle.Fill;
     this.label5.Font      = new System.Drawing.Font("Tahoma", 15.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
     this.label5.ForeColor = System.Drawing.SystemColors.ActiveCaption;
     this.label5.Location  = new System.Drawing.Point(0, 0);
     this.label5.Name      = "label5";
     this.label5.Size      = new System.Drawing.Size(1156, 36);
     this.label5.TabIndex  = 11;
     this.label5.Tag       = "";
     this.label5.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
     //
     // panel1
     //
     this.panel1.Controls.Add(this.panel4);
     this.panel1.Controls.Add(this.panel5);
     this.panel1.Controls.Add(this.panel2);
     this.panel1.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.panel1.Location = new System.Drawing.Point(0, 36);
     this.panel1.Name     = "panel1";
     this.panel1.Size     = new System.Drawing.Size(1156, 670);
     this.panel1.TabIndex = 14;
     //
     // panel4
     //
     this.panel4.Controls.Add(this.err);
     this.panel4.Controls.Add(this.tm);
     this.panel4.Controls.Add(this.panel9);
     this.panel4.Controls.Add(this.panel8);
     this.panel4.Controls.Add(this.panel7);
     this.panel4.Controls.Add(this.panel6);
     this.panel4.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.panel4.Location = new System.Drawing.Point(0, 180);
     this.panel4.Name     = "panel4";
     this.panel4.Size     = new System.Drawing.Size(1156, 490);
     this.panel4.TabIndex = 9;
     this.panel4.Paint   += new System.Windows.Forms.PaintEventHandler(this.panel4_Paint);
     //
     // err
     //
     this.err.BackColor   = System.Drawing.Color.LightSteelBlue;
     this.err.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
     this.err.Dock        = System.Windows.Forms.DockStyle.Bottom;
     this.err.Location    = new System.Drawing.Point(0, 280);
     this.err.Multiline   = true;
     this.err.Name        = "err";
     this.err.ReadOnly    = true;
     this.err.Size        = new System.Drawing.Size(1156, 210);
     this.err.TabIndex    = 15;
     this.err.Text        = "";
     this.err.Visible     = false;
     //
     // tm
     //
     this.tm.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                                                            | System.Windows.Forms.AnchorStyles.Right)));
     this.tm.BackColor = System.Drawing.Color.Black;
     this.tm.Font      = new System.Drawing.Font("Tahoma", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
     this.tm.ForeColor = System.Drawing.Color.Red;
     this.tm.Location  = new System.Drawing.Point(0, 220);
     this.tm.Name      = "tm";
     this.tm.Size      = new System.Drawing.Size(1156, 24);
     this.tm.TabIndex  = 14;
     this.tm.Tag       = "N";
     this.tm.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
     //
     // panel9
     //
     this.panel9.BackColor = System.Drawing.Color.CornflowerBlue;
     this.panel9.Dock      = System.Windows.Forms.DockStyle.Top;
     this.panel9.Location  = new System.Drawing.Point(0, 212);
     this.panel9.Name      = "panel9";
     this.panel9.Size      = new System.Drawing.Size(1156, 4);
     this.panel9.TabIndex  = 12;
     //
     // panel8
     //
     this.panel8.Controls.Add(this.c4);
     this.panel8.Controls.Add(this.label6);
     this.panel8.Controls.Add(this.c2);
     this.panel8.Controls.Add(this.pro3);
     this.panel8.Controls.Add(this.pro4);
     this.panel8.Dock     = System.Windows.Forms.DockStyle.Top;
     this.panel8.Location = new System.Drawing.Point(0, 108);
     this.panel8.Name     = "panel8";
     this.panel8.Size     = new System.Drawing.Size(1156, 104);
     this.panel8.TabIndex = 11;
     //
     // c4
     //
     this.c4.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                                                            | System.Windows.Forms.AnchorStyles.Right)));
     this.c4.BackColor = System.Drawing.Color.Black;
     this.c4.Font      = new System.Drawing.Font("Tahoma", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
     this.c4.ForeColor = System.Drawing.Color.White;
     this.c4.Location  = new System.Drawing.Point(0, 76);
     this.c4.Name      = "c4";
     this.c4.Size      = new System.Drawing.Size(1156, 24);
     this.c4.TabIndex  = 13;
     this.c4.Tag       = "N";
     this.c4.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
     //
     // label6
     //
     this.label6.BackColor = System.Drawing.Color.FromArgb(((System.Byte)(255)), ((System.Byte)(255)), ((System.Byte)(192)));
     this.label6.Dock      = System.Windows.Forms.DockStyle.Top;
     this.label6.Font      = new System.Drawing.Font("Tahoma", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
     this.label6.ForeColor = System.Drawing.Color.RoyalBlue;
     this.label6.Location  = new System.Drawing.Point(0, 0);
     this.label6.Name      = "label6";
     this.label6.Size      = new System.Drawing.Size(1156, 23);
     this.label6.TabIndex  = 9;
     this.label6.Text      = "label6";
     this.label6.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
     //
     // c2
     //
     this.c2.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                                                            | System.Windows.Forms.AnchorStyles.Right)));
     this.c2.BackColor = System.Drawing.Color.Black;
     this.c2.Font      = new System.Drawing.Font("Tahoma", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
     this.c2.ForeColor = System.Drawing.Color.White;
     this.c2.Location  = new System.Drawing.Point(0, 54);
     this.c2.Name      = "c2";
     this.c2.Size      = new System.Drawing.Size(1156, 24);
     this.c2.TabIndex  = 12;
     this.c2.Tag       = "N";
     this.c2.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
     //
     // pro3
     //
     this.pro3.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                                                              | System.Windows.Forms.AnchorStyles.Right)));
     this.pro3.Location = new System.Drawing.Point(4, 22);
     this.pro3.Name     = "pro3";
     this.pro3.Size     = new System.Drawing.Size(1148, 16);
     this.pro3.TabIndex = 10;
     //
     // pro4
     //
     this.pro4.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                                                              | System.Windows.Forms.AnchorStyles.Right)));
     this.pro4.Location = new System.Drawing.Point(4, 38);
     this.pro4.Name     = "pro4";
     this.pro4.Size     = new System.Drawing.Size(1148, 16);
     this.pro4.TabIndex = 11;
     //
     // panel7
     //
     this.panel7.BackColor = System.Drawing.Color.CornflowerBlue;
     this.panel7.Dock      = System.Windows.Forms.DockStyle.Top;
     this.panel7.Location  = new System.Drawing.Point(0, 104);
     this.panel7.Name      = "panel7";
     this.panel7.Size      = new System.Drawing.Size(1156, 4);
     this.panel7.TabIndex  = 10;
     //
     // panel6
     //
     this.panel6.Controls.Add(this.c3);
     this.panel6.Controls.Add(this.label4);
     this.panel6.Controls.Add(this.c1);
     this.panel6.Controls.Add(this.pro1);
     this.panel6.Controls.Add(this.pro2);
     this.panel6.Dock     = System.Windows.Forms.DockStyle.Top;
     this.panel6.Location = new System.Drawing.Point(0, 0);
     this.panel6.Name     = "panel6";
     this.panel6.Size     = new System.Drawing.Size(1156, 104);
     this.panel6.TabIndex = 9;
     //
     // c3
     //
     this.c3.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                                                            | System.Windows.Forms.AnchorStyles.Right)));
     this.c3.BackColor = System.Drawing.Color.Black;
     this.c3.Font      = new System.Drawing.Font("Tahoma", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
     this.c3.ForeColor = System.Drawing.Color.White;
     this.c3.Location  = new System.Drawing.Point(0, 80);
     this.c3.Name      = "c3";
     this.c3.Size      = new System.Drawing.Size(1156, 24);
     this.c3.TabIndex  = 9;
     this.c3.Tag       = "N";
     this.c3.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
     //
     // label4
     //
     this.label4.BackColor = System.Drawing.Color.FromArgb(((System.Byte)(255)), ((System.Byte)(255)), ((System.Byte)(192)));
     this.label4.Dock      = System.Windows.Forms.DockStyle.Top;
     this.label4.Font      = new System.Drawing.Font("Tahoma", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
     this.label4.ForeColor = System.Drawing.Color.RoyalBlue;
     this.label4.Location  = new System.Drawing.Point(0, 0);
     this.label4.Name      = "label4";
     this.label4.Size      = new System.Drawing.Size(1156, 23);
     this.label4.TabIndex  = 0;
     this.label4.Text      = "label4";
     this.label4.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
     //
     // c1
     //
     this.c1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                                                            | System.Windows.Forms.AnchorStyles.Right)));
     this.c1.BackColor = System.Drawing.Color.Black;
     this.c1.Font      = new System.Drawing.Font("Tahoma", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
     this.c1.ForeColor = System.Drawing.Color.White;
     this.c1.Location  = new System.Drawing.Point(0, 56);
     this.c1.Name      = "c1";
     this.c1.Size      = new System.Drawing.Size(1156, 24);
     this.c1.TabIndex  = 8;
     this.c1.Tag       = "N";
     this.c1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
     //
     // pro1
     //
     this.pro1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                                                              | System.Windows.Forms.AnchorStyles.Right)));
     this.pro1.Location = new System.Drawing.Point(4, 24);
     this.pro1.Name     = "pro1";
     this.pro1.Size     = new System.Drawing.Size(1148, 16);
     this.pro1.TabIndex = 2;
     //
     // pro2
     //
     this.pro2.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                                                              | System.Windows.Forms.AnchorStyles.Right)));
     this.pro2.Location = new System.Drawing.Point(4, 40);
     this.pro2.Name     = "pro2";
     this.pro2.Size     = new System.Drawing.Size(1148, 16);
     this.pro2.TabIndex = 3;
     //
     // panel5
     //
     this.panel5.BackColor = System.Drawing.Color.CornflowerBlue;
     this.panel5.Dock      = System.Windows.Forms.DockStyle.Top;
     this.panel5.Location  = new System.Drawing.Point(0, 176);
     this.panel5.Name      = "panel5";
     this.panel5.Size      = new System.Drawing.Size(1156, 4);
     this.panel5.TabIndex  = 1;
     //
     // panel2
     //
     this.panel2.Controls.Add(this.cmd_for);
     this.panel2.Controls.Add(this.dt2);
     this.panel2.Controls.Add(this.dt1);
     this.panel2.Controls.Add(this.label1);
     this.panel2.Controls.Add(this.cmd_close);
     this.panel2.Controls.Add(this.cmd_att);
     this.panel2.Controls.Add(this.control1);
     this.panel2.Controls.Add(this.label3);
     this.panel2.Controls.Add(this.label2);
     this.panel2.Dock     = System.Windows.Forms.DockStyle.Top;
     this.panel2.Location = new System.Drawing.Point(0, 0);
     this.panel2.Name     = "panel2";
     this.panel2.Size     = new System.Drawing.Size(1156, 176);
     this.panel2.TabIndex = 0;
     //
     // cmd_for
     //
     this.cmd_for.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.cmd_for.Location  = new System.Drawing.Point(688, 68);
     this.cmd_for.Name      = "cmd_for";
     this.cmd_for.Size      = new System.Drawing.Size(136, 40);
     this.cmd_for.TabIndex  = 155;
     this.cmd_for.Text      = "button1";
     this.cmd_for.Visible   = false;
     this.cmd_for.Click    += new System.EventHandler(this.cmd_for_Click);
     //
     // dt2
     //
     this.dt2.FormatType = C1.Win.C1Input.FormatTypeEnum.CustomFormat;
     this.dt2.Location   = new System.Drawing.Point(536, 44);
     this.dt2.Name       = "dt2";
     this.dt2.Size       = new System.Drawing.Size(132, 23);
     this.dt2.TabIndex   = 150;
     this.dt2.Tag        = null;
     //
     // dt1
     //
     this.dt1.FormatType = C1.Win.C1Input.FormatTypeEnum.CustomFormat;
     this.dt1.Location   = new System.Drawing.Point(536, 16);
     this.dt1.Name       = "dt1";
     this.dt1.Size       = new System.Drawing.Size(132, 23);
     this.dt1.TabIndex   = 149;
     this.dt1.Tag        = null;
     //
     // label1
     //
     this.label1.Location = new System.Drawing.Point(452, 20);
     this.label1.Name     = "label1";
     this.label1.TabIndex = 1;
     this.label1.Text     = "label1";
     //
     // cmd_close
     //
     this.cmd_close.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.cmd_close.Location  = new System.Drawing.Point(688, 120);
     this.cmd_close.Name      = "cmd_close";
     this.cmd_close.Size      = new System.Drawing.Size(136, 40);
     this.cmd_close.TabIndex  = 154;
     this.cmd_close.Text      = "button3";
     this.cmd_close.Click    += new System.EventHandler(this.cmd_close_Click);
     //
     // cmd_att
     //
     this.cmd_att.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.cmd_att.Location  = new System.Drawing.Point(688, 16);
     this.cmd_att.Name      = "cmd_att";
     this.cmd_att.Size      = new System.Drawing.Size(136, 40);
     this.cmd_att.TabIndex  = 152;
     this.cmd_att.Text      = "button1";
     this.cmd_att.Click    += new System.EventHandler(this.cmd_att_Click);
     //
     // control1
     //
     this.control1.Font     = new System.Drawing.Font("Tahoma", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
     this.control1.Location = new System.Drawing.Point(0, 4);
     this.control1.Name     = "control1";
     this.control1.Size     = new System.Drawing.Size(444, 164);
     this.control1.TabIndex = 0;
     //
     // label3
     //
     this.label3.BackColor = System.Drawing.SystemColors.Control;
     this.label3.Location  = new System.Drawing.Point(512, 92);
     this.label3.Name      = "label3";
     this.label3.Size      = new System.Drawing.Size(32, 23);
     this.label3.TabIndex  = 156;
     this.label3.Tag       = "N";
     this.label3.Text      = "->>";
     this.label3.Visible   = false;
     //
     // label2
     //
     this.label2.Location = new System.Drawing.Point(452, 48);
     this.label2.Name     = "label2";
     this.label2.TabIndex = 151;
     this.label2.Text     = "label2";
     //
     // timer1
     //
     this.timer1.Interval = 1000;
     this.timer1.Tick    += new System.EventHandler(this.timer1_Tick);
     //
     // frmTaMealCalculate
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(6, 16);
     this.ClientSize        = new System.Drawing.Size(1156, 706);
     this.Controls.Add(this.panel1);
     this.Controls.Add(this.panel3);
     this.Font    = new System.Drawing.Font("Tahoma", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
     this.Name    = "frmTaMealCalculate";
     this.Text    = "frmTaMealCalculate";
     this.Load   += new System.EventHandler(this.frmTaMealCalculate_Load);
     this.Closed += new System.EventHandler(this.frmTaMealCalculate_Closed_1);
     this.panel3.ResumeLayout(false);
     this.panel1.ResumeLayout(false);
     this.panel4.ResumeLayout(false);
     this.panel8.ResumeLayout(false);
     this.panel6.ResumeLayout(false);
     this.panel2.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.dt2)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.dt1)).EndInit();
     this.ResumeLayout(false);
 }
Exemplo n.º 58
0
        public GameFrame()
        {
            InitializeComponent();

            this.BackgroundImage = Helper.LoadBmp("BackGround"); // 背景图


            //
            // strength_bar
            //
            strength_bar          = new System.Windows.Forms.ProgressBar();
            strength_bar.Location = new System.Drawing.Point(600, 30);
            strength_bar.Name     = "strength_bar";
            strength_bar.Size     = new System.Drawing.Size(321, 23);
            strength_bar.TabIndex = 0;
            strength_bar.Visible  = false;
            Controls.Add(strength_bar);

            name.MakeTransparent(Color.Transparent);
            start_button.MakeTransparent(Color.Transparent);

            //static Point tab_ll = new Point(255, 155);
            //static Point tab_ur = new Point(1330, 700);
            bags.Add(new Line(new Point(Ball.tab_ll.X - 5, Ball.tab_ll.Y), new Point(Ball.tab_ll.X - 5, Ball.tab_ll.Y + 30))); //左
            bags.Add(new Line(new Point(Ball.tab_ll.X - 5, Ball.tab_ur.Y - 30), new Point(Ball.tab_ll.X - 5, Ball.tab_ur.Y)));

            bags.Add(new Line(new Point(Ball.tab_ll.X - 5, Ball.tab_ur.Y), new Point(Ball.tab_ll.X + 30, Ball.tab_ur.Y))); //下
            bags.Add(new Line(new Point(Ball.tab_ll.X + 525, Ball.tab_ur.Y), new Point(Ball.tab_ll.X + 575, Ball.tab_ur.Y)));
            bags.Add(new Line(new Point(Ball.tab_ur.X - 30, Ball.tab_ur.Y), new Point(Ball.tab_ur.X, Ball.tab_ur.Y)));

            bags.Add(new Line(new Point(Ball.tab_ur.X, Ball.tab_ur.Y - 30), new Point(Ball.tab_ur.X, Ball.tab_ur.Y)));
            bags.Add(new Line(new Point(Ball.tab_ur.X, Ball.tab_ll.Y), new Point(Ball.tab_ur.X, Ball.tab_ll.Y + 30))); //右

            bags.Add(new Line(new Point(Ball.tab_ur.X, Ball.tab_ll.Y), new Point(Ball.tab_ur.X - 30, Ball.tab_ll.Y))); //上
            bags.Add(new Line(new Point(Ball.tab_ll.X + 525, Ball.tab_ll.Y), new Point(Ball.tab_ll.X + 575, Ball.tab_ll.Y)));
            bags.Add(new Line(new Point(Ball.tab_ll.X + 25, Ball.tab_ll.Y), new Point(Ball.tab_ll.X - 5, Ball.tab_ll.Y)));


            //Helper.SoundEffect("Hit04");


            Timer refresh_current_ball_timer = new Timer();                             //新建一个Timer对象

            refresh_current_ball_timer.Interval = 1;                                    //设定多少秒后行动,单位是毫秒
            refresh_current_ball_timer.Tick    += new EventHandler(this.timer_handler); //到时所有执行的动作
            refresh_current_ball_timer.Start();                                         //启动计时

            Ball.set_interval(0.01);


            /* 1. 进入游戏首先显示开始界面
             * 包括:背景图,开始游戏按钮,高分
             *
             * 2. 点击进入游戏关闭开始界面的东西,开始游戏
             *
             * 游戏中:
             * 1. 显示球台
             * 2. 显示多个球
             * 3. 刷新图片
             * */
            //place_line(3);
            place_triangle();
        }
Exemplo n.º 59
0
 /// <summary>
 /// 设计器支持所需的方法 - 不要使用代码编辑器修改
 /// 此方法的内容。
 /// </summary>
 private void InitializeComponent()
 {
     this.components = new System.ComponentModel.Container();
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(UpdateMain));
     this.pictureBox1         = new System.Windows.Forms.PictureBox();
     this.label1              = new System.Windows.Forms.Label();
     this.lvUpdateList        = new System.Windows.Forms.ListView();
     this.chFileName          = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
     this.chVersion           = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
     this.chProgress          = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
     this.pbDownFile          = new System.Windows.Forms.ProgressBar();
     this.lbState             = new System.Windows.Forms.Label();
     this.btnNext             = new System.Windows.Forms.Button();
     this.btnCancel           = new System.Windows.Forms.Button();
     this.btnFinish           = new System.Windows.Forms.Button();
     this.label2              = new System.Windows.Forms.Label();
     this.label5              = new System.Windows.Forms.Label();
     this.linkLabel1          = new System.Windows.Forms.LinkLabel();
     this.label3              = new System.Windows.Forms.Label();
     this.checkBox1           = new System.Windows.Forms.CheckBox();
     this.label4              = new System.Windows.Forms.Label();
     this.label6              = new System.Windows.Forms.Label();
     this.label7              = new System.Windows.Forms.Label();
     this.panel_updateNotes   = new System.Windows.Forms.Panel();
     this.txt_updateNotes     = new System.Windows.Forms.RichTextBox();
     this.btn_showUpdateNotes = new System.Windows.Forms.Button();
     this.toolTip             = new System.Windows.Forms.ToolTip(this.components);
     ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
     this.panel_updateNotes.SuspendLayout();
     this.SuspendLayout();
     //
     // pictureBox1
     //
     this.pictureBox1.Image    = ((System.Drawing.Image)(resources.GetObject("pictureBox1.Image")));
     this.pictureBox1.Location = new System.Drawing.Point(8, 8);
     this.pictureBox1.Name     = "pictureBox1";
     this.pictureBox1.Size     = new System.Drawing.Size(96, 240);
     this.pictureBox1.TabIndex = 1;
     this.pictureBox1.TabStop  = false;
     //
     // label1
     //
     this.label1.Location = new System.Drawing.Point(120, 15);
     this.label1.Name     = "label1";
     this.label1.Size     = new System.Drawing.Size(136, 16);
     this.label1.TabIndex = 9;
     this.label1.Text     = "提示";
     //
     // lvUpdateList
     //
     this.lvUpdateList.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
         this.chFileName,
         this.chVersion,
         this.chProgress
     });
     this.lvUpdateList.Location = new System.Drawing.Point(116, 57);
     this.lvUpdateList.Name     = "lvUpdateList";
     this.lvUpdateList.Size     = new System.Drawing.Size(280, 120);
     this.lvUpdateList.TabIndex = 6;
     this.lvUpdateList.UseCompatibleStateImageBehavior = false;
     this.lvUpdateList.View = System.Windows.Forms.View.Details;
     //
     // chFileName
     //
     this.chFileName.Text  = "组件名称";
     this.chFileName.Width = 125;
     //
     // chVersion
     //
     this.chVersion.Text  = "版本号";
     this.chVersion.Width = 83;
     //
     // chProgress
     //
     this.chProgress.Text  = "进度";
     this.chProgress.Width = 50;
     //
     // pbDownFile
     //
     this.pbDownFile.ForeColor = System.Drawing.Color.Green;
     this.pbDownFile.Location  = new System.Drawing.Point(117, 213);
     this.pbDownFile.Name      = "pbDownFile";
     this.pbDownFile.Size      = new System.Drawing.Size(274, 17);
     this.pbDownFile.TabIndex  = 5;
     //
     // lbState
     //
     this.lbState.Location = new System.Drawing.Point(117, 189);
     this.lbState.Name     = "lbState";
     this.lbState.Size     = new System.Drawing.Size(274, 16);
     this.lbState.TabIndex = 4;
     this.lbState.Text     = "点击“更新”开始升级任务";
     //
     // btnNext
     //
     this.btnNext.Font      = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
     this.btnNext.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(64)))), ((int)(((byte)(0)))));
     this.btnNext.Location  = new System.Drawing.Point(236, 251);
     this.btnNext.Name      = "btnNext";
     this.btnNext.Size      = new System.Drawing.Size(80, 24);
     this.btnNext.TabIndex  = 3;
     this.btnNext.Text      = "更新(&U)";
     this.toolTip.SetToolTip(this.btnNext, "点击进行更新操作");
     this.btnNext.Click += new System.EventHandler(this.btnNext_Click);
     //
     // btnCancel
     //
     this.btnCancel.Font      = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
     this.btnCancel.ForeColor = System.Drawing.Color.Black;
     this.btnCancel.Location  = new System.Drawing.Point(324, 251);
     this.btnCancel.Name      = "btnCancel";
     this.btnCancel.Size      = new System.Drawing.Size(80, 24);
     this.btnCancel.TabIndex  = 4;
     this.btnCancel.Text      = "取消(&C)";
     this.toolTip.SetToolTip(this.btnCancel, "点击取消更新任务");
     this.btnCancel.Click += new System.EventHandler(this.btnCancel_Click);
     //
     // btnFinish
     //
     this.btnFinish.Location = new System.Drawing.Point(148, 251);
     this.btnFinish.Name     = "btnFinish";
     this.btnFinish.Size     = new System.Drawing.Size(80, 24);
     this.btnFinish.TabIndex = 3;
     this.btnFinish.Text     = "完成(&F)";
     this.btnFinish.Click   += new System.EventHandler(this.btnFinish_Click);
     //
     // label2
     //
     this.label2.ForeColor = System.Drawing.Color.Silver;
     this.label2.Location  = new System.Drawing.Point(115, 35);
     this.label2.Name      = "label2";
     this.label2.Size      = new System.Drawing.Size(292, 16);
     this.label2.TabIndex  = 10;
     this.label2.Text      = "--------------------------------------------------";
     //
     // label5
     //
     this.label5.AutoSize  = true;
     this.label5.ForeColor = System.Drawing.SystemColors.ControlDark;
     this.label5.Location  = new System.Drawing.Point(2, 284);
     this.label5.Name      = "label5";
     this.label5.Size      = new System.Drawing.Size(227, 12);
     this.label5.TabIndex  = 14;
     this.label5.Text      = "©广东达元绿洲食品安全科技股份有限公司";
     this.toolTip.SetToolTip(this.label5, "点击打开“食安科技”官网");
     this.label5.Click += new System.EventHandler(this.label5_Click);
     //
     // linkLabel1
     //
     this.linkLabel1.AutoSize = true;
     this.linkLabel1.Location = new System.Drawing.Point(247, 212);
     this.linkLabel1.Name     = "linkLabel1";
     this.linkLabel1.Size     = new System.Drawing.Size(137, 12);
     this.linkLabel1.TabIndex = 15;
     this.linkLabel1.TabStop  = true;
     this.linkLabel1.Text     = "http://www.chinafst.cn";
     //
     // label3
     //
     this.label3.AutoSize = true;
     this.label3.Location = new System.Drawing.Point(186, 102);
     this.label3.Name     = "label3";
     this.label3.Size     = new System.Drawing.Size(113, 12);
     this.label3.TabIndex = 16;
     this.label3.Text     = "已升级到最新版本!";
     //
     // checkBox1
     //
     this.checkBox1.AutoSize   = true;
     this.checkBox1.Checked    = true;
     this.checkBox1.CheckState = System.Windows.Forms.CheckState.Checked;
     this.checkBox1.Location   = new System.Drawing.Point(188, 139);
     this.checkBox1.Name       = "checkBox1";
     this.checkBox1.Size       = new System.Drawing.Size(108, 16);
     this.checkBox1.TabIndex   = 17;
     this.checkBox1.Text       = "立即运行新版本";
     this.checkBox1.UseVisualStyleBackColor = true;
     //
     // label4
     //
     this.label4.AutoSize = true;
     this.label4.Location = new System.Drawing.Point(323, 189);
     this.label4.Name     = "label4";
     this.label4.Size     = new System.Drawing.Size(59, 12);
     this.label4.TabIndex = 18;
     this.label4.Text     = "©食安科技";
     //
     // label6
     //
     this.label6.ForeColor = System.Drawing.Color.Silver;
     this.label6.Location  = new System.Drawing.Point(115, 232);
     this.label6.Name      = "label6";
     this.label6.Size      = new System.Drawing.Size(292, 16);
     this.label6.TabIndex  = 19;
     this.label6.Text      = "-------------------------------------------------";
     //
     // label7
     //
     this.label7.Location = new System.Drawing.Point(167, 134);
     this.label7.Name     = "label7";
     this.label7.Size     = new System.Drawing.Size(165, 16);
     this.label7.TabIndex = 20;
     this.label7.Text     = "正在获取版本信息,请稍等。";
     //
     // panel_updateNotes
     //
     this.panel_updateNotes.Controls.Add(this.txt_updateNotes);
     this.panel_updateNotes.Location = new System.Drawing.Point(115, 51);
     this.panel_updateNotes.Name     = "panel_updateNotes";
     this.panel_updateNotes.Size     = new System.Drawing.Size(284, 126);
     this.panel_updateNotes.TabIndex = 21;
     this.panel_updateNotes.Visible  = false;
     //
     // txt_updateNotes
     //
     this.txt_updateNotes.BackColor   = System.Drawing.SystemColors.ControlLightLight;
     this.txt_updateNotes.BorderStyle = System.Windows.Forms.BorderStyle.None;
     this.txt_updateNotes.Dock        = System.Windows.Forms.DockStyle.Fill;
     this.txt_updateNotes.Font        = new System.Drawing.Font("Consolas", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.txt_updateNotes.ForeColor   = System.Drawing.Color.Green;
     this.txt_updateNotes.Location    = new System.Drawing.Point(0, 0);
     this.txt_updateNotes.Name        = "txt_updateNotes";
     this.txt_updateNotes.ReadOnly    = true;
     this.txt_updateNotes.Size        = new System.Drawing.Size(284, 126);
     this.txt_updateNotes.TabIndex    = 1;
     this.txt_updateNotes.Text        = string.Empty;
     this.txt_updateNotes.Visible     = false;
     //
     // btn_showUpdateNotes
     //
     this.btn_showUpdateNotes.Enabled  = false;
     this.btn_showUpdateNotes.Location = new System.Drawing.Point(119, 251);
     this.btn_showUpdateNotes.Name     = "btn_showUpdateNotes";
     this.btn_showUpdateNotes.Size     = new System.Drawing.Size(109, 24);
     this.btn_showUpdateNotes.TabIndex = 22;
     this.btn_showUpdateNotes.Text     = "查看更新说明(&S)";
     this.toolTip.SetToolTip(this.btn_showUpdateNotes, "点击查看更新内容说明/更新文件列表");
     this.btn_showUpdateNotes.Visible = false;
     this.btn_showUpdateNotes.Click  += new System.EventHandler(this.btn_showUpdateNotes_Click);
     //
     // UpdateMain
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(6, 14);
     this.BackColor         = System.Drawing.SystemColors.ButtonHighlight;
     this.ClientSize        = new System.Drawing.Size(416, 301);
     this.Controls.Add(this.btn_showUpdateNotes);
     this.Controls.Add(this.panel_updateNotes);
     this.Controls.Add(this.lvUpdateList);
     this.Controls.Add(this.lbState);
     this.Controls.Add(this.pbDownFile);
     this.Controls.Add(this.label6);
     this.Controls.Add(this.label4);
     this.Controls.Add(this.btnCancel);
     this.Controls.Add(this.btnNext);
     this.Controls.Add(this.linkLabel1);
     this.Controls.Add(this.pictureBox1);
     this.Controls.Add(this.label2);
     this.Controls.Add(this.btnFinish);
     this.Controls.Add(this.label1);
     this.Controls.Add(this.label5);
     this.Controls.Add(this.checkBox1);
     this.Controls.Add(this.label3);
     this.Controls.Add(this.label7);
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
     this.Icon            = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
     this.MaximizeBox     = false;
     this.MinimizeBox     = false;
     this.Name            = "UpdateMain";
     this.ShowInTaskbar   = false;
     this.StartPosition   = System.Windows.Forms.FormStartPosition.CenterScreen;
     this.Text            = "食安科技 - 自动升级服务 Ver_1.0";
     this.Load           += new System.EventHandler(this.FrmUpdate_Load);
     ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
     this.panel_updateNotes.ResumeLayout(false);
     this.ResumeLayout(false);
     this.PerformLayout();
 }
Exemplo n.º 60
-1
/*
        private static group findExtensionGroup(List<group> groups)
        {
            foreach(group group in groups)
            {
                if (group.extension != null)
                    if (group.extension.Any != null)
                        if (group.extension.Any.Length != 0)
                            return group;
            }

            return null;
        }
*/
        public static String Groups(ref enterprise ep, ProgressBar progressbar = null)
        {
            try
            {

                var all = new StringBuilder("SourcedID,DescriptionShort,DescriptionLong,GroupType,TimeFrameBegin,TimeFrameEnd,CourseCode,Points,SubjectCode,code,point,hours,grade,governedby,municipality_code,municipality_name,phone,code,street,locality,web,area_name,area_code,manager_area");
                all.Append("\r\n");

                if (progressbar != null)
                {
                    int count = ep.group.ToList().Count - 1;
                    progressbar.Invoke(new Action(() => progressbar.Maximum = count));
                    progressbar.Invoke(new Action(() => progressbar.Value = 0));
                }

                foreach (group group in ep.group)
                {
                    if (progressbar != null)
                        if (progressbar.Maximum > progressbar.Value)
                            progressbar.Invoke(new Action(() => progressbar.Value++));

                    all.Append(Group(group));
                }

                return all.ToString();
            }
            catch (Exception e)
            {
                throw e;
            }
        }