Inheritance: FileDialog
Ejemplo n.º 1
1
        private void btnNew_Click(object sender, EventArgs e)
        {
            // 获取文件夹绝对路径    显示在 txtbox 控件里

            System.Windows.Forms.FolderBrowserDialog folder = new System.Windows.Forms.FolderBrowserDialog();

            string StrFileName = "";
            // 获取文件和路径名 一起显示在 txtbox 控件里

            OpenFileDialog dialog = new OpenFileDialog();
            if (dialog.ShowDialog() == DialogResult.OK)
            {
                string SavePathFile = AppDomain.CurrentDomain.BaseDirectory + "\\image\\gdc" +DateTime.Now.ToString("yyyyMMddHHmmss")+ ".jpg";
                StrFileName = dialog.SafeFileName;
                if (File.Exists(SavePathFile))
                {
                    File.Delete(SavePathFile);
                } File.Copy( dialog.FileName,SavePathFile);
                if (!db.InsertH_Para("H_gdc", "gdc" + DateTime.Now.ToString("yyyyMMddHHmmss") + ".jpg", db.GetMaxID("gdc", "H_gdc")))
                {
                    MessageBox.Show("保存失败!"); return;
                }
                else
                {
                    MessageBox.Show("保存成功!");
                    ShowDt(PageInt);
                }
            }
        }
Ejemplo n.º 2
1
 private void button3_Click(object sender, EventArgs e)
 {
     if (listView1.SelectedItems.Count != 1)
         return;
     OpenFileDialog od = new OpenFileDialog();
     od.Filter = "Bitmap file (*.bmp)|*.bmp";
     od.FilterIndex = 0;
     if (od.ShowDialog() == DialogResult.OK)
     {
         Section s = listView1.SelectedItems[0].Tag as Section;
         try
         {
             Bitmap bmp = new Bitmap(od.FileName);
             s.import(bmp);
             bmp.Dispose();
             pictureBox1.Image = s.image();
             listView1.SelectedItems[0].SubItems[3].Text = s.cnt.ToString();
             button4.Enabled = true;
         }
         catch (Exception ex)
         {
             MessageBox.Show(ex.Message);
         }
     }
 }
Ejemplo n.º 3
0
        private void open_Click(object sender, EventArgs e)
        {
            OpenFileDialog opnDlg = new OpenFileDialog();//创建OpenFileDialog对象
            //为图像选择一个筛选器
            opnDlg.Filter = "所有图像文件 | *.bmp; *.pcx; *.png; *.jpg; *.gif;" +
                "*.tif; *.ico; *.dxf; *.cgm; *.cdr; *.wmf; *.eps; *.emf|" +
                "位图( *.bmp; *.jpg; *.png;...) | *.bmp; *.pcx; *.png; *.jpg; *.gif; *.tif; *.ico|" +
                "矢量图( *.wmf; *.eps; *.emf;...) | *.dxf; *.cgm; *.cdr; *.wmf; *.eps; *.emf";
            opnDlg.Title = "打开图像文件";
            if (opnDlg.ShowDialog() == DialogResult.OK)
            {
                curFileName = opnDlg.FileName;
                try
                {
                    curBitmap = (Bitmap)Image.FromFile(curFileName);//使用Image.FromFile创建图像对象
                }
                catch (Exception exp)
                {
                    MessageBox.Show(exp.Message);
                }
            }

            ////使控件的整个图面无效并导致重绘控件
            //Invalidate();//对窗体进行重新绘制,这将强制执行Paint事件处理程序
        }
Ejemplo n.º 4
0
        private void button1_Click(object sender, EventArgs e)
        {
            OpenFileDialog abrir = new OpenFileDialog();
            abrir.ShowDialog();

            textBox1.Text = abrir.SafeFileName;
        }
Ejemplo n.º 5
0
 /// <summary>
 /// Open a new file. Will ask for the file name in a dialog.
 /// </summary>
 public void OpenFile()
 {
     OpenFileDialog dlg = new OpenFileDialog ();
     if (dlg.ShowDialog () == DialogResult.OK)
         OpenFile (dlg.FileName);
     dlg.Dispose ();
 }
Ejemplo n.º 6
0
        void OnLoadSession(object sender)
        {
            this.InitChangeSession(sender);

            using (var dialog = new OpenFileDialog()
            {
                AddExtension    = true,
                CheckFileExists = true,
                Filter          = "DebugOS Session Files (*.dbs)|*.dbs",
                FilterIndex     = 0,
                Multiselect     = false,
                Title           = "Load Saved Session"
            })
            {
                if (dialog.ShowDialog() == DialogResult.OK)
                {
                    try
                    {
                        Loader.LoadSession(dialog.FileName);
                    }
                    catch (Exception e)
                    {
                        MessageBox.Show("An error occured while loading the session: " + e.ToString(),
                            "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
                    }
                }
            }
        }
Ejemplo n.º 7
0
        public void Open(FarsiLibrary.Win.FATabStrip faTabStripMain, string path="")
        {
            using (OpenFileDialog ofd = new OpenFileDialog())
            {
                if (string.IsNullOrEmpty(path))
                {
                    ofd.Filter = "PList(*.plist)|*.plist|All files|*.*";
                    if (ofd.ShowDialog() == DialogResult.OK)
                    {
                        path = ofd.FileName;
                    }
                }
                if (!string.IsNullOrEmpty(path))
                {
                    try
                    {
                        PlistInfo p = new PlistInfo(path);
                        bool suc = p.Read();
                        CreateTab(faTabStripMain, p.Info.Name, p);

                        if (!suc)
                        {
                            MessageBox.Show("Xml format error");
                        }
                    }
                    catch (Exception ex)
                    {
                        MessageBox.Show(ex.Message);
                        Debug.WriteLine(ex);
                    }
                }
            }
        }
Ejemplo n.º 8
0
        private void OUVRIR_Click(object sender, EventArgs e)
        {// permet d'aller chercher dans nos dossier l'image souhaité
            OpenFileDialog openFileDialog = new OpenFileDialog();

            openFileDialog.InitialDirectory = "c:\\";
            openFileDialog.Filter = "Bitmap files (*.bmp)|*.bmp|Jpeg files (*.jpg)|*.jpg|All valid files (*.bmp/*.jpg)|*.bmp/*.jpg";
            //format prit en compte
            openFileDialog.FilterIndex = 2;
            openFileDialog.RestoreDirectory = true;
        

            if (DialogResult.OK == openFileDialog.ShowDialog())
            {
                
                m_Bitmap = (Bitmap)Bitmap.FromFile(openFileDialog.FileName, false);
                b_Bitmap = (Bitmap)new Bitmap(m_Bitmap);
                this.AutoScroll = true;
                this.AutoScrollMinSize = new Size((int)(m_Bitmap.Width * Zoom), (int)(m_Bitmap.Height * Zoom));
                
                byte[] pixel_map = this.GetPixelMap(m_Bitmap);
                this.pictureBox2.Image = this.CreatationHistogram(pixel_map);
                // appel la fonction qui permet l'affichage de l'histogramme
                this.comboBox1.Enabled = true;
                this.Invalidate();
                this.Refresh();
            }


        }
Ejemplo n.º 9
0
        private void OnClickSelect(object sender, EventArgs e)
        {
            DicomFile file1 = null;
            while (true)
            {
                var ofd = new OpenFileDialog();
                ofd.Title = "Choose first DICOM file";
                ofd.Filter = "DICOM Files (*.dcm;*.dic)|*.dcm;*.dic|All Files (*.*)|*.*";

                if (ofd.ShowDialog(this) == DialogResult.Cancel) return;

                try
                {
                    file1 = DicomFile.Open(ofd.FileName);
                    break;
                }
                catch (Exception ex)
                {
                    MessageBox.Show(
                        this,
                        ex.Message,
                        "Error opening DICOM file",
                        MessageBoxButtons.OK,
                        MessageBoxIcon.Error);
                }
            }

            DicomFile file2 = null;
            while (true)
            {
                var ofd = new OpenFileDialog();
                ofd.Title = "Choose second DICOM file";
                ofd.Filter = "DICOM Files (*.dcm;*.dic)|*.dcm;*.dic|All Files (*.*)|*.*";

                if (ofd.ShowDialog(this) == DialogResult.Cancel) return;

                try
                {
                    file2 = DicomFile.Open(ofd.FileName);
                    break;
                }
                catch (Exception ex)
                {
                    MessageBox.Show(
                        this,
                        ex.Message,
                        "Error opening DICOM file",
                        MessageBoxButtons.OK,
                        MessageBoxIcon.Error);
                }
            }

            _file1 = file1;
            _file2 = file2;

            lblFile1.Text = _file1.File.Name;
            lblFile2.Text = _file2.File.Name;

            CompareFiles();
        }
Ejemplo n.º 10
0
        private void btnOpenfile_Click(object sender, EventArgs e)
        {
            OpenFileDialog ofd = new OpenFileDialog();
            ofd.Filter = cmbOpenFiletype.Text + "|" + cmbOpenFiletype.Text;
            string filter = ofd.Filter;
            ofd.InitialDirectory = System.Environment.CurrentDirectory;
            ofd.Title = "打开图像文件";
            ofd.ShowHelp = true;
            if(ofd.ShowDialog()==DialogResult.OK)
            {
                string strFileName = ofd.FileName;
                m_bitmap = new Bitmap(strFileName);
                if (m_bitmap.Width > m_bitmap.Height)
                {
                    pictureBox1.Width = m_width0;
                    pictureBox1.Height = (int)((double)m_bitmap.Height * m_width0 / m_bitmap.Width);
                }
                else
                {
                    pictureBox1.Height = m_height0;
                    pictureBox1.Width=(int)((double)m_bitmap.Width*m_height0/m_bitmap.Height);
                }

                pictureBox1.Image = m_bitmap;
                btnSave.Enabled = true;
            }
        }
Ejemplo n.º 11
0
        private void OpenToolStripMenuItemClick(object sender, EventArgs e)
        {
            var dataPlanOpenFileDialog = new OpenFileDialog
                                             {
                                                 Filter = "xml files (*.xml)|*.xml|All files (*.*)|*.*",
                                                 FilterIndex = 1,
                                                 Multiselect = false,
                                                 RestoreDirectory = true
                                             };

            if (dataPlanOpenFileDialog.ShowDialog() != DialogResult.OK)
                return;

            try
            {
                if (File.Exists(dataPlanOpenFileDialog.FileName))
                {
                    _file = dataPlanOpenFileDialog.FileName;
                    Text = _file;
                    LoadDataPlan(DataPlan.Load(dataPlanOpenFileDialog.FileName));
                }
            }
            catch (Exception ex)
            {
                MessageBox.Show("Error: Could not read file from disk. Original error: " + ex.Message);
            }
        }
        private void btSelecteerFoto_Click(object sender, EventArgs e)
        {
            string[] geldigeExtensies =
            {
                ".bmp", ".jpg", ".jpeg", ".gif", ".png"
            };

            OpenFileDialog of = new OpenFileDialog();

            if (of.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            {
                string bestand = of.FileName;
                string bestandsextensie = (new System.IO.FileInfo(bestand)).Extension.ToLower();

                foreach (string ext in geldigeExtensies)
                {
                    if (ext == bestandsextensie)
                    {
                        tbFoto.Text = bestand;
                        return;
                    }
                }

                MessageBox.Show("Het geselecteerde bestandsformaat wordt niet ondersteund!", "Fout:", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }
Ejemplo n.º 13
0
        /// <summary>
        /// Attaches event handlers related to 
        /// </summary>
        private void AttachMenuStripEventHandlers()
        {
            // File
            tsmNewProject.Click += (@s, e) => NewProject();
            tsmOpenProject.Click += (@s, e) => LoadProject();

            // Edit

            // View
            tsmShowStartPage.Click += (@s, e) => StartPage.Instance.Show(dockPanel);
            tsmShowProjectExplorer.Click += (@s, e) => ResourceExplorer.Instance.Show(dockPanel);

            // Project
            tsmImportResource.Click += (@s, e) =>
                {
                    var dialog = new OpenFileDialog();
                    dialog.Filter = "Image File (*.jpg;*.png)|*.jpg;*.png|Animated Image File (*.gif)|*.gif|Animat Resource (*.amt)|*.amt|BarloX Animation (*.bxa;*.ibxa)|*.bxa;*.ibxa";
                    if (dialog.ShowDialog() == DialogResult.OK)
                    {
                        AnimatProject.Instance.ImportResource(dialog.FileName);
                    }
                };

            // Help
            tsmAbout.Click += (@s, e) =>
                    AboutWindow.Instance.Show(dockPanel, DockState.Document);
        }
Ejemplo n.º 14
0
        static void Main(string[] args)
        {
            OpenFileDialog OpenFile = new OpenFileDialog();
            OpenFile.Multiselect = false;
            OpenFile.Title = "Cartridge";
            OpenFile.Filter = "GBA Files (.gba)|*.gba";
            OpenFile.FilterIndex = 1;

            string Cartridge;

            Console.WriteLine("Gneiss - Game Boy Advance Cartridge Reader.");
            Console.CursorVisible = false;

            if (OpenFile.ShowDialog() == DialogResult.OK)
            {
                Cartridge = OpenFile.FileName;
                BinaryReader BR = new BinaryReader(File.OpenRead(Cartridge));

                BR.BaseStream.Seek(0xA0, SeekOrigin.Begin);
                Console.WriteLine("\n\nCartridge Name: {0}", Encoding.UTF8.GetString(BR.ReadBytes(12)));

                BR.BaseStream.Seek(0xAC, SeekOrigin.Begin);
                Console.WriteLine("Serial: {0}", Encoding.UTF8.GetString(BR.ReadBytes(4)));

                BR.BaseStream.Seek(0x108, SeekOrigin.Begin);
                Console.WriteLine("Name: {0}", Encoding.UTF8.GetString(BR.ReadBytes(24)));
                Console.Read();
            }
        }
Ejemplo n.º 15
0
        public static void LoadNewPlugin(IAutoWikiBrowser awb)
        {
            OpenFileDialog pluginOpen = new OpenFileDialog();
            if (string.IsNullOrEmpty(LastPluginLoadedLocation))
                LoadLastPluginLoadedLocation();

            pluginOpen.InitialDirectory = string.IsNullOrEmpty(LastPluginLoadedLocation) ? Application.StartupPath : LastPluginLoadedLocation;
            
            pluginOpen.DefaultExt = "dll";
            pluginOpen.Filter = "DLL files|*.dll";
            pluginOpen.CheckFileExists = pluginOpen.Multiselect = /*pluginOpen.AutoUpgradeEnabled =*/ true;

            pluginOpen.ShowDialog();
            
            if (!string.IsNullOrEmpty(pluginOpen.FileName))
            {
                string newPath = Path.GetDirectoryName(pluginOpen.FileName);
                if (LastPluginLoadedLocation != newPath)
                {
                    LastPluginLoadedLocation = newPath;
                    SaveLastPluginLoadedLocation();
                }
            }

            Plugin.LoadPlugins(awb, pluginOpen.FileNames, true);
        }
Ejemplo n.º 16
0
Archivo: Form1.cs Proyecto: kebby/jss
        private void openToolStripMenuItem_Click(object sender, EventArgs e)
        {
            var dialog = new OpenFileDialog
            {
                Filter = "JSS document (*.jss)|*.jss|All files (*.*)|*.*",
                Title = "Open document",
            };

            if (dialog.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            {
                try
                {
                    using (var file = new FileStream(dialog.FileName, FileMode.Open))
                    {
                        var formatter = new BinaryFormatter();
                        var graph = formatter.Deserialize(file) as Graph;
                        if (graph != null)
                        {
                            button1.SetGraph(graph);
                            Filename = dialog.FileName;
                        }
                    }
                }
                catch (Exception ex)
                {
                    MessageBox.Show("Error during open: " + ex.Message, Text, MessageBoxButtons.OK, MessageBoxIcon.Error);
                }
            }
        }
Ejemplo n.º 17
0
 public void OpenDialog(bool multipleFiles, params FileTypes[] fileTypes)
 {
     ofd = new OpenFileDialog();
     ofd.Multiselect = multipleFiles;
     ofd.Filter = Utils.FileTypesToWinFormFilter(fileTypes);
     result = ofd.ShowDialog();
 }
Ejemplo n.º 18
0
        private void Add_LeftFile_Click(object sender, EventArgs e)
        {
            OpenFileDialog _dialog = new OpenFileDialog();
            Stream _readStream = null;

            if (_dialog.ShowDialog() == DialogResult.OK)
            {
                try
                {
                    if ((_readStream = _dialog.OpenFile()) != null)
                    {
                        using (_readStream)
                        {
                            TextBoxLeft.m_textController.Clear();
                            TextBoxLeft.m_textController.Setup(File.ReadAllText(_dialog.FileName));
                            TextBoxLeft.m_path = _dialog.FileName;
                            lbl_fileLeft.Text = _dialog.FileName.ToString();

                            if (TextBoxRight.m_textController.Lines.Count != 0)
                            {
                                AddHistoryTracking(lbl_fileLeft.Text, lbl_fileRight.Text);
                            }

                            CompareFileAndPresentation();
                        }
                    }
                }
                catch (Exception ex)
                {
                    MessageBox.Show("Error: Could not read file from disk. Original error: " + ex.Message);
                }
            }
        }
        //select a song
        private void button1_Click(object sender, EventArgs e)
        {
            timer1.Stop();
            timer2.Stop();

            OpenFileDialog dlg = new OpenFileDialog();
            dlg.ShowDialog();
            song_path = dlg.FileName.ToString();
            textBox1.Text = song_path;
            try
            {

                song.Stop();
            }
            catch (Exception ex) { }

            try
            {
                song = new Audio(song_path);
                timer1.Interval = (int)(song.Duration * 10);
                progressBar1.Value = 0;
                //MessageBox.Show(timer1.Interval.ToString());
            }
            catch (Exception ex) { }
        }
Ejemplo n.º 20
0
 private void btn_Browser_Click(object sender, EventArgs e)
 {
     OpenFileDialog P_open = new OpenFileDialog();//创建打开文件对话框对象
     P_open.Filter = "文本文件|*.txt|所有文件|*.*";//设置筛选字符串
     if (P_open.ShowDialog() == DialogResult.OK)
     {
         txt_Path.Text = P_open.FileName;//显示文件路径
         string conn = string.Format(//创建连接字符串
              @"Provider=Microsoft.Jet.OLEDB.4.0;Data Source={0};Extended Properties=text",
              P_open.FileName.Substring(0,P_open.FileName.LastIndexOf(@"\")));
         OleDbConnection P_OleDbConnection = new OleDbConnection(conn);//创建连接对象
         try
         {
             P_OleDbConnection.Open();//打开连接
             OleDbCommand cmd = new OleDbCommand(//创建命令对象
                 string.Format("select * from {0}",
                 P_open.FileName.Substring(P_open.FileName.LastIndexOf(@"\"),
                 P_open.FileName.Length - P_open.FileName.LastIndexOf(@"\"))),
                 P_OleDbConnection);
             OleDbDataReader oda = cmd.ExecuteReader();//得到数据读取器对象
             while (oda.Read())
             {
                txt_Message.Text  += oda[0].ToString();//得到文本文件中的字符串
             }
         }
         catch (Exception ex)
         {
             MessageBox.Show(ex.Message);//弹出消息对话框
         }
         finally
         {
             P_OleDbConnection.Close();//关闭连接
         }
     }
 }
Ejemplo n.º 21
0
        private void add_button_Click(object sender, EventArgs e)
        {
            

            OpenFileDialog open = new OpenFileDialog();
            open.Multiselect = true;
            open.Filter = "JPEG Files (.jpg, .png, .bmp, .gif)|*.jpg;*.gif;*.png;*.bmp";
            if (open.ShowDialog() == DialogResult.OK)
            {
                try
                {
                    foreach (String file in open.FileNames)
                    {
                        File_listBox.Items.Add(file);
                        Image newImage = Image.FromFile(Path.GetFullPath(file));
                        images_array.Add(newImage);
                    }
                }
                catch
                {
                    MessageBox.Show("Not a valid file(s).");
                    foreach (String file in open.FileNames)
                    {
                        File_listBox.Items.Remove(file);
                    }
                }
            }
        }
Ejemplo n.º 22
0
        private void btnBrowse_Click(object sender, EventArgs e)
        {
            //Try to open file dialog and choose image. Once user clicks ok in file dialog save fileLocation.
            //Display image in picbox, Then enable the user to save the image.
            try
            {
                //Create a file dialog object
                OpenFileDialog fileDialog = new OpenFileDialog();

                //Filter the types of files displayed in the file dialog
                fileDialog.Filter = "JPG Files (*.jpg)|*.jpg|GIF Files (*.gif)|*.gif|All Files (*.*)|*.*";
                fileDialog.Title = "Choose an image";

                //Once user clicks ok store the location of image and then display in picturebox
                if (fileDialog.ShowDialog() == DialogResult.OK)
                {
                    fileLocation = fileDialog.FileName.ToString();
                    picboxProduct.ImageLocation = fileLocation;

                    //Once there is a picture in the picbox then enable the option to save it
                    btnSavePicture.Enabled = true;
                }
            }

            //Catch any exceptions
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }
        }
Ejemplo n.º 23
0
        protected override void InitializeDialog(OpenFileDialog openFileDialog)
        {
            base.InitializeDialog(openFileDialog);

            openFileDialog.CheckFileExists = false;
            openFileDialog.Filter = "Microsoft Office Access (*.mdb)|*.mdb";
        }
Ejemplo n.º 24
0
 private void Setup()
 {
     var configSetup = new NHibernateConfigSetup();
     if (!configSetup.VerifyNHConfigFileExist())
     {
         if (MessageBox.Show("El archivo de conexión a la base de datos no existe\n" +
                             "para poder hacer uso del sistema por favor importe el archivo.\n\n",
                             "Inventarios",
                             MessageBoxButtons.YesNo, MessageBoxIcon.Exclamation) == DialogResult.Yes)
         {
             var ofdBuscarArchivo = new OpenFileDialog
                                        {
                                            InitialDirectory = "c:\\",
                                            Filter = "Data files (*.config)|*.config",
                                            FilterIndex = 2,
                                            RestoreDirectory = false
                                        };
             if (ofdBuscarArchivo.ShowDialog() == DialogResult.OK)
             {
                 File.Copy(ofdBuscarArchivo.FileName, "C:\\NHibernateSettings\\" + ofdBuscarArchivo.SafeFileName);
             }
             if (ofdBuscarArchivo.ShowDialog() == DialogResult.Cancel)
             {
                 Application.Exit();
             }
         }
         else
             Application.Exit();
     }
     else
     {
         configSetup.InitializeNHibernate();
         AutoMapperConfiguration.Configure();
     }
 }
Ejemplo n.º 25
0
        private void loadButton_Click(object sender, EventArgs e)
        {
            string toneSavePath;
            using (var ofd = new OpenFileDialog())
            {
                ofd.Filter = CurrentOFDFilter;
                if (ofd.ShowDialog() != DialogResult.OK) return;
                toneSavePath = ofd.FileName;
            }

            try
            {
                switch (CurrentGameVersion)
                {
                    case GameVersion.RS2012:
                        toneControl1.Tone = Tone.LoadFromXmlTemplateFile(toneSavePath);
                        break;
                    case GameVersion.RS2014:
                        toneControl1.Tone = Tone2014.LoadFromXmlTemplateFile(toneSavePath);
                        break;
                }

            }
            catch (Exception ex)
            {
                toneControl1.Tone = null;
                MessageBox.Show("Can't load saved tone. \n" + ex.Message, DLCPackageCreator.MESSAGEBOX_CAPTION, MessageBoxButtons.OK, MessageBoxIcon.Error);
                return;
            }

            MessageBox.Show("Tone was loaded.", DLCPackageCreator.MESSAGEBOX_CAPTION, MessageBoxButtons.OK, MessageBoxIcon.Information);
        }
Ejemplo n.º 26
0
 private void buttonChose_Click(object sender, EventArgs e)
 {
     OpenFileDialog ofd = new OpenFileDialog();
     ofd.ShowDialog();
     textBoxFilePath.Text = ofd.FileName;
     filePath = textBoxFilePath.Text.Trim();
 }
Ejemplo n.º 27
0
        private void button1_Click(object sender, EventArgs e)
        {
            OpenFileDialog ofd = new OpenFileDialog();
            if (ofd.ShowDialog() == DialogResult.OK)
            {
                string filePath = ofd.FileName;
                ArcGISTileSource suyTile = new ArcGISTileSource(filePath);
                TileLayer suyTileLyr = new TileLayer(suyTile, "suy");
                //ArcGISTileCompactSource suyTile = new ArcGISTileCompactSource(filePath);
                //ArcGISTileCompactLayer suyTileLyr = new ArcGISTileCompactLayer(suyTile, "suy");
                this.mapImage1.Map.Layers.Add(suyTileLyr);
                this.mapImage1.Map.ZoomToExtents();
                this.mapImage1.Refresh();
                //SharpMap.Data.Providers.SpatiaLite sb = new SharpMap.Data.Providers.SpatiaLite("Data Source=" + ofd.FileName, "water", "Geometry", "PK_UID");
                //VectorLayer vecLyr = new VectorLayer("sqlSpatial");
                //vecLyr.DataSource = sb;
                //this.mapImage1.Map.Layers.Add(vecLyr);
                //this.mapImage1.Map.ZoomToExtents();
                //this.mapImage1.Refresh();

            }
            //BruTile.ITileProvider tileProvider =
            ////BruTile.TileSource ts = new BruTile.TileSource(
            //this.mapImage1.Map.Layers.Add();
        }
Ejemplo n.º 28
0
        private void OnSelectMagneticModel(object sender, EventArgs e)
        {
            OpenFileDialog dlg = new OpenFileDialog();
            dlg.Filter = "Magnetic Model (*.wmm)|*.wmm";
            dlg.DefaultExt = "wmm";

            if (dlg.ShowDialog() == DialogResult.Cancel) return;

            m_path = dlg.FileName.Substring(0, dlg.FileName.LastIndexOf('\\')).Replace('\\', '/');
            int length = dlg.FileName.LastIndexOf('.') - dlg.FileName.LastIndexOf('\\') - 1;
            m_name = dlg.FileName.Substring(dlg.FileName.LastIndexOf('\\') + 1, length);

            try
            {
                m_magnetic = new MagneticModel(m_name, m_path);
                m_magneticModelNameTextBox.Text = dlg.FileName;
                m_nameTextBox.Text = m_magnetic.MagneticModelName;
                m_descriptionTextBox.Text = m_magnetic.Description;
                m_dateTextBox.Text = m_magnetic.DateTime;
                m_updateButton.Enabled = true;
                m_magCircButton.Enabled = true;
                m_validateButton.Enabled = true;
            }
            catch (Exception xcpt)
            {
                MessageBox.Show(xcpt.Message, "Exception", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }
Ejemplo n.º 29
0
        private void openToolStripMenuItem_Click(object sender, EventArgs e)
        {
            OpenFileDialog dialog = new OpenFileDialog();
            dialog.Multiselect = false;
            dialog.Filter = "All Supported Files |*.csv;*.txt;*.xls;*.xlsx;*.docx;*.rtf;*.eml;*.xml;*.html;*.htm;*.doc;*.ppt;*.pptx;*.cnm;*.vsd;*.pdf;*.vcf;*.zip;*.mp3;*.ape;*.wma;*.flac;*.aif;*.jpeg;*.jpg;*.tiff;*.png;*.gif";
            dialog.Filter += "|Comma Seperated Files (*.csv)|*.csv";
            dialog.Filter += "|Audio Files|*.mp3;*.ape;*.wma;*.flac;*.aif";
            dialog.Filter += "|Image Files|*.jpeg;*.jpg;*.tiff;*.png;*.gif";
            dialog.Filter += "|Zip Package|*.zip";
            dialog.Filter += "|Text Files (*.txt)|*.txt";
            dialog.Filter += "|Excel Documents|*.xls;*.xlsx";
            dialog.Filter += "|Rich Text Files (*.rtf)|*.rtf";
            dialog.Filter += "|Word Documents|*.docx;*.doc";
            dialog.Filter += "|PowerPoint Documents|*.ppt;*.pptx";
            dialog.Filter += "|Business Card Files (*.vcf)|*.vcf";
            dialog.Filter += "|Email Files (*.eml)|*.eml";
            dialog.Filter += "|Html Files (*.html, *.htm)|*.html;*.htm";
            dialog.Filter += "|XML Files (*.xml)|*.xml";
            dialog.Filter += "|Adobe PDF Files (*.pdf)|*.pdf";
            dialog.Filter += "|Pegsus Mailbox file (*.cnm)|*.cnm";

            if (dialog.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            {
                filepath = dialog.FileName;
            }

            OpenFile(filepath, comboBox1.Text);
        }
Ejemplo n.º 30
0
 void mnuOpen_OnClick(object sender, EventArgs e)
 {
     var dlg = new OpenFileDialog {InitialDirectory = "C:\\", Filter = @"CSV|*.csv"};
     dlg.ShowDialog(this);
     OpenFile(dlg.FileName);
     dlg.Dispose();
 }
 public void LoadTextAsset()
 {
     o        = new System.Windows.Forms.OpenFileDialog();
     loadType = "graphData";
 }
Ejemplo n.º 32
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(Form1));
     this.btnBrowseRpx          = new System.Windows.Forms.Button();
     this.btnBrowseStimulReport = new System.Windows.Forms.Button();
     this.openFileDialog1       = new System.Windows.Forms.OpenFileDialog();
     this.saveFileDialog1       = new System.Windows.Forms.SaveFileDialog();
     this.tbRpxFile             = new System.Windows.Forms.TextBox();
     this.tbStimulReportFile    = new System.Windows.Forms.TextBox();
     this.label1                = new System.Windows.Forms.Label();
     this.btnConvert            = new System.Windows.Forms.Button();
     this.btnClose              = new System.Windows.Forms.Button();
     this.label2                = new System.Windows.Forms.Label();
     this.groupBox1             = new System.Windows.Forms.GroupBox();
     this.groupBoxInformation   = new System.Windows.Forms.GroupBox();
     this.treeViewLog           = new System.Windows.Forms.TreeView();
     this.checkBoxUsePrimitives = new System.Windows.Forms.CheckBox();
     this.checkBoxSetLinked     = new System.Windows.Forms.CheckBox();
     this.groupBox2             = new System.Windows.Forms.GroupBox();
     this.groupBox1.SuspendLayout();
     this.groupBoxInformation.SuspendLayout();
     this.groupBox2.SuspendLayout();
     this.SuspendLayout();
     //
     // btnBrowseRpx
     //
     this.btnBrowseRpx.Anchor   = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.btnBrowseRpx.Location = new System.Drawing.Point(643, 39);
     this.btnBrowseRpx.Name     = "btnBrowseRpx";
     this.btnBrowseRpx.Size     = new System.Drawing.Size(24, 20);
     this.btnBrowseRpx.TabIndex = 2;
     this.btnBrowseRpx.Text     = "...";
     this.btnBrowseRpx.Click   += new System.EventHandler(this.btnBrowseRpx_Click);
     //
     // btnBrowseStimulReport
     //
     this.btnBrowseStimulReport.Anchor   = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.btnBrowseStimulReport.Location = new System.Drawing.Point(643, 89);
     this.btnBrowseStimulReport.Name     = "btnBrowseStimulReport";
     this.btnBrowseStimulReport.Size     = new System.Drawing.Size(24, 20);
     this.btnBrowseStimulReport.TabIndex = 5;
     this.btnBrowseStimulReport.Text     = "...";
     this.btnBrowseStimulReport.Click   += new System.EventHandler(this.btnBrowseStimulReport_Click);
     //
     // saveFileDialog1
     //
     this.saveFileDialog1.FileName = "doc1";
     //
     // tbRpxFile
     //
     this.tbRpxFile.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                                                                   | System.Windows.Forms.AnchorStyles.Right)));
     this.tbRpxFile.Location = new System.Drawing.Point(9, 39);
     this.tbRpxFile.Name     = "tbRpxFile";
     this.tbRpxFile.Size     = new System.Drawing.Size(633, 20);
     this.tbRpxFile.TabIndex = 1;
     this.tbRpxFile.Text     = "";
     //
     // tbStimulReportFile
     //
     this.tbStimulReportFile.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                                                                            | System.Windows.Forms.AnchorStyles.Right)));
     this.tbStimulReportFile.Location = new System.Drawing.Point(9, 90);
     this.tbStimulReportFile.Name     = "tbStimulReportFile";
     this.tbStimulReportFile.Size     = new System.Drawing.Size(633, 20);
     this.tbStimulReportFile.TabIndex = 4;
     this.tbStimulReportFile.Text     = "";
     //
     // label1
     //
     this.label1.Location = new System.Drawing.Point(18, 20);
     this.label1.Name     = "label1";
     this.label1.Size     = new System.Drawing.Size(131, 16);
     this.label1.TabIndex = 0;
     this.label1.Text     = "ActiveReports Template:";
     //
     // btnConvert
     //
     this.btnConvert.Anchor   = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.btnConvert.Location = new System.Drawing.Point(517, 367);
     this.btnConvert.Name     = "btnConvert";
     this.btnConvert.Size     = new System.Drawing.Size(75, 23);
     this.btnConvert.TabIndex = 3;
     this.btnConvert.Text     = "Convert";
     this.btnConvert.Click   += new System.EventHandler(this.btnConvert_Click);
     //
     // btnClose
     //
     this.btnClose.Anchor       = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.btnClose.DialogResult = System.Windows.Forms.DialogResult.Cancel;
     this.btnClose.Location     = new System.Drawing.Point(605, 367);
     this.btnClose.Name         = "btnClose";
     this.btnClose.Size         = new System.Drawing.Size(75, 23);
     this.btnClose.TabIndex     = 4;
     this.btnClose.Text         = "Close";
     this.btnClose.Click       += new System.EventHandler(this.btnClose_Click);
     //
     // label2
     //
     this.label2.Location = new System.Drawing.Point(18, 71);
     this.label2.Name     = "label2";
     this.label2.Size     = new System.Drawing.Size(430, 16);
     this.label2.TabIndex = 3;
     this.label2.Text     = "Stimulsoft Reports Template:";
     //
     // groupBox1
     //
     this.groupBox1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                                                                   | System.Windows.Forms.AnchorStyles.Right)));
     this.groupBox1.Controls.Add(this.label1);
     this.groupBox1.Controls.Add(this.label2);
     this.groupBox1.Controls.Add(this.btnBrowseRpx);
     this.groupBox1.Controls.Add(this.btnBrowseStimulReport);
     this.groupBox1.Controls.Add(this.tbRpxFile);
     this.groupBox1.Controls.Add(this.tbStimulReportFile);
     this.groupBox1.Location = new System.Drawing.Point(8, 4);
     this.groupBox1.Name     = "groupBox1";
     this.groupBox1.Size     = new System.Drawing.Size(677, 126);
     this.groupBox1.TabIndex = 0;
     this.groupBox1.TabStop  = false;
     this.groupBox1.Text     = "Path to Report";
     //
     // groupBoxInformation
     //
     this.groupBoxInformation.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.groupBoxInformation.Controls.Add(this.treeViewLog);
     this.groupBoxInformation.Location = new System.Drawing.Point(8, 205);
     this.groupBoxInformation.Name     = "groupBoxInformation";
     this.groupBoxInformation.Size     = new System.Drawing.Size(677, 152);
     this.groupBoxInformation.TabIndex = 2;
     this.groupBoxInformation.TabStop  = false;
     this.groupBoxInformation.Text     = "Information";
     //
     // treeViewLog
     //
     this.treeViewLog.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.treeViewLog.Location = new System.Drawing.Point(9, 20);
     this.treeViewLog.Name     = "treeViewLog";
     this.treeViewLog.Size     = new System.Drawing.Size(658, 123);
     this.treeViewLog.TabIndex = 0;
     //
     // checkBoxUsePrimitives
     //
     this.checkBoxUsePrimitives.AutoSize   = true;
     this.checkBoxUsePrimitives.Checked    = true;
     this.checkBoxUsePrimitives.CheckState = System.Windows.Forms.CheckState.Checked;
     this.checkBoxUsePrimitives.Enabled    = false;
     this.checkBoxUsePrimitives.Location   = new System.Drawing.Point(9, 19);
     this.checkBoxUsePrimitives.Name       = "checkBoxUsePrimitives";
     this.checkBoxUsePrimitives.Size       = new System.Drawing.Size(215, 17);
     this.checkBoxUsePrimitives.TabIndex   = 0;
     this.checkBoxUsePrimitives.Text       = "Use primitives instead of shapes for Line";
     this.checkBoxUsePrimitives.UseVisualStyleBackColor = true;
     //
     // checkBoxSetLinked
     //
     this.checkBoxSetLinked.AutoSize   = true;
     this.checkBoxSetLinked.Checked    = true;
     this.checkBoxSetLinked.CheckState = System.Windows.Forms.CheckState.Checked;
     this.checkBoxSetLinked.Location   = new System.Drawing.Point(9, 39);
     this.checkBoxSetLinked.Name       = "checkBoxSetLinked";
     this.checkBoxSetLinked.Size       = new System.Drawing.Size(207, 17);
     this.checkBoxSetLinked.TabIndex   = 1;
     this.checkBoxSetLinked.Text       = "Set Linked property for all components";
     this.checkBoxSetLinked.UseVisualStyleBackColor = true;
     //
     // groupBox2
     //
     this.groupBox2.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                                                                   | System.Windows.Forms.AnchorStyles.Right)));
     this.groupBox2.Controls.Add(this.checkBoxUsePrimitives);
     this.groupBox2.Controls.Add(this.checkBoxSetLinked);
     this.groupBox2.Location = new System.Drawing.Point(8, 136);
     this.groupBox2.Name     = "groupBox2";
     this.groupBox2.Size     = new System.Drawing.Size(677, 63);
     this.groupBox2.TabIndex = 1;
     this.groupBox2.TabStop  = false;
     this.groupBox2.Text     = "Options";
     //
     // Form1
     //
     this.AcceptButton      = this.btnConvert;
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.CancelButton      = this.btnClose;
     this.ClientSize        = new System.Drawing.Size(692, 398);
     this.Controls.Add(this.groupBox2);
     this.Controls.Add(this.groupBoxInformation);
     this.Controls.Add(this.groupBox1);
     this.Controls.Add(this.btnClose);
     this.Controls.Add(this.btnConvert);
     this.Icon          = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
     this.MaximizeBox   = false;
     this.MinimizeBox   = false;
     this.Name          = "Form1";
     this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
     this.Text          = "Convert ActiveReports to Stimulsoft Reports";
     this.FormClosed   += new System.Windows.Forms.FormClosedEventHandler(this.Form1_FormClosed);
     this.groupBox1.ResumeLayout(false);
     this.groupBox1.PerformLayout();
     this.groupBoxInformation.ResumeLayout(false);
     this.groupBox2.ResumeLayout(false);
     this.groupBox2.PerformLayout();
     this.ResumeLayout(false);
 }
Ejemplo n.º 33
0
    private void OnCreateBtnClicked()
    {
        //lock hud
        lockHUD = true;

        List <string> __texturePaths  = new List <string>();
        string        __texturePath   = "";
        Action        __textureAction = () =>
        {
            System.Collections.Generic.Dictionary <WWW, Tile> __loadingTiles = new System.Collections.Generic.Dictionary <WWW, Tile>();
            __texturePaths.ForEach(x =>
            {
                Tile __newTile = new Tile();
                __newTile.name = Path.GetFileName(x);
                _tileIdCount++;
                __newTile.id = _tileIdCount;

                WWW __www = new WWW("file://" + x);
                __loadingTiles.Add(__www, __newTile);
            });

            //LOAD THE TEXTURES

            onHUDLocked  = null;
            onHUDLocked += () =>
            {
                PaintLoadingWindow();

                List <WWW> __toRemove = new List <WWW>();
                foreach (var loading in __loadingTiles)
                {
                    if (loading.Key.isDone == false)
                    {
                        continue;
                    }

                    __toRemove.Add(loading.Key);
                    loading.Value.texture        = loading.Key.texture;
                    loading.Value.encodedTexture = loading.Value.texture.EncodeToPNG();

                    _loadedTiles.Add(loading.Value);
                }

                __toRemove.ForEach(x => __loadingTiles.Remove(x));

                if (__loadingTiles.Count != 0)
                {
                    return;
                }

                onHUDLocked = null;
                lockHUD     = false;
            };
        };

        if (_useDialog)
        {
            System.Windows.Forms.OpenFileDialog __dialog = new System.Windows.Forms.OpenFileDialog();
            __dialog.Title       = "Select texture to load";
            __dialog.Multiselect = true;
            __dialog.Filter      = "PNG|*.png|JPG|*.jpg";
            if (__dialog.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            {
                __texturePaths = new List <string>(__dialog.FileNames);
                __textureAction();
            }
            else
            {
                lockHUD = false;
            }
        }
        else
        {
            onHUDLocked += () =>
            {
                //DRAW WINDOW
                Rect __createTileWindowRect = new Rect((Screen.width * 0.5f) - 200, (Screen.height * 0.5f) - 50, 400, 115);
                GUI.BeginGroup(__createTileWindowRect);
                {
                    GUI.Box(new Rect(0, 0, __createTileWindowRect.width, __createTileWindowRect.height), "");

                    //SELECT TEXTURE
                    Rect __selectTextureRect = new Rect(15, 10, 750, 60);
                    GUI.BeginGroup(__selectTextureRect);
                    {
                        GUI.Label(new Rect(0, 0, 400, 30), "Upload a texture: ");
                        __texturePath = GUI.TextField(new Rect(0, 30, 310, 25), __texturePath);

                        //UPLOAD BTN
                        if (GUI.Button(new Rect(315, 30, 50, 25), "Upload"))
                        {
                            if (File.Exists(__texturePath) == false || (__texturePath.ToLower().EndsWith("png") == false && __texturePath.ToLower().EndsWith("jpg") == false))
                            {
                                lockHUD     = false;
                                onHUDLocked = null;

                                ShowMessage("Invalid path or invalid file format.");

                                return;
                            }

                            __texturePaths = new List <string>();
                            __texturePaths.Add(__texturePath);
                            __textureAction();

                            lockHUD     = false;
                            onHUDLocked = null;
                        }
                    }
                    GUI.EndGroup();

                    //CANCEL BTN
                    if (GUI.Button(new Rect((__createTileWindowRect.width * 0.5f) - 40, (__createTileWindowRect.height) - 35, 80, 25), "Cancel"))
                    {
                        onHUDLocked = null;
                        lockHUD     = false;
                    }
                }
                GUI.EndGroup();
            };
        }
    }
Ejemplo n.º 34
0
    private void OnLoadBtnClicked()
    {
        string __loadPath   = "";
        Action __loadAction = () =>
        {
            if (_tileIdCount == 0)
            {
                LoadMap(__loadPath);
            }
            else
            {
                _pathToLoad = __loadPath;
                Application.LoadLevel(Application.loadedLevel);
            }
        };

        if (_useDialog)
        {
            System.Windows.Forms.OpenFileDialog __openFile = new System.Windows.Forms.OpenFileDialog();
            __openFile.Filter      = "bytes|*.bytes";
            __openFile.Multiselect = false;
            __openFile.Title       = "Select map file to load";
            if (__openFile.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            {
                __loadPath = __openFile.FileName;
                __loadAction();
            }
        }
        else
        {
            lockHUD      = true;
            onHUDLocked  = null;
            onHUDLocked += () =>
            {
                //DRAW WINDOW
                Rect __loadWindowRect = new Rect((Screen.width * 0.5f) - 200, (Screen.height * 0.5f) - 50, 400, 115);
                GUI.BeginGroup(__loadWindowRect);
                {
                    GUI.Box(new Rect(0, 0, __loadWindowRect.width, __loadWindowRect.height), "");

                    //SELECT FILE
                    Rect __selectLoadPathRect = new Rect(15, 10, 750, 60);
                    GUI.BeginGroup(__selectLoadPathRect);
                    {
                        GUI.Label(new Rect(0, 0, 400, 30), "Enter file name: ");
                        __loadPath = GUI.TextField(new Rect(0, 30, 310, 25), __loadPath);

                        //SELECT BTN
                        if (GUI.Button(new Rect(315, 30, 50, 25), "Select"))
                        {
                            if (__loadPath.ToLower().EndsWith(".bytes") == false)
                            {
                                __loadPath = __loadPath + ".bytes";
                            }

                            if (File.Exists(__loadPath) == false)
                            {
                                lockHUD     = false;
                                onHUDLocked = null;
                                ShowMessage("Invalid file path.");
                                return;
                            }

                            lockHUD     = false;
                            onHUDLocked = null;

                            __loadAction();
                        }
                    }
                    GUI.EndGroup();

                    //CANCEL BTN
                    if (GUI.Button(new Rect((__loadWindowRect.width * 0.5f) - 40, (__loadWindowRect.height) - 35, 80, 25), "Cancel"))
                    {
                        onHUDLocked = null;
                        lockHUD     = false;
                    }
                }
                GUI.EndGroup();
            };
        }
    }
Ejemplo n.º 35
0
    void AutotextTriggers()
    {
        var tt = Triggers.Autotext;
        var tr = Triggers.Autotext.SimpleReplace;

        //Add autotext triggers here.
        //To add triggers can be used triggerSnippet or menu TT -> New trigger. More info in Cookbook.
        //Click the Run button to apply changes after editing.



        if (!true)           //examples. To enable and test it, replace (!true) with (true) and run this script.
        {
            tt["losa"] = o => o.Replace("Los Angeles (autotext example)");
            tt["WIndows", TAFlags.MatchCase] = o => o.Replace("Windows (autotext example)");

            tt.DefaultPostfixType = TAPostfix.None;             //set some options for triggers added afterwards
            tt["<e>"]             = o => o.Replace("<e>[[|]]</e>");

            Triggers.Options.BeforeAction      = o => { opt.key.TextHow = OKeyText.Paste; };        //set opt options for trigger actions added afterwards
            tt["#file", TAFlags.RemovePostfix] = o => {
                o.Replace("");
                using var fd = new System.Windows.Forms.OpenFileDialog { Title = "Autotext example" };
                if (fd.ShowDialog() != System.Windows.Forms.DialogResult.OK)
                {
                    return;
                }
                keys.sendt(fd.FileName);
                o.SendPostfix();
            };

            Triggers.Options.BeforeAction = null; tt.DefaultPostfixType = default;             //reset some options

            //examples of simple text replacements

            tr["#su"] = "Sunday (autotext example)";             //the same as tt["#su"] = o => o.Replace("Sunday");
            tr["#mo"] = "Monday (autotext example)";

            //these triggers will work only in Notepad window

            Triggers.Of.Window("* Notepad", "Notepad");
            tr["#tu"] = "Tuesday (autotext example)";
            tr["#we"] = "Wednesday (autotext example)";
            Triggers.Of.AllWindows();             //reset

            //with confirmation

            tt.DefaultFlags |= TAFlags.Confirm;             //add flag
            tr["#th"]        = "Thursday (autotext example)";
            tr["#fr", postfixType : TAPostfix.None] = "Friday (autotext example)";
            tt.DefaultFlags &= ~TAFlags.Confirm;             //remove flag

            //menu

            tt["m1"] = o => o.Menu(
                "https://www.example.com",
                "<tag>[[|]]</tag>",
                new("Label example", "TEXT"),
                new("HTML example", "TEXT", "<b>TEXT</b>")
                );
        }
    }
Ejemplo n.º 36
0
    public void loadNew()
    {
        // Load a new map, but this time, for the objects, read the object XML and put it in.
        System.Windows.Forms.OpenFileDialog baseMapD = new System.Windows.Forms.OpenFileDialog();
        baseMapD.Title = "Select the Base Map";
        baseMapD.ShowDialog();

        System.Windows.Forms.OpenFileDialog collideMapD = new System.Windows.Forms.OpenFileDialog();
        collideMapD.Title = "Select the Collide Map";
        collideMapD.ShowDialog();

        System.Windows.Forms.FolderBrowserDialog folderBrowserD = new System.Windows.Forms.FolderBrowserDialog();
        folderBrowserD.Description = "Select the folder containing the objects WITH collision";
        folderBrowserD.ShowDialog();

        System.Windows.Forms.OpenFileDialog objectxmlD = new System.Windows.Forms.OpenFileDialog();
        objectxmlD.Title = "Select the Object.XML";
        objectxmlD.ShowDialog();

        // Process input if the user clicked OK.
        baseMap     = Utils.TextureLoader(baseMapD.FileName, false);
        collideMap  = Utils.TextureLoader(collideMapD.FileName, false);
        objectsList = new LinkedList <AD2Object> [baseMap.Height];
        for (int i = 0; i != baseMap.Height; i++)
        {
            objectsList[i] = new LinkedList <AD2Object>();
        }

        //Default: go to utils.
        objectDirectory = folderBrowserD.SelectedPath;
        string[] files = Directory.GetFiles(objectDirectory);

        TextureName        = new string[files.Length];
        TextureList        = new Texture2D[files.Length];
        CollideTextureList = new Texture2D[files.Length];

        for (int i = 0; i != files.Length; i++)
        {
            TextureName[i]        = Path.GetFileName(files[i]);
            TextureList[i]        = Utils.TextureLoader(objectDirectory + "\\" + Path.GetFileName(files[i]), false);
            CollideTextureList[i] = Utils.TextureLoader(objectDirectory + "\\collide\\" + Path.GetFileName(files[i]), false);
        }

        Dictionary <string, LinkedList <string> > objsInPlace = Utils.GetXMLEntriesHash(objectxmlD.FileName, false);

        foreach (string obj in objsInPlace["object"])
        {
            AD2Object newObj = new AD2Object();
            string[]  args   = obj.Split(',');
            newObj.name = args[0];
            newObj.X    = Int32.Parse(args[1]);
            newObj.Y    = Int32.Parse(args[2]);
            for (int i = 0; i != TextureName.Length; i++)
            {
                if (newObj.name.Equals(TextureName[i]))
                {
                    newObj.t       = TextureList[i];
                    newObj.collide = CollideTextureList[i];
                    break;
                }
            }
            objectsList[newObj.Y + (newObj.t.Height - 1)].AddFirst(newObj);
        }
    }
    private void Button2_Click(System.Object sender, System.EventArgs e)
    {
        //Dim m_strConnection As String = "server='Server_Name';Initial Catalog='Database_Name';Trusted_Connection=True;"

        //Catch ex As Exception
        //    MessageBox.Show(ex.ToString())
        //End Try

        //Dim objDataset1 As DataSet()
        //Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        //Dim da As OdbcDataAdapter
        System.Windows.Forms.OpenFileDialog OpenFile = new System.Windows.Forms.OpenFileDialog();
        // Does something w/ the OpenFileDialog
        string  strFullPath = null;
        string  strFileName = null;
        TextBox tbFile      = new TextBox();

        // Sets some OpenFileDialog box options
        OpenFile.Filter = "CSV Files (*.csv)|*.csv|All files (*.*)|*.*";
        // Shows only .csv files
        OpenFile.Title = "Browse to file:";
        // Title at the top of the dialog box

        // Makes the open file dialog box show up
        if (OpenFile.ShowDialog() == DialogResult.OK)
        {
            strFullPath = OpenFile.FileName;
            // Assigns variable
            strFileName = Path.GetFileName(strFullPath);

            // Checks to see if they've picked a file
            if (OpenFile.FileNames.Length > 0)
            {
                tbFile.Text = strFullPath;
                // Puts the filename in the textbox

                // The connection string for reading into data connection form
                string connStr = null;
                connStr = "Driver={Microsoft Text Driver (*.txt; *.csv)}; Dbq=" + Path.GetDirectoryName(strFullPath) + "; Extensions=csv,txt ";

                // Sets up the data set and gets stuff from .csv file
                OdbcConnection  Conn        = new OdbcConnection(connStr);
                DataSet         ds          = default(DataSet);
                OdbcDataAdapter DataAdapter = new OdbcDataAdapter("SELECT * FROM [" + strFileName + "]", Conn);
                ds = new DataSet();

                try {
                    DataAdapter.Fill(ds, strFileName);
                    // Fills data grid..
                    DataGridView1.DataSource = ds.Tables(strFileName);
                    // ..according to data source

                    // Catch and display database errors
                } catch (OdbcException ex) {
                    OdbcError odbcError = default(OdbcError);
                    foreach (odbcError in ex.Errors)
                    {
                        MessageBox.Show(ex.Message);
                    }
                }

                // Cleanup
                OpenFile.Dispose();
                Conn.Dispose();
                DataAdapter.Dispose();
                ds.Dispose();
            }
        }
    }
 public void LoadAttributeAsset()
 {
     o        = new System.Windows.Forms.OpenFileDialog();
     loadType = "attributeData";
 }
Ejemplo 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.button1         = new System.Windows.Forms.Button();
     this.saveFileDialog1 = new System.Windows.Forms.SaveFileDialog();
     this.label1          = new System.Windows.Forms.Label();
     this.openFileDialog1 = new System.Windows.Forms.OpenFileDialog();
     this.label2          = new System.Windows.Forms.Label();
     this.cbOnlyData      = new System.Windows.Forms.CheckBox();
     this.SuspendLayout();
     //
     // button1
     //
     this.button1.Anchor   = System.Windows.Forms.AnchorStyles.Bottom;
     this.button1.Location = new System.Drawing.Point(180, 152);
     this.button1.Name     = "button1";
     this.button1.TabIndex = 0;
     this.button1.Text     = "GO!";
     this.button1.Click   += new System.EventHandler(this.button1_Click);
     //
     // saveFileDialog1
     //
     this.saveFileDialog1.Filter           = "Excel Files|*.xls;*.xlsx;*.xlsm|Excel 97/2003|*.xls|Excel 2007|*.xlsx;*.xlsm|All files|*.*";
     this.saveFileDialog1.RestoreDirectory = true;
     //
     // label1
     //
     this.label1.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.label1.BackColor   = System.Drawing.Color.FromArgb(((System.Byte)(255)), ((System.Byte)(255)), ((System.Byte)(192)));
     this.label1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
     this.label1.Location    = new System.Drawing.Point(16, 16);
     this.label1.Name        = "label1";
     this.label1.Size        = new System.Drawing.Size(408, 32);
     this.label1.TabIndex    = 1;
     this.label1.Text        = "A demo on how to consolidate several files into one.";
     //
     // openFileDialog1
     //
     this.openFileDialog1.DefaultExt  = "xls";
     this.openFileDialog1.Filter      = "Excel Files|*.xls;*.xlsx;*.xlsm|Excel 97/2003|*.xls|Excel 2007|*.xlsx;*.xlsm|All files|*.*";
     this.openFileDialog1.Multiselect = true;
     this.openFileDialog1.Title       = "Select ALL the files you want to consolidate.";
     //
     // label2
     //
     this.label2.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.label2.BackColor   = System.Drawing.Color.White;
     this.label2.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
     this.label2.Location    = new System.Drawing.Point(16, 64);
     this.label2.Name        = "label2";
     this.label2.Size        = new System.Drawing.Size(408, 32);
     this.label2.TabIndex    = 2;
     this.label2.Text        = "After pressing the button, multi-select all the files you want with ctrl and shif" +
                               "t.";
     //
     // cbOnlyData
     //
     this.cbOnlyData.Location = new System.Drawing.Point(24, 112);
     this.cbOnlyData.Name     = "cbOnlyData";
     this.cbOnlyData.Size     = new System.Drawing.Size(344, 24);
     this.cbOnlyData.TabIndex = 3;
     this.cbOnlyData.Text     = "Copy only data. (dont copy margins zoom, etc)";
     //
     // mainForm
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
     this.AutoScaleMode       = System.Windows.Forms.AutoScaleMode.Font;
     this.ClientSize          = new System.Drawing.Size(432, 197);
     this.Controls.Add(this.cbOnlyData);
     this.Controls.Add(this.label2);
     this.Controls.Add(this.label1);
     this.Controls.Add(this.button1);
     this.Name = "mainForm";
     this.Text = "Form1";
     this.ResumeLayout(false);
 }
Ejemplo n.º 40
0
 /// <summary>
 /// Creates a OpenFileDialog open in a given path.
 /// </summary>
 /// <returns>A new instance of OpenFileDialog.</returns>
 public static System.Windows.Forms.OpenFileDialog CreateOpenFileDialog()
 {
     System.Windows.Forms.OpenFileDialog temp_fileDialog = new System.Windows.Forms.OpenFileDialog();
     temp_fileDialog.InitialDirectory = System.Environment.GetFolderPath(System.Environment.SpecialFolder.Personal);
     return(temp_fileDialog);
 }
Ejemplo n.º 41
0
    public void LoadXfbinWindow()
    {
        System.Windows.Forms.OpenFileDialog openFileDialog1 = new System.Windows.Forms.OpenFileDialog();
        openFileDialog1.DefaultExt   = "xfbin";
        openFileDialog1.AddExtension = true;
        openFileDialog1.ShowDialog();

        string pathToXfbin = openFileDialog1.FileName;

        if (pathToXfbin != "" && File.Exists(pathToXfbin))
        {
            fileBytes = File.ReadAllBytes(pathToXfbin);
            foreach (Transform child_ in GameObject.Find("Mesh List Content").transform)
            {
                Destroy(child_.gameObject);
            }
            GameObject.Find("Mesh List Content").GetComponent <RectTransform>().sizeDelta = new Vector2(0, 0);
            indexOfMeshes.Clear();

            if (fileBytes[0] == 78 && fileBytes[1] == 85 && fileBytes[2] == 67 && fileBytes[3] == 67)
            {
                int MeshCount = 0;
                for (int x = 0; x < fileBytes.Length - 3; x++)
                {
                    if (fileBytes[x] == 78 && fileBytes[x + 1] == 68 && fileBytes[x + 2] == 80 && fileBytes[x + 3] == 51)
                    {
                        indexOfMeshes.Add(x);
                        List <char> meshName = new List <char>();
                        int         meshSize = 48 + (fileBytes[x + 17] * 65536 + fileBytes[x + 18] * 256 + fileBytes[x + 19]) + (fileBytes[x + 21] * 65536 + fileBytes[x + 22] * 256 + fileBytes[x + 23]) + (fileBytes[x + 25] * 65536 + fileBytes[x + 26] * 256 + fileBytes[x + 27]) + (fileBytes[x + 29] * 65536 + fileBytes[x + 30] * 256 + fileBytes[x + 31]);

                        for (int abc = 0; abc < 25; abc++)
                        {
                            meshName.Add((char)fileBytes[x + meshSize + abc]);
                        }

                        int VertexLenght_;
                        if (fileBytes[x + 29] * 65536 + fileBytes[x + 30] * 256 + fileBytes[x + 31] == 0)
                        {
                            VertexLenght_ = 28;
                        }
                        else
                        {
                            VertexLenght_ = 64;
                        }
                        GameObject ListItem_ = Instantiate(ListItem);
                        GameObject.Find("Mesh List Content").GetComponent <RectTransform>().sizeDelta = GameObject.Find("Mesh List Content").GetComponent <RectTransform>().sizeDelta + new Vector2(0, 37.25f);
                        ListItem_Properties ListItemNew = ListItem_.GetComponent <ListItem_Properties>();
                        ListItemNew.MeshName             = new string(meshName.ToArray());
                        ListItemNew.VertexLenght         = VertexLenght_;
                        ListItemNew.MeshName_UI.text     = ListItemNew.MeshName;
                        ListItemNew.VertexLenght_UI.text = "Vertex Lenght: " + ListItemNew.VertexLenght.ToString();
                        ListItem_.transform.SetParent(GameObject.Find("Mesh List Content").transform);
                        ListItem_.transform.localScale = new Vector3(1, 1, 1);
                        ListItemNew.MeshID             = ListItem_.transform.GetSiblingIndex();
                        ListItem_.GetComponent <Button>().onClick.AddListener(() => ListItemNew.SelectThisIndex());
                        ListItem_.name = "List Item " + MeshCount.ToString();
                        MeshCount++;
                    }
                }
                System.Windows.Forms.MessageBox.Show("Import finished. Found " + indexOfMeshes.Count.ToString() + " meshes in file.");
            }
            else
            {
                System.Windows.Forms.MessageBox.Show("Not a valid .xfbin file.");
            }
        }
    }
Ejemplo n.º 42
0
 /// <summary>
 /// Creates an OpenFileDialog open in a given path.
 /// </summary>
 /// <param name="path">Path to be opened by the OpenFileDialog.</param>
 /// <param name="directory">Directory to get the path from.</param>
 /// <returns>A new instance of OpenFileDialog.</returns>
 public static System.Windows.Forms.OpenFileDialog CreateOpenFileDialog(System.String path, System.IO.DirectoryInfo directory)
 {
     System.Windows.Forms.OpenFileDialog temp_fileDialog = new System.Windows.Forms.OpenFileDialog();
     temp_fileDialog.InitialDirectory = path;
     return(temp_fileDialog);
 }
 /// <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(WzPageGeneralSetup));
     this.txtClassname       = new System.Windows.Forms.TextBox();
     this.label2             = new System.Windows.Forms.Label();
     this.errorProvider      = new System.Windows.Forms.ErrorProvider(this.components);
     this.txtNamespace       = new System.Windows.Forms.TextBox();
     this.label1             = new System.Windows.Forms.Label();
     this.txtAssemblyKeyFile = new System.Windows.Forms.TextBox();
     this.label3             = new System.Windows.Forms.Label();
     this.cmdSelectKey       = new System.Windows.Forms.Button();
     this.openFileDialog     = new System.Windows.Forms.OpenFileDialog();
     this.saveFileDialog     = new System.Windows.Forms.SaveFileDialog();
     this.cmdNewKey          = new System.Windows.Forms.Button();
     this.panelHeader.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.errorProvider)).BeginInit();
     this.SuspendLayout();
     //
     // panelHeader
     //
     resources.ApplyResources(this.panelHeader, "panelHeader");
     //
     // labelTitle
     //
     resources.ApplyResources(this.labelTitle, "labelTitle");
     //
     // labelSubTitle
     //
     resources.ApplyResources(this.labelSubTitle, "labelSubTitle");
     //
     // txtClassname
     //
     resources.ApplyResources(this.txtClassname, "txtClassname");
     this.txtClassname.Name         = "txtClassname";
     this.txtClassname.TextChanged += new System.EventHandler(this.Element_Changed);
     this.txtClassname.Validating  += new System.ComponentModel.CancelEventHandler(this.txtClassname_Validating);
     //
     // label2
     //
     resources.ApplyResources(this.label2, "label2");
     this.label2.Name = "label2";
     //
     // errorProvider
     //
     this.errorProvider.ContainerControl = this;
     resources.ApplyResources(this.errorProvider, "errorProvider");
     //
     // txtNamespace
     //
     resources.ApplyResources(this.txtNamespace, "txtNamespace");
     this.txtNamespace.Name         = "txtNamespace";
     this.txtNamespace.TextChanged += new System.EventHandler(this.Element_Changed);
     this.txtNamespace.Validating  += new System.ComponentModel.CancelEventHandler(this.txtNamespace_Validating);
     //
     // label1
     //
     resources.ApplyResources(this.label1, "label1");
     this.label1.Name = "label1";
     //
     // txtAssemblyKeyFile
     //
     resources.ApplyResources(this.txtAssemblyKeyFile, "txtAssemblyKeyFile");
     this.txtAssemblyKeyFile.Name         = "txtAssemblyKeyFile";
     this.txtAssemblyKeyFile.TextChanged += new System.EventHandler(this.Element_Changed);
     this.txtAssemblyKeyFile.Validating  += new System.ComponentModel.CancelEventHandler(this.txtAssemblyKeyFile_Validating);
     //
     // label3
     //
     resources.ApplyResources(this.label3, "label3");
     this.label3.Name = "label3";
     //
     // cmdSelectKey
     //
     resources.ApplyResources(this.cmdSelectKey, "cmdSelectKey");
     this.cmdSelectKey.Name   = "cmdSelectKey";
     this.cmdSelectKey.Click += new System.EventHandler(this.cmdSelectKey_Click);
     //
     // openFileDialog
     //
     this.openFileDialog.DefaultExt = "snk";
     resources.ApplyResources(this.openFileDialog, "openFileDialog");
     //
     // saveFileDialog
     //
     this.saveFileDialog.DefaultExt = "snk";
     resources.ApplyResources(this.saveFileDialog, "saveFileDialog");
     //
     // cmdNewKey
     //
     resources.ApplyResources(this.cmdNewKey, "cmdNewKey");
     this.cmdNewKey.Name   = "cmdNewKey";
     this.cmdNewKey.Click += new System.EventHandler(this.cmdNewKey_Click);
     //
     // WzPageGeneralSetup
     //
     this.Controls.Add(this.txtAssemblyKeyFile);
     this.Controls.Add(this.cmdNewKey);
     this.Controls.Add(this.cmdSelectKey);
     this.Controls.Add(this.txtNamespace);
     this.Controls.Add(this.label3);
     this.Controls.Add(this.label1);
     this.Controls.Add(this.txtClassname);
     this.Controls.Add(this.label2);
     this.Name = "WzPageGeneralSetup";
     resources.ApplyResources(this, "$this");
     this.SubTitle = "Specify General Project Properties";
     this.Title    = "General Project Properties";
     this.Leave   += new System.EventHandler(this.WzPageGeneralSetup_Leave);
     this.Controls.SetChildIndex(this.label2, 0);
     this.Controls.SetChildIndex(this.txtClassname, 0);
     this.Controls.SetChildIndex(this.label1, 0);
     this.Controls.SetChildIndex(this.label3, 0);
     this.Controls.SetChildIndex(this.txtNamespace, 0);
     this.Controls.SetChildIndex(this.cmdSelectKey, 0);
     this.Controls.SetChildIndex(this.cmdNewKey, 0);
     this.Controls.SetChildIndex(this.txtAssemblyKeyFile, 0);
     this.Controls.SetChildIndex(this.panelHeader, 0);
     this.panelHeader.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.errorProvider)).EndInit();
     this.ResumeLayout(false);
     this.PerformLayout();
 }
Ejemplo n.º 44
0
 /// <summary>
 /// Creates an OpenFileDialog open in a given path.
 /// </summary>
 /// <param name="path">Path to be opened by the OpenFileDialog.</param>
 /// <returns>A new instance of OpenFileDialog.</returns>
 public static System.Windows.Forms.OpenFileDialog CreateOpenFileDialog(System.IO.FileInfo path)
 {
     System.Windows.Forms.OpenFileDialog temp_fileDialog = new System.Windows.Forms.OpenFileDialog();
     temp_fileDialog.InitialDirectory = path.Directory.FullName;
     return(temp_fileDialog);
 }
Ejemplo 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.txtAddr         = new System.Windows.Forms.TextBox();
     this.txtPort         = new System.Windows.Forms.TextBox();
     this.lblAddr         = new System.Windows.Forms.Label();
     this.lblPort         = new System.Windows.Forms.Label();
     this.btnCancel       = new System.Windows.Forms.Button();
     this.btnOK           = new System.Windows.Forms.Button();
     this.label3          = new System.Windows.Forms.Label();
     this.checkBoxArchive = new System.Windows.Forms.CheckBox();
     this.textBoxFile     = new System.Windows.Forms.TextBox();
     this.label6          = new System.Windows.Forms.Label();
     this.groupBox1       = new System.Windows.Forms.GroupBox();
     this.buttonBrowse    = new System.Windows.Forms.Button();
     this.openFileDialog1 = new System.Windows.Forms.OpenFileDialog();
     this.txtWMPort       = new System.Windows.Forms.TextBox();
     this.txtMaxConn      = new System.Windows.Forms.TextBox();
     this.label1          = new System.Windows.Forms.Label();
     this.label2          = new System.Windows.Forms.Label();
     this.groupBox2       = new System.Windows.Forms.GroupBox();
     this.label5          = new System.Windows.Forms.Label();
     this.comboBoxProfile = new System.Windows.Forms.ComboBox();
     this.groupBox1.SuspendLayout();
     this.groupBox2.SuspendLayout();
     this.SuspendLayout();
     //
     // txtAddr
     //
     this.txtAddr.Location = new System.Drawing.Point(152, 16);
     this.txtAddr.Name     = "txtAddr";
     this.txtAddr.Size     = new System.Drawing.Size(144, 20);
     this.txtAddr.TabIndex = 0;
     this.txtAddr.Text     = "textBox1";
     //
     // txtPort
     //
     this.txtPort.Location = new System.Drawing.Point(352, 16);
     this.txtPort.Name     = "txtPort";
     this.txtPort.Size     = new System.Drawing.Size(56, 20);
     this.txtPort.TabIndex = 1;
     this.txtPort.Text     = "textBox2";
     //
     // lblAddr
     //
     this.lblAddr.Location  = new System.Drawing.Point(24, 16);
     this.lblAddr.Name      = "lblAddr";
     this.lblAddr.Size      = new System.Drawing.Size(128, 16);
     this.lblAddr.TabIndex  = 2;
     this.lblAddr.Text      = "Custom Venue Address";
     this.lblAddr.TextAlign = System.Drawing.ContentAlignment.BottomLeft;
     //
     // lblPort
     //
     this.lblPort.Location  = new System.Drawing.Point(320, 16);
     this.lblPort.Name      = "lblPort";
     this.lblPort.Size      = new System.Drawing.Size(32, 16);
     this.lblPort.TabIndex  = 3;
     this.lblPort.Text      = "Port";
     this.lblPort.TextAlign = System.Drawing.ContentAlignment.BottomLeft;
     //
     // btnCancel
     //
     this.btnCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel;
     this.btnCancel.Location     = new System.Drawing.Point(16, 240);
     this.btnCancel.Name         = "btnCancel";
     this.btnCancel.Size         = new System.Drawing.Size(80, 24);
     this.btnCancel.TabIndex     = 8;
     this.btnCancel.Text         = "Cancel";
     this.btnCancel.Click       += new System.EventHandler(this.btnCancel_click);
     //
     // btnOK
     //
     this.btnOK.Location = new System.Drawing.Point(368, 240);
     this.btnOK.Name     = "btnOK";
     this.btnOK.Size     = new System.Drawing.Size(80, 24);
     this.btnOK.TabIndex = 9;
     this.btnOK.Text     = "OK";
     this.btnOK.Click   += new System.EventHandler(this.btnOK_click);
     //
     // label3
     //
     this.label3.Location  = new System.Drawing.Point(24, 58);
     this.label3.Name      = "label3";
     this.label3.Size      = new System.Drawing.Size(128, 16);
     this.label3.TabIndex  = 8;
     this.label3.Text      = "Windows Media Profile:";
     this.label3.TextAlign = System.Drawing.ContentAlignment.BottomLeft;
     //
     // checkBoxArchive
     //
     this.checkBoxArchive.Location        = new System.Drawing.Point(32, 160);
     this.checkBoxArchive.Name            = "checkBoxArchive";
     this.checkBoxArchive.Size            = new System.Drawing.Size(128, 24);
     this.checkBoxArchive.TabIndex        = 5;
     this.checkBoxArchive.Text            = "Archive to WMV File";
     this.checkBoxArchive.CheckedChanged += new System.EventHandler(this.checkBoxArchive_CheckedChanged);
     //
     // textBoxFile
     //
     this.textBoxFile.Location = new System.Drawing.Point(56, 192);
     this.textBoxFile.Name     = "textBoxFile";
     this.textBoxFile.Size     = new System.Drawing.Size(376, 20);
     this.textBoxFile.TabIndex = 7;
     this.textBoxFile.Text     = "C:\\archive.wmv";
     //
     // label6
     //
     this.label6.Location  = new System.Drawing.Point(24, 192);
     this.label6.Name      = "label6";
     this.label6.Size      = new System.Drawing.Size(32, 16);
     this.label6.TabIndex  = 14;
     this.label6.Text      = "File:";
     this.label6.TextAlign = System.Drawing.ContentAlignment.BottomLeft;
     //
     // groupBox1
     //
     this.groupBox1.Controls.AddRange(new System.Windows.Forms.Control[] {
         this.buttonBrowse
     });
     this.groupBox1.Location = new System.Drawing.Point(16, 144);
     this.groupBox1.Name     = "groupBox1";
     this.groupBox1.Size     = new System.Drawing.Size(432, 80);
     this.groupBox1.TabIndex = 15;
     this.groupBox1.TabStop  = false;
     this.groupBox1.Text     = "Archiving";
     //
     // buttonBrowse
     //
     this.buttonBrowse.Location = new System.Drawing.Point(336, 16);
     this.buttonBrowse.Name     = "buttonBrowse";
     this.buttonBrowse.Size     = new System.Drawing.Size(80, 24);
     this.buttonBrowse.TabIndex = 6;
     this.buttonBrowse.Text     = "Browse";
     this.buttonBrowse.Click   += new System.EventHandler(this.buttonBrowse_Click);
     //
     // openFileDialog1
     //
     this.openFileDialog1.CheckFileExists = false;
     this.openFileDialog1.DefaultExt      = "wmv";
     this.openFileDialog1.Filter          = "WMV files|*.wmv";
     this.openFileDialog1.Title           = "Archive File";
     //
     // txtWMPort
     //
     this.txtWMPort.Location = new System.Drawing.Point(160, 104);
     this.txtWMPort.Name     = "txtWMPort";
     this.txtWMPort.Size     = new System.Drawing.Size(48, 20);
     this.txtWMPort.TabIndex = 3;
     this.txtWMPort.Text     = "textBox1";
     //
     // txtMaxConn
     //
     this.txtMaxConn.Location = new System.Drawing.Point(400, 104);
     this.txtMaxConn.Name     = "txtMaxConn";
     this.txtMaxConn.Size     = new System.Drawing.Size(40, 20);
     this.txtMaxConn.TabIndex = 4;
     this.txtMaxConn.Text     = "textBox1";
     //
     // label1
     //
     this.label1.Location  = new System.Drawing.Point(48, 104);
     this.label1.Name      = "label1";
     this.label1.Size      = new System.Drawing.Size(112, 16);
     this.label1.TabIndex  = 18;
     this.label1.Text      = "Windows Media Port";
     this.label1.TextAlign = System.Drawing.ContentAlignment.BottomLeft;
     //
     // label2
     //
     this.label2.Location  = new System.Drawing.Point(248, 104);
     this.label2.Name      = "label2";
     this.label2.Size      = new System.Drawing.Size(152, 16);
     this.label2.TabIndex  = 19;
     this.label2.Text      = "Maximum Client Connections";
     this.label2.TextAlign = System.Drawing.ContentAlignment.BottomLeft;
     //
     // groupBox2
     //
     this.groupBox2.Controls.AddRange(new System.Windows.Forms.Control[] {
         this.label5,
         this.comboBoxProfile
     });
     this.groupBox2.Location = new System.Drawing.Point(16, 40);
     this.groupBox2.Name     = "groupBox2";
     this.groupBox2.Size     = new System.Drawing.Size(432, 96);
     this.groupBox2.TabIndex = 20;
     this.groupBox2.TabStop  = false;
     this.groupBox2.Text     = "Windows Media Configuration";
     //
     // label5
     //
     this.label5.Location = new System.Drawing.Point(72, 40);
     this.label5.Name     = "label5";
     this.label5.Size     = new System.Drawing.Size(344, 16);
     this.label5.TabIndex = 1;
     this.label5.Text     = "Note: Presenter Integration requires a profile with a script stream.";
     //
     // comboBoxProfile
     //
     this.comboBoxProfile.DropDownStyle         = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.comboBoxProfile.Location              = new System.Drawing.Point(136, 16);
     this.comboBoxProfile.Name                  = "comboBoxProfile";
     this.comboBoxProfile.Size                  = new System.Drawing.Size(288, 21);
     this.comboBoxProfile.TabIndex              = 0;
     this.comboBoxProfile.SelectedIndexChanged += new System.EventHandler(this.comboBoxProfile_SelectedIndexChanged);
     //
     // ConfigForm
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.ClientSize        = new System.Drawing.Size(466, 280);
     this.Controls.AddRange(new System.Windows.Forms.Control[] {
         this.label2,
         this.label1,
         this.txtMaxConn,
         this.txtWMPort,
         this.label6,
         this.textBoxFile,
         this.checkBoxArchive,
         this.label3,
         this.btnOK,
         this.btnCancel,
         this.lblPort,
         this.lblAddr,
         this.txtPort,
         this.txtAddr,
         this.groupBox1,
         this.groupBox2
     });
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
     this.MaximizeBox     = false;
     this.MinimizeBox     = false;
     this.Name            = "ConfigForm";
     this.Text            = "Windows Media Gateway Configuration";
     this.groupBox1.ResumeLayout(false);
     this.groupBox2.ResumeLayout(false);
     this.ResumeLayout(false);
 }
Ejemplo n.º 46
0
    private void buttonPressedHandler(object sender, EventArgs e)
    {
        if (levelManager.loading)
        {
            return;
        }

        PressGesture gesture = (PressGesture)sender;
        GameObject   s       = gesture.gameObject;

        if (s.name.Equals(pathBtn.name))
        {
            // Get GameObject at touch location and add a PathFollowing component to it
            Pair <GameObject, GameObject> selectedObject = levelManager.getObjectAtPosition(Camera.main.ScreenToWorldPoint(touchManager.ActiveTouches[0].Position));
            if (selectedObject != null)
            {
                PathFollowing p = selectedObject.second.GetComponent <PathFollowing>();
                if (p != null)
                {
                    DestroyImmediate(p);
                    p = null;

                    p = selectedObject.first.GetComponent <PathFollowing>();
                    DestroyImmediate(p);
                }

                selectedObject.first.AddComponent <PathFollowing>().initDrawing(touchManager.ActiveTouches[touchManager.ActiveTouches.Count - 1].Id, true);
                selectedObject.second.AddComponent <PathFollowing>().initDrawing(touchManager.ActiveTouches[touchManager.ActiveTouches.Count - 1].Id, false);
            }
        }
        else if (s.name.Equals(replaceBtn.name))
        {
            ReplaceObject();
        }
        else if (s.name.Equals(removeBtn.name))
        {
            RemoveObject(false);
        }
        else if (s.name.Equals(pathSliderTab.name))
        {
            pathSliderTouchID = touchManager.ActiveTouches[touchManager.ActiveTouches.Count - 1].Id;
        }
        else if (s.name.Equals(jumpSliderTab.name))
        {
            jumpSliderTouchID = touchManager.ActiveTouches[touchManager.ActiveTouches.Count - 1].Id;
        }
        else if (s.name.Equals(moveSliderTab.name))
        {
            moveSliderTouchID = touchManager.ActiveTouches[touchManager.ActiveTouches.Count - 1].Id;
        }
        else if (s.name.Equals(aiHorizMoveSliderTab.name))
        {
            aiHorizMoveSliderTouchID = touchManager.ActiveTouches[touchManager.ActiveTouches.Count - 1].Id;
        }
        else if (s.name.Equals(resetBtn.name))
        {
            levelManager.revert();
            levelManager.paused = true;
            Time.timeScale      = 0;
        }
        else if (s.name.Equals(exitBtn.name))
        {
#if UNITY_EDITOR
            UnityEditor.EditorApplication.isPlaying = false;
#else
            Application.Quit();
#endif
        }
        else if (s.name.Equals(cameraBtn.name))
        {
            cameraOutline.SetActive(!cameraOutline.activeSelf);
            cameraPanel.SetActive(!cameraPanel.activeSelf);
            snapToGridBtn.GetComponent <Animator>().SetBool("Checked", snapToGrid);
        }
        else if (s.name.Equals(saveBtn.name))
        {
            System.Windows.Forms.SaveFileDialog sfd = new System.Windows.Forms.SaveFileDialog();
            sfd.Filter      = "Level Design TIME Save File (*.lts)|*.lts";
            sfd.FilterIndex = 0;

            if (sfd.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            {
                saveLoad.save(sfd.FileName);
            }
        }
        else if (s.name.Equals(loadBtn.name))
        {
            levelManager.paused = true;
            Time.timeScale      = 0;

            System.Windows.Forms.OpenFileDialog ofd = new System.Windows.Forms.OpenFileDialog();
            ofd.Filter      = "Level Design TIME Save File (*.lts)|*.lts";
            ofd.FilterIndex = 0;

            if (ofd.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            {
                levelManager.loading = true;
                loadingSign.SetActive(true);
                StartCoroutine(saveLoad.loadGame(ofd.FileName));
            }
        }
        else if (s.name.Equals(snapToGridBtn.name))
        {
            snapToGrid = !snapToGrid;
            snapToGridBtn.GetComponent <Animator>().SetBool("Checked", snapToGrid);
        }
        else if (s.name.Equals(bottomCamCanvas.name))
        {
            Vector2 touchPosition = Camera.main.ScreenToWorldPoint(touchManager.ActiveTouches[0].Position);

            PlacementUI.SetActive(true);

            if (activeKey != "" && (database[activeKey].first.tag == "PaintableBackground" || !levelManager.isObjectAtPosition(touchPosition)))
            {
                database[activeKey].first.SetActive(true);
                database[activeKey].second.SetActive(true);
            }

            if (activeKey != "" && database[activeKey].first.tag == "PaintableBackground")
            {
                if (database[activeKey].first.GetComponent <SpriteRenderer>() != null)
                {
                    PlaceObject(touchPosition, true);
                }
                else
                {
                    RemoveObject(true);
                }
                dragging          = true;
                dragStartPosition = touchPosition;
            }
            else if (levelManager.isObjectAtPosition(touchPosition))
            {
                dragging          = true;
                dragStartPosition = touchPosition;
            }
        }
    }
Ejemplo n.º 47
0
        private void ButtonAddo8cClick(object sender, RoutedEventArgs e)
        {
            if (installo8cprocessing)
            {
                return;
            }
            installo8cprocessing = true;
            var of = new System.Windows.Forms.OpenFileDialog();

            of.Multiselect = true;
            of.Filter      = "Octgn Card Package (*.o8c) |*.o8c";
            var result = of.ShowDialog();

            if (result == DialogResult.OK)
            {
                this.ProcessTask(
                    () =>
                {
                    foreach (var f in of.FileNames)
                    {
                        try
                        {
                            if (!File.Exists(f))
                            {
                                continue;
                            }
                            GameManager.Get().Installo8c(of.FileName);
                        }
                        catch (UserMessageException ex)
                        {
                            Log.Warn("Could not install o8c " + of.FileName + ".", ex);
                            TopMostMessageBox.Show(
                                ex.Message, "Error", MessageBoxButton.OK, MessageBoxImage.Error);
                        }
                        catch (Exception ex)
                        {
                            Log.Warn("Could not install o8c " + of.FileName + ".", ex);
                            TopMostMessageBox.Show(
                                "Could not install o8c " + of.FileName
                                + ". Please make sure it isn't in use and that you have access to it.",
                                "Error",
                                MessageBoxButton.OK,
                                MessageBoxImage.Error);
                        }
                    }
                },
                    () =>
                {
                    this.installo8cprocessing = false;
                    TopMostMessageBox.Show(
                        "The image packs were installed.",
                        "Install",
                        MessageBoxButton.OK,
                        MessageBoxImage.Information);
                },
                    "Installing image pack.",
                    "Please wait while your image pack is installed. You can switch tabs if you like.");
            }
            else
            {
                installo8cprocessing = false;
            }
        }
Ejemplo n.º 48
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.groupBox1              = new System.Windows.Forms.GroupBox();
     this.dataList               = new System.Windows.Forms.ListView();
     this.yColumnHeader          = new System.Windows.Forms.ColumnHeader();
     this.estimatedYColumnHeader = new System.Windows.Forms.ColumnHeader();
     this.loadDataButton         = new System.Windows.Forms.Button();
     this.openFileDialog         = new System.Windows.Forms.OpenFileDialog();
     this.groupBox2              = new System.Windows.Forms.GroupBox();
     this.chart                     = new Accord.Controls.Chart();
     this.groupBox3                 = new System.Windows.Forms.GroupBox();
     this.moreSettingsButton        = new System.Windows.Forms.Button();
     this.label10                   = new System.Windows.Forms.Label();
     this.iterationsBox             = new System.Windows.Forms.TextBox();
     this.label9                    = new System.Windows.Forms.Label();
     this.label8                    = new System.Windows.Forms.Label();
     this.predictionSizeBox         = new System.Windows.Forms.TextBox();
     this.label7                    = new System.Windows.Forms.Label();
     this.windowSizeBox             = new System.Windows.Forms.TextBox();
     this.label6                    = new System.Windows.Forms.Label();
     this.label5                    = new System.Windows.Forms.Label();
     this.geneticMethodBox          = new System.Windows.Forms.ComboBox();
     this.label4                    = new System.Windows.Forms.Label();
     this.functionsSetBox           = new System.Windows.Forms.ComboBox();
     this.label3                    = new System.Windows.Forms.Label();
     this.selectionBox              = new System.Windows.Forms.ComboBox();
     this.label2                    = new System.Windows.Forms.Label();
     this.populationSizeBox         = new System.Windows.Forms.TextBox();
     this.label1                    = new System.Windows.Forms.Label();
     this.startButton               = new System.Windows.Forms.Button();
     this.stopButton                = new System.Windows.Forms.Button();
     this.groupBox4                 = new System.Windows.Forms.GroupBox();
     this.currentPredictionErrorBox = new System.Windows.Forms.TextBox();
     this.label13                   = new System.Windows.Forms.Label();
     this.currentLearningErrorBox   = new System.Windows.Forms.TextBox();
     this.label12                   = new System.Windows.Forms.Label();
     this.currentIterationBox       = new System.Windows.Forms.TextBox();
     this.label11                   = new System.Windows.Forms.Label();
     this.groupBox5                 = new System.Windows.Forms.GroupBox();
     this.solutionBox               = new System.Windows.Forms.TextBox();
     this.toolTip                   = new System.Windows.Forms.ToolTip(this.components);
     this.groupBox1.SuspendLayout();
     this.groupBox2.SuspendLayout();
     this.groupBox3.SuspendLayout();
     this.groupBox4.SuspendLayout();
     this.groupBox5.SuspendLayout();
     this.SuspendLayout();
     //
     // groupBox1
     //
     this.groupBox1.Controls.Add(this.dataList);
     this.groupBox1.Controls.Add(this.loadDataButton);
     this.groupBox1.Location = new System.Drawing.Point(10, 10);
     this.groupBox1.Name     = "groupBox1";
     this.groupBox1.Size     = new System.Drawing.Size(180, 380);
     this.groupBox1.TabIndex = 0;
     this.groupBox1.TabStop  = false;
     this.groupBox1.Text     = "Data";
     //
     // dataList
     //
     this.dataList.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
         this.yColumnHeader,
         this.estimatedYColumnHeader
     });
     this.dataList.FullRowSelect = true;
     this.dataList.GridLines     = true;
     this.dataList.Location      = new System.Drawing.Point(10, 20);
     this.dataList.Name          = "dataList";
     this.dataList.Size          = new System.Drawing.Size(160, 315);
     this.dataList.TabIndex      = 1;
     this.dataList.View          = System.Windows.Forms.View.Details;
     //
     // yColumnHeader
     //
     this.yColumnHeader.Text  = "Y:Real";
     this.yColumnHeader.Width = 70;
     //
     // estimatedYColumnHeader
     //
     this.estimatedYColumnHeader.Text  = "Y:Estimated";
     this.estimatedYColumnHeader.Width = 70;
     //
     // loadDataButton
     //
     this.loadDataButton.Location = new System.Drawing.Point(10, 345);
     this.loadDataButton.Name     = "loadDataButton";
     this.loadDataButton.TabIndex = 1;
     this.loadDataButton.Text     = "&Load";
     this.loadDataButton.Click   += new System.EventHandler(this.loadDataButton_Click);
     //
     // openFileDialog
     //
     this.openFileDialog.Filter = "CSV (Comma delimited) (*.csv)|*.csv";
     this.openFileDialog.Title  = "Select data file";
     //
     // groupBox2
     //
     this.groupBox2.Controls.Add(this.chart);
     this.groupBox2.Location = new System.Drawing.Point(200, 10);
     this.groupBox2.Name     = "groupBox2";
     this.groupBox2.Size     = new System.Drawing.Size(300, 380);
     this.groupBox2.TabIndex = 1;
     this.groupBox2.TabStop  = false;
     this.groupBox2.Text     = "Function";
     //
     // chart
     //
     this.chart.Location = new System.Drawing.Point(10, 20);
     this.chart.Name     = "chart";
     this.chart.Size     = new System.Drawing.Size(280, 350);
     this.chart.TabIndex = 0;
     //
     // groupBox3
     //
     this.groupBox3.Controls.Add(this.moreSettingsButton);
     this.groupBox3.Controls.Add(this.label10);
     this.groupBox3.Controls.Add(this.iterationsBox);
     this.groupBox3.Controls.Add(this.label9);
     this.groupBox3.Controls.Add(this.label8);
     this.groupBox3.Controls.Add(this.predictionSizeBox);
     this.groupBox3.Controls.Add(this.label7);
     this.groupBox3.Controls.Add(this.windowSizeBox);
     this.groupBox3.Controls.Add(this.label6);
     this.groupBox3.Controls.Add(this.label5);
     this.groupBox3.Controls.Add(this.geneticMethodBox);
     this.groupBox3.Controls.Add(this.label4);
     this.groupBox3.Controls.Add(this.functionsSetBox);
     this.groupBox3.Controls.Add(this.label3);
     this.groupBox3.Controls.Add(this.selectionBox);
     this.groupBox3.Controls.Add(this.label2);
     this.groupBox3.Controls.Add(this.populationSizeBox);
     this.groupBox3.Controls.Add(this.label1);
     this.groupBox3.Location = new System.Drawing.Point(510, 10);
     this.groupBox3.Name     = "groupBox3";
     this.groupBox3.Size     = new System.Drawing.Size(185, 240);
     this.groupBox3.TabIndex = 2;
     this.groupBox3.TabStop  = false;
     this.groupBox3.Text     = "Settings";
     //
     // moreSettingsButton
     //
     this.moreSettingsButton.Font      = new System.Drawing.Font("Microsoft Sans Serif", 6.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(204)));
     this.moreSettingsButton.ForeColor = System.Drawing.SystemColors.ControlText;
     this.moreSettingsButton.Location  = new System.Drawing.Point(10, 220);
     this.moreSettingsButton.Name      = "moreSettingsButton";
     this.moreSettingsButton.Size      = new System.Drawing.Size(25, 15);
     this.moreSettingsButton.TabIndex  = 17;
     this.moreSettingsButton.Text      = ">>";
     this.toolTip.SetToolTip(this.moreSettingsButton, "More settings");
     this.moreSettingsButton.Click += new System.EventHandler(this.moreSettingsButton_Click);
     //
     // label10
     //
     this.label10.Font     = new System.Drawing.Font("Microsoft Sans Serif", 6.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
     this.label10.Location = new System.Drawing.Point(125, 220);
     this.label10.Name     = "label10";
     this.label10.Size     = new System.Drawing.Size(58, 14);
     this.label10.TabIndex = 16;
     this.label10.Text     = "( 0 - inifinity )";
     //
     // iterationsBox
     //
     this.iterationsBox.Location = new System.Drawing.Point(125, 200);
     this.iterationsBox.Name     = "iterationsBox";
     this.iterationsBox.Size     = new System.Drawing.Size(50, 20);
     this.iterationsBox.TabIndex = 15;
     this.iterationsBox.Text     = "";
     //
     // label9
     //
     this.label9.Location = new System.Drawing.Point(10, 202);
     this.label9.Name     = "label9";
     this.label9.Size     = new System.Drawing.Size(70, 16);
     this.label9.TabIndex = 14;
     this.label9.Text     = "Iterations:";
     //
     // label8
     //
     this.label8.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
     this.label8.Location    = new System.Drawing.Point(10, 190);
     this.label8.Name        = "label8";
     this.label8.Size        = new System.Drawing.Size(165, 2);
     this.label8.TabIndex    = 13;
     //
     // predictionSizeBox
     //
     this.predictionSizeBox.Location     = new System.Drawing.Point(125, 160);
     this.predictionSizeBox.Name         = "predictionSizeBox";
     this.predictionSizeBox.Size         = new System.Drawing.Size(50, 20);
     this.predictionSizeBox.TabIndex     = 12;
     this.predictionSizeBox.Text         = "";
     this.predictionSizeBox.TextChanged += new System.EventHandler(this.predictionSizeBox_TextChanged);
     //
     // label7
     //
     this.label7.Location = new System.Drawing.Point(10, 162);
     this.label7.Name     = "label7";
     this.label7.Size     = new System.Drawing.Size(90, 16);
     this.label7.TabIndex = 11;
     this.label7.Text     = "Prediction size:";
     //
     // windowSizeBox
     //
     this.windowSizeBox.Location     = new System.Drawing.Point(125, 135);
     this.windowSizeBox.Name         = "windowSizeBox";
     this.windowSizeBox.Size         = new System.Drawing.Size(50, 20);
     this.windowSizeBox.TabIndex     = 10;
     this.windowSizeBox.Text         = "";
     this.windowSizeBox.TextChanged += new System.EventHandler(this.windowSizeBox_TextChanged);
     //
     // label6
     //
     this.label6.Location = new System.Drawing.Point(10, 137);
     this.label6.Name     = "label6";
     this.label6.Size     = new System.Drawing.Size(80, 16);
     this.label6.TabIndex = 9;
     this.label6.Text     = "Window size:";
     //
     // label5
     //
     this.label5.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
     this.label5.Location    = new System.Drawing.Point(10, 125);
     this.label5.Name        = "label5";
     this.label5.Size        = new System.Drawing.Size(165, 2);
     this.label5.TabIndex    = 8;
     //
     // geneticMethodBox
     //
     this.geneticMethodBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.geneticMethodBox.Items.AddRange(new object[] {
         "GP",
         "GEP"
     });
     this.geneticMethodBox.Location = new System.Drawing.Point(110, 95);
     this.geneticMethodBox.Name     = "geneticMethodBox";
     this.geneticMethodBox.Size     = new System.Drawing.Size(65, 21);
     this.geneticMethodBox.TabIndex = 7;
     //
     // label4
     //
     this.label4.Location = new System.Drawing.Point(10, 97);
     this.label4.Name     = "label4";
     this.label4.Size     = new System.Drawing.Size(100, 16);
     this.label4.TabIndex = 6;
     this.label4.Text     = "Genetic method:";
     //
     // functionsSetBox
     //
     this.functionsSetBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.functionsSetBox.Items.AddRange(new object[] {
         "Simple",
         "Extended"
     });
     this.functionsSetBox.Location = new System.Drawing.Point(110, 70);
     this.functionsSetBox.Name     = "functionsSetBox";
     this.functionsSetBox.Size     = new System.Drawing.Size(65, 21);
     this.functionsSetBox.TabIndex = 5;
     //
     // label3
     //
     this.label3.Location = new System.Drawing.Point(10, 72);
     this.label3.Name     = "label3";
     this.label3.Size     = new System.Drawing.Size(100, 16);
     this.label3.TabIndex = 4;
     this.label3.Text     = "Function set:";
     //
     // selectionBox
     //
     this.selectionBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.selectionBox.Items.AddRange(new object[] {
         "Elite",
         "Rank",
         "Roulette"
     });
     this.selectionBox.Location = new System.Drawing.Point(110, 45);
     this.selectionBox.Name     = "selectionBox";
     this.selectionBox.Size     = new System.Drawing.Size(65, 21);
     this.selectionBox.TabIndex = 3;
     //
     // label2
     //
     this.label2.Location = new System.Drawing.Point(10, 47);
     this.label2.Name     = "label2";
     this.label2.Size     = new System.Drawing.Size(100, 16);
     this.label2.TabIndex = 2;
     this.label2.Text     = "Selection method:";
     //
     // populationSizeBox
     //
     this.populationSizeBox.Location = new System.Drawing.Point(125, 20);
     this.populationSizeBox.Name     = "populationSizeBox";
     this.populationSizeBox.Size     = new System.Drawing.Size(50, 20);
     this.populationSizeBox.TabIndex = 1;
     this.populationSizeBox.Text     = "";
     //
     // label1
     //
     this.label1.Location = new System.Drawing.Point(10, 22);
     this.label1.Name     = "label1";
     this.label1.Size     = new System.Drawing.Size(100, 16);
     this.label1.TabIndex = 0;
     this.label1.Text     = "Population size:";
     //
     // startButton
     //
     this.startButton.Enabled  = false;
     this.startButton.Location = new System.Drawing.Point(535, 364);
     this.startButton.Name     = "startButton";
     this.startButton.TabIndex = 3;
     this.startButton.Text     = "&Start";
     this.startButton.Click   += new System.EventHandler(this.startButton_Click);
     //
     // stopButton
     //
     this.stopButton.Enabled  = false;
     this.stopButton.Location = new System.Drawing.Point(620, 364);
     this.stopButton.Name     = "stopButton";
     this.stopButton.TabIndex = 4;
     this.stopButton.Text     = "S&top";
     this.stopButton.Click   += new System.EventHandler(this.stopButton_Click);
     //
     // groupBox4
     //
     this.groupBox4.Controls.Add(this.currentPredictionErrorBox);
     this.groupBox4.Controls.Add(this.label13);
     this.groupBox4.Controls.Add(this.currentLearningErrorBox);
     this.groupBox4.Controls.Add(this.label12);
     this.groupBox4.Controls.Add(this.currentIterationBox);
     this.groupBox4.Controls.Add(this.label11);
     this.groupBox4.Location = new System.Drawing.Point(510, 255);
     this.groupBox4.Name     = "groupBox4";
     this.groupBox4.Size     = new System.Drawing.Size(185, 100);
     this.groupBox4.TabIndex = 5;
     this.groupBox4.TabStop  = false;
     this.groupBox4.Text     = "Current iteration:";
     //
     // currentPredictionErrorBox
     //
     this.currentPredictionErrorBox.Location = new System.Drawing.Point(125, 70);
     this.currentPredictionErrorBox.Name     = "currentPredictionErrorBox";
     this.currentPredictionErrorBox.ReadOnly = true;
     this.currentPredictionErrorBox.Size     = new System.Drawing.Size(50, 20);
     this.currentPredictionErrorBox.TabIndex = 5;
     this.currentPredictionErrorBox.Text     = "";
     //
     // label13
     //
     this.label13.Location = new System.Drawing.Point(10, 72);
     this.label13.Name     = "label13";
     this.label13.Size     = new System.Drawing.Size(100, 16);
     this.label13.TabIndex = 4;
     this.label13.Text     = "Prediction error:";
     //
     // currentLearningErrorBox
     //
     this.currentLearningErrorBox.Location = new System.Drawing.Point(125, 45);
     this.currentLearningErrorBox.Name     = "currentLearningErrorBox";
     this.currentLearningErrorBox.ReadOnly = true;
     this.currentLearningErrorBox.Size     = new System.Drawing.Size(50, 20);
     this.currentLearningErrorBox.TabIndex = 3;
     this.currentLearningErrorBox.Text     = "";
     //
     // label12
     //
     this.label12.Location = new System.Drawing.Point(10, 47);
     this.label12.Name     = "label12";
     this.label12.Size     = new System.Drawing.Size(80, 16);
     this.label12.TabIndex = 2;
     this.label12.Text     = "Learning error:";
     //
     // currentIterationBox
     //
     this.currentIterationBox.Location = new System.Drawing.Point(125, 20);
     this.currentIterationBox.Name     = "currentIterationBox";
     this.currentIterationBox.ReadOnly = true;
     this.currentIterationBox.Size     = new System.Drawing.Size(50, 20);
     this.currentIterationBox.TabIndex = 1;
     this.currentIterationBox.Text     = "";
     //
     // label11
     //
     this.label11.Location = new System.Drawing.Point(10, 22);
     this.label11.Name     = "label11";
     this.label11.Size     = new System.Drawing.Size(70, 16);
     this.label11.TabIndex = 0;
     this.label11.Text     = "Iteration:";
     //
     // groupBox5
     //
     this.groupBox5.Controls.Add(this.solutionBox);
     this.groupBox5.Location = new System.Drawing.Point(10, 395);
     this.groupBox5.Name     = "groupBox5";
     this.groupBox5.Size     = new System.Drawing.Size(685, 50);
     this.groupBox5.TabIndex = 6;
     this.groupBox5.TabStop  = false;
     this.groupBox5.Text     = "Solution";
     //
     // solutionBox
     //
     this.solutionBox.Location = new System.Drawing.Point(10, 20);
     this.solutionBox.Name     = "solutionBox";
     this.solutionBox.ReadOnly = true;
     this.solutionBox.Size     = new System.Drawing.Size(665, 20);
     this.solutionBox.TabIndex = 0;
     this.solutionBox.Text     = "";
     //
     // MainForm
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.ClientSize        = new System.Drawing.Size(704, 455);
     this.Controls.Add(this.groupBox5);
     this.Controls.Add(this.groupBox4);
     this.Controls.Add(this.stopButton);
     this.Controls.Add(this.startButton);
     this.Controls.Add(this.groupBox3);
     this.Controls.Add(this.groupBox2);
     this.Controls.Add(this.groupBox1);
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
     this.MaximizeBox     = false;
     this.Name            = "MainForm";
     this.Text            = "Time Series Prediction using Genetic Programming and Gene Expression Programming";
     this.Closing        += new System.ComponentModel.CancelEventHandler(this.MainForm_Closing);
     this.groupBox1.ResumeLayout(false);
     this.groupBox2.ResumeLayout(false);
     this.groupBox3.ResumeLayout(false);
     this.groupBox4.ResumeLayout(false);
     this.groupBox5.ResumeLayout(false);
     this.ResumeLayout(false);
 }
Ejemplo 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._selectMigrationPlan = new VersionMigratorGUI.FileSelectionPane();
     this._selectAssembly      = new VersionMigratorGUI.FileSelectionPane();
     this._selectSourceFile    = new VersionMigratorGUI.FileSelectionPane();
     this._selectTargetFile    = new VersionMigratorGUI.FileSelectionPane();
     this._btnMigrate          = new System.Windows.Forms.Button();
     this._dlgSelectAssembly   = new System.Windows.Forms.OpenFileDialog();
     this._menu     = new System.Windows.Forms.MainMenu();
     this.menuItem1 = new System.Windows.Forms.MenuItem();
     this._miNew    = new System.Windows.Forms.MenuItem();
     this._miOpen   = new System.Windows.Forms.MenuItem();
     this._miSave   = new System.Windows.Forms.MenuItem();
     this._miSaveAs = new System.Windows.Forms.MenuItem();
     this.menuItem6 = new System.Windows.Forms.MenuItem();
     this._miExit   = new System.Windows.Forms.MenuItem();
     this._dlgOpen  = new System.Windows.Forms.OpenFileDialog();
     this._dlgSave  = new System.Windows.Forms.SaveFileDialog();
     this.SuspendLayout();
     //
     // _selectMigrationPlan
     //
     this._selectMigrationPlan.Anchor = ((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                                         | System.Windows.Forms.AnchorStyles.Right);
     this._selectMigrationPlan.FileMode         = VersionMigratorGUI.FileSelectionPaneFileMode.Open;
     this._selectMigrationPlan.FileName         = "";
     this._selectMigrationPlan.Filter           = "XML Files|*.xml|All Files (*.*)|*.*";
     this._selectMigrationPlan.Label            = "Migration Plan";
     this._selectMigrationPlan.Location         = new System.Drawing.Point(4, 8);
     this._selectMigrationPlan.Name             = "_selectMigrationPlan";
     this._selectMigrationPlan.Size             = new System.Drawing.Size(408, 40);
     this._selectMigrationPlan.TabIndex         = 0;
     this._selectMigrationPlan.FileNameChanged += new System.EventHandler(this._selectMigrationPlan_FileNameChanged);
     //
     // _selectAssembly
     //
     this._selectAssembly.Anchor = ((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                                    | System.Windows.Forms.AnchorStyles.Right);
     this._selectAssembly.FileMode         = VersionMigratorGUI.FileSelectionPaneFileMode.Open;
     this._selectAssembly.FileName         = "";
     this._selectAssembly.Filter           = "Libraries (*.dll)|*.dll|Executables (*.exe)|*.exe|All Files (*.*)|*.*";
     this._selectAssembly.Label            = "Main Assembly";
     this._selectAssembly.Location         = new System.Drawing.Point(4, 56);
     this._selectAssembly.Name             = "_selectAssembly";
     this._selectAssembly.Size             = new System.Drawing.Size(408, 40);
     this._selectAssembly.TabIndex         = 1;
     this._selectAssembly.FileNameChanged += new System.EventHandler(this._selectAssembly_FileNameChanged);
     //
     // _selectSourceFile
     //
     this._selectSourceFile.Anchor = ((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                                      | System.Windows.Forms.AnchorStyles.Right);
     this._selectSourceFile.FileMode = VersionMigratorGUI.FileSelectionPaneFileMode.Open;
     this._selectSourceFile.FileName = "";
     this._selectSourceFile.Filter   = "Bamboo.Prevalence Snapshots|*.snapshot|Data Files (*.dat)|*.dat|All Files (*.*)|*" +
                                       ".*";
     this._selectSourceFile.Label            = "Source File";
     this._selectSourceFile.Location         = new System.Drawing.Point(4, 104);
     this._selectSourceFile.Name             = "_selectSourceFile";
     this._selectSourceFile.Size             = new System.Drawing.Size(408, 40);
     this._selectSourceFile.TabIndex         = 2;
     this._selectSourceFile.FileNameChanged += new System.EventHandler(this._selectSourceFile_FileNameChanged);
     //
     // _selectTargetFile
     //
     this._selectTargetFile.Anchor = ((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                                      | System.Windows.Forms.AnchorStyles.Right);
     this._selectTargetFile.FileMode         = VersionMigratorGUI.FileSelectionPaneFileMode.Save;
     this._selectTargetFile.FileName         = "";
     this._selectTargetFile.Filter           = "All Files (*.*)|*.*";
     this._selectTargetFile.Label            = "Target File";
     this._selectTargetFile.Location         = new System.Drawing.Point(4, 152);
     this._selectTargetFile.Name             = "_selectTargetFile";
     this._selectTargetFile.Size             = new System.Drawing.Size(408, 40);
     this._selectTargetFile.TabIndex         = 3;
     this._selectTargetFile.FileNameChanged += new System.EventHandler(this._selectTargetFile_FileNameChanged);
     //
     // _btnMigrate
     //
     this._btnMigrate.Anchor = ((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                                | System.Windows.Forms.AnchorStyles.Right);
     this._btnMigrate.Location = new System.Drawing.Point(160, 200);
     this._btnMigrate.Name     = "_btnMigrate";
     this._btnMigrate.TabIndex = 4;
     this._btnMigrate.Text     = "Migrate";
     this._btnMigrate.Click   += new System.EventHandler(this._btnMigrate_Click);
     //
     // _dlgSelectAssembly
     //
     this._dlgSelectAssembly.DefaultExt = "dll";
     this._dlgSelectAssembly.Filter     = "Assemblies (*.dll)|*.dll|Assemblies (*.exe)|*.exe|Todos os Arquivos (*.*)|*.*";
     this._dlgSelectAssembly.Title      = "Selecione o Assembly";
     //
     // _menu
     //
     this._menu.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
         this.menuItem1
     });
     //
     // menuItem1
     //
     this.menuItem1.Index = 0;
     this.menuItem1.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
         this._miNew,
         this._miOpen,
         this._miSave,
         this._miSaveAs,
         this.menuItem6,
         this._miExit
     });
     this.menuItem1.Text = "&File";
     //
     // _miNew
     //
     this._miNew.Index  = 0;
     this._miNew.Text   = "&New";
     this._miNew.Click += new System.EventHandler(this._miNew_Click);
     //
     // _miOpen
     //
     this._miOpen.Index  = 1;
     this._miOpen.Text   = "&Open...";
     this._miOpen.Click += new System.EventHandler(this._miOpen_Click);
     //
     // _miSave
     //
     this._miSave.Index  = 2;
     this._miSave.Text   = "&Save";
     this._miSave.Click += new System.EventHandler(this._miSave_Click);
     //
     // _miSaveAs
     //
     this._miSaveAs.Index  = 3;
     this._miSaveAs.Text   = "Save &as...";
     this._miSaveAs.Click += new System.EventHandler(this._miSaveAs_Click);
     //
     // menuItem6
     //
     this.menuItem6.Index = 4;
     this.menuItem6.Text  = "-";
     //
     // _miExit
     //
     this._miExit.Index  = 5;
     this._miExit.Text   = "E&xit";
     this._miExit.Click += new System.EventHandler(this._miExit_Click);
     //
     // _dlgOpen
     //
     this._dlgOpen.DefaultExt = "xml";
     this._dlgOpen.Filter     = "Project Files (*.xml)|*.xml|All Files (*.*)|*.*";
     //
     // _dlgSave
     //
     this._dlgSave.DefaultExt = "xml";
     this._dlgSave.Filter     = "Project Files (*.xml)|*.xml|All Files (*.*)|*.*";
     //
     // MainForm
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 14);
     this.ClientSize        = new System.Drawing.Size(408, 237);
     this.Controls.AddRange(new System.Windows.Forms.Control[] {
         this._btnMigrate,
         this._selectTargetFile,
         this._selectSourceFile,
         this._selectAssembly,
         this._selectMigrationPlan
     });
     this.Font     = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
     this.Menu     = this._menu;
     this.Name     = "MainForm";
     this.Text     = "Version Migrator 0.1";
     this.Closing += new System.ComponentModel.CancelEventHandler(this.MainForm_Closing);
     this.ResumeLayout(false);
 }
Ejemplo n.º 50
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(MainGUI));
     this.mainMenu1       = new System.Windows.Forms.MainMenu();
     this.menuItem1       = new System.Windows.Forms.MenuItem();
     this.menuItem2       = new System.Windows.Forms.MenuItem();
     this.menuItem3       = new System.Windows.Forms.MenuItem();
     this.menuItem4       = new System.Windows.Forms.MenuItem();
     this.menuItem5       = new System.Windows.Forms.MenuItem();
     this.openFileDialog1 = new System.Windows.Forms.OpenFileDialog();
     //
     // mainMenu1
     //
     this.mainMenu1.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
         this.menuItem1,
         this.menuItem5
     });
     //
     // menuItem1
     //
     this.menuItem1.Index = 0;
     this.menuItem1.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
         this.menuItem2,
         this.menuItem3,
         this.menuItem4
     });
     this.menuItem1.Text = "File";
     //
     // menuItem2
     //
     this.menuItem2.Index  = 0;
     this.menuItem2.Text   = "Open";
     this.menuItem2.Click += new System.EventHandler(this.menuItem2_Click);
     //
     // menuItem3
     //
     this.menuItem3.Index = 1;
     this.menuItem3.Text  = "-";
     //
     // menuItem4
     //
     this.menuItem4.Index  = 2;
     this.menuItem4.Text   = "Exit";
     this.menuItem4.Click += new System.EventHandler(this.menuItem4_Click);
     //
     // menuItem5
     //
     this.menuItem5.Index   = 1;
     this.menuItem5.MdiList = true;
     this.menuItem5.Text    = "Window";
     //
     // MainGUI
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.ClientSize        = new System.Drawing.Size(736, 566);
     this.Icon           = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
     this.IsMdiContainer = true;
     this.Menu           = this.mainMenu1;
     this.Name           = "MainGUI";
     this.Text           = "DXF Reader";
     this.Load          += new System.EventHandler(this.Form1_Load);
 }
Ejemplo n.º 51
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.tab1            = new System.Windows.Forms.TabControl();
     this.tabPage1        = new System.Windows.Forms.TabPage();
     this.btnSavePri      = new System.Windows.Forms.Button();
     this.btnSave         = new System.Windows.Forms.Button();
     this.label6          = new System.Windows.Forms.Label();
     this.label5          = new System.Windows.Forms.Label();
     this.btnDecrypt      = new System.Windows.Forms.Button();
     this.btnEncrypt      = new System.Windows.Forms.Button();
     this.txtCipherText   = new System.Windows.Forms.TextBox();
     this.txtClearText    = new System.Windows.Forms.TextBox();
     this.txtPrvParams    = new System.Windows.Forms.TextBox();
     this.label4          = new System.Windows.Forms.Label();
     this.txtPubParams    = new System.Windows.Forms.TextBox();
     this.label3          = new System.Windows.Forms.Label();
     this.tabPage2        = new System.Windows.Forms.TabPage();
     this.btnLoadPri      = new System.Windows.Forms.Button();
     this.btnLoadPub      = new System.Windows.Forms.Button();
     this.label1          = new System.Windows.Forms.Label();
     this.label2          = new System.Windows.Forms.Label();
     this.btnDecrypt1     = new System.Windows.Forms.Button();
     this.btnEncrypt1     = new System.Windows.Forms.Button();
     this.txtCipherText1  = new System.Windows.Forms.TextBox();
     this.txtClearText1   = new System.Windows.Forms.TextBox();
     this.txtPriParams1   = new System.Windows.Forms.TextBox();
     this.label7          = new System.Windows.Forms.Label();
     this.txtPubParams1   = new System.Windows.Forms.TextBox();
     this.label8          = new System.Windows.Forms.Label();
     this.saveFileDialog1 = new System.Windows.Forms.SaveFileDialog();
     this.openFileDialog1 = new System.Windows.Forms.OpenFileDialog();
     this.tab1.SuspendLayout();
     this.tabPage1.SuspendLayout();
     this.tabPage2.SuspendLayout();
     this.SuspendLayout();
     //
     // tab1
     //
     this.tab1.Controls.Add(this.tabPage1);
     this.tab1.Controls.Add(this.tabPage2);
     this.tab1.Dock          = System.Windows.Forms.DockStyle.Fill;
     this.tab1.Location      = new System.Drawing.Point(0, 0);
     this.tab1.Name          = "tab1";
     this.tab1.SelectedIndex = 0;
     this.tab1.Size          = new System.Drawing.Size(736, 486);
     this.tab1.TabIndex      = 1;
     //
     // tabPage1
     //
     this.tabPage1.Controls.Add(this.btnSavePri);
     this.tabPage1.Controls.Add(this.btnSave);
     this.tabPage1.Controls.Add(this.label6);
     this.tabPage1.Controls.Add(this.label5);
     this.tabPage1.Controls.Add(this.btnDecrypt);
     this.tabPage1.Controls.Add(this.btnEncrypt);
     this.tabPage1.Controls.Add(this.txtCipherText);
     this.tabPage1.Controls.Add(this.txtClearText);
     this.tabPage1.Controls.Add(this.txtPrvParams);
     this.tabPage1.Controls.Add(this.label4);
     this.tabPage1.Controls.Add(this.txtPubParams);
     this.tabPage1.Controls.Add(this.label3);
     this.tabPage1.Location = new System.Drawing.Point(4, 22);
     this.tabPage1.Name     = "tabPage1";
     this.tabPage1.Size     = new System.Drawing.Size(728, 460);
     this.tabPage1.TabIndex = 0;
     this.tabPage1.Text     = "Auto Keys";
     //
     // btnSavePri
     //
     this.btnSavePri.Anchor   = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.btnSavePri.Location = new System.Drawing.Point(632, 424);
     this.btnSavePri.Name     = "btnSavePri";
     this.btnSavePri.Size     = new System.Drawing.Size(88, 23);
     this.btnSavePri.TabIndex = 30;
     this.btnSavePri.Text     = "Save As...";
     this.btnSavePri.Click   += new System.EventHandler(this.btnSavePri_Click);
     //
     // btnSave
     //
     this.btnSave.Anchor   = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.btnSave.Location = new System.Drawing.Point(632, 240);
     this.btnSave.Name     = "btnSave";
     this.btnSave.Size     = new System.Drawing.Size(88, 23);
     this.btnSave.TabIndex = 29;
     this.btnSave.Text     = "Save As...";
     this.btnSave.Click   += new System.EventHandler(this.btnSave_Click);
     //
     // label6
     //
     this.label6.AutoSize = true;
     this.label6.Font     = new System.Drawing.Font("Verdana", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
     this.label6.Location = new System.Drawing.Point(4, 48);
     this.label6.Name     = "label6";
     this.label6.Size     = new System.Drawing.Size(89, 18);
     this.label6.TabIndex = 28;
     this.label6.Text     = "Cipher Text:";
     //
     // label5
     //
     this.label5.AutoSize = true;
     this.label5.Font     = new System.Drawing.Font("Verdana", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
     this.label5.Location = new System.Drawing.Point(8, 16);
     this.label5.Name     = "label5";
     this.label5.Size     = new System.Drawing.Size(80, 18);
     this.label5.TabIndex = 27;
     this.label5.Text     = "Clear Text:";
     //
     // btnDecrypt
     //
     this.btnDecrypt.Anchor   = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.btnDecrypt.Font     = new System.Drawing.Font("Trebuchet MS", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
     this.btnDecrypt.Location = new System.Drawing.Point(632, 72);
     this.btnDecrypt.Name     = "btnDecrypt";
     this.btnDecrypt.Size     = new System.Drawing.Size(88, 32);
     this.btnDecrypt.TabIndex = 26;
     this.btnDecrypt.Text     = "&Decrypt";
     this.btnDecrypt.Click   += new System.EventHandler(this.btnDecrypt_Click);
     //
     // btnEncrypt
     //
     this.btnEncrypt.Anchor   = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.btnEncrypt.Font     = new System.Drawing.Font("Trebuchet MS", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
     this.btnEncrypt.Location = new System.Drawing.Point(632, 16);
     this.btnEncrypt.Name     = "btnEncrypt";
     this.btnEncrypt.Size     = new System.Drawing.Size(88, 32);
     this.btnEncrypt.TabIndex = 25;
     this.btnEncrypt.Text     = "&Encrypt";
     this.btnEncrypt.Click   += new System.EventHandler(this.btnEncrypt_Click);
     //
     // txtCipherText
     //
     this.txtCipherText.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                                                                       | System.Windows.Forms.AnchorStyles.Right)));
     this.txtCipherText.Font       = new System.Drawing.Font("Trebuchet MS", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
     this.txtCipherText.Location   = new System.Drawing.Point(96, 48);
     this.txtCipherText.Multiline  = true;
     this.txtCipherText.Name       = "txtCipherText";
     this.txtCipherText.ScrollBars = System.Windows.Forms.ScrollBars.Vertical;
     this.txtCipherText.Size       = new System.Drawing.Size(520, 80);
     this.txtCipherText.TabIndex   = 24;
     this.txtCipherText.Text       = "";
     //
     // txtClearText
     //
     this.txtClearText.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                                                                      | System.Windows.Forms.AnchorStyles.Right)));
     this.txtClearText.Font     = new System.Drawing.Font("Trebuchet MS", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
     this.txtClearText.Location = new System.Drawing.Point(96, 16);
     this.txtClearText.Name     = "txtClearText";
     this.txtClearText.Size     = new System.Drawing.Size(520, 23);
     this.txtClearText.TabIndex = 23;
     this.txtClearText.Text     = "";
     //
     // txtPrvParams
     //
     this.txtPrvParams.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.txtPrvParams.Font       = new System.Drawing.Font("Trebuchet MS", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
     this.txtPrvParams.Location   = new System.Drawing.Point(8, 280);
     this.txtPrvParams.MaxLength  = 37000;
     this.txtPrvParams.Multiline  = true;
     this.txtPrvParams.Name       = "txtPrvParams";
     this.txtPrvParams.ScrollBars = System.Windows.Forms.ScrollBars.Vertical;
     this.txtPrvParams.Size       = new System.Drawing.Size(712, 144);
     this.txtPrvParams.TabIndex   = 22;
     this.txtPrvParams.Text       = "";
     //
     // label4
     //
     this.label4.AutoSize = true;
     this.label4.Font     = new System.Drawing.Font("Verdana", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
     this.label4.Location = new System.Drawing.Point(8, 264);
     this.label4.Name     = "label4";
     this.label4.Size     = new System.Drawing.Size(220, 18);
     this.label4.TabIndex = 21;
     this.label4.Text     = "Public and Private Parameters:";
     //
     // txtPubParams
     //
     this.txtPubParams.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                                                                      | System.Windows.Forms.AnchorStyles.Right)));
     this.txtPubParams.Font       = new System.Drawing.Font("Trebuchet MS", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
     this.txtPubParams.Location   = new System.Drawing.Point(8, 152);
     this.txtPubParams.MaxLength  = 37000;
     this.txtPubParams.Multiline  = true;
     this.txtPubParams.Name       = "txtPubParams";
     this.txtPubParams.ScrollBars = System.Windows.Forms.ScrollBars.Vertical;
     this.txtPubParams.Size       = new System.Drawing.Size(712, 88);
     this.txtPubParams.TabIndex   = 20;
     this.txtPubParams.Text       = "";
     //
     // label3
     //
     this.label3.AutoSize = true;
     this.label3.Font     = new System.Drawing.Font("Verdana", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
     this.label3.Location = new System.Drawing.Point(8, 136);
     this.label3.Name     = "label3";
     this.label3.Size     = new System.Drawing.Size(136, 18);
     this.label3.TabIndex = 19;
     this.label3.Text     = "Public Parameters:";
     //
     // tabPage2
     //
     this.tabPage2.Controls.Add(this.btnLoadPri);
     this.tabPage2.Controls.Add(this.btnLoadPub);
     this.tabPage2.Controls.Add(this.label1);
     this.tabPage2.Controls.Add(this.label2);
     this.tabPage2.Controls.Add(this.btnDecrypt1);
     this.tabPage2.Controls.Add(this.btnEncrypt1);
     this.tabPage2.Controls.Add(this.txtCipherText1);
     this.tabPage2.Controls.Add(this.txtClearText1);
     this.tabPage2.Controls.Add(this.txtPriParams1);
     this.tabPage2.Controls.Add(this.label7);
     this.tabPage2.Controls.Add(this.txtPubParams1);
     this.tabPage2.Controls.Add(this.label8);
     this.tabPage2.Location = new System.Drawing.Point(4, 22);
     this.tabPage2.Name     = "tabPage2";
     this.tabPage2.Size     = new System.Drawing.Size(728, 460);
     this.tabPage2.TabIndex = 1;
     this.tabPage2.Text     = "Keys From XML File";
     this.tabPage2.Visible  = false;
     //
     // btnLoadPri
     //
     this.btnLoadPri.Anchor   = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.btnLoadPri.Location = new System.Drawing.Point(616, 272);
     this.btnLoadPri.Name     = "btnLoadPri";
     this.btnLoadPri.Size     = new System.Drawing.Size(104, 23);
     this.btnLoadPri.TabIndex = 40;
     this.btnLoadPri.Text     = "Load from XML...";
     this.btnLoadPri.Click   += new System.EventHandler(this.btnLoadPri_Click);
     //
     // btnLoadPub
     //
     this.btnLoadPub.Anchor   = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.btnLoadPub.Location = new System.Drawing.Point(616, 144);
     this.btnLoadPub.Name     = "btnLoadPub";
     this.btnLoadPub.Size     = new System.Drawing.Size(104, 23);
     this.btnLoadPub.TabIndex = 39;
     this.btnLoadPub.Text     = "Load from XML...";
     this.btnLoadPub.Click   += new System.EventHandler(this.btnLoadPub_Click);
     //
     // label1
     //
     this.label1.AutoSize = true;
     this.label1.Font     = new System.Drawing.Font("Verdana", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
     this.label1.Location = new System.Drawing.Point(12, 40);
     this.label1.Name     = "label1";
     this.label1.Size     = new System.Drawing.Size(89, 18);
     this.label1.TabIndex = 38;
     this.label1.Text     = "Cipher Text:";
     //
     // label2
     //
     this.label2.AutoSize = true;
     this.label2.Font     = new System.Drawing.Font("Verdana", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
     this.label2.Location = new System.Drawing.Point(16, 8);
     this.label2.Name     = "label2";
     this.label2.Size     = new System.Drawing.Size(80, 18);
     this.label2.TabIndex = 37;
     this.label2.Text     = "Clear Text:";
     //
     // btnDecrypt1
     //
     this.btnDecrypt1.Anchor   = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.btnDecrypt1.Enabled  = false;
     this.btnDecrypt1.Font     = new System.Drawing.Font("Trebuchet MS", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
     this.btnDecrypt1.Location = new System.Drawing.Point(632, 80);
     this.btnDecrypt1.Name     = "btnDecrypt1";
     this.btnDecrypt1.Size     = new System.Drawing.Size(88, 32);
     this.btnDecrypt1.TabIndex = 36;
     this.btnDecrypt1.Text     = "&Decrypt";
     this.btnDecrypt1.Click   += new System.EventHandler(this.btnDecrypt1_Click);
     //
     // btnEncrypt1
     //
     this.btnEncrypt1.Anchor   = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.btnEncrypt1.Enabled  = false;
     this.btnEncrypt1.Font     = new System.Drawing.Font("Trebuchet MS", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
     this.btnEncrypt1.Location = new System.Drawing.Point(632, 8);
     this.btnEncrypt1.Name     = "btnEncrypt1";
     this.btnEncrypt1.Size     = new System.Drawing.Size(88, 32);
     this.btnEncrypt1.TabIndex = 35;
     this.btnEncrypt1.Text     = "&Encrypt";
     this.btnEncrypt1.Click   += new System.EventHandler(this.btnEncrypt1_Click);
     //
     // txtCipherText1
     //
     this.txtCipherText1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                                                                        | System.Windows.Forms.AnchorStyles.Right)));
     this.txtCipherText1.Font       = new System.Drawing.Font("Trebuchet MS", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
     this.txtCipherText1.Location   = new System.Drawing.Point(104, 40);
     this.txtCipherText1.Multiline  = true;
     this.txtCipherText1.Name       = "txtCipherText1";
     this.txtCipherText1.ScrollBars = System.Windows.Forms.ScrollBars.Vertical;
     this.txtCipherText1.Size       = new System.Drawing.Size(496, 88);
     this.txtCipherText1.TabIndex   = 34;
     this.txtCipherText1.Text       = "";
     //
     // txtClearText1
     //
     this.txtClearText1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                                                                       | System.Windows.Forms.AnchorStyles.Right)));
     this.txtClearText1.Font     = new System.Drawing.Font("Trebuchet MS", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
     this.txtClearText1.Location = new System.Drawing.Point(104, 8);
     this.txtClearText1.Name     = "txtClearText1";
     this.txtClearText1.Size     = new System.Drawing.Size(496, 23);
     this.txtClearText1.TabIndex = 33;
     this.txtClearText1.Text     = "";
     //
     // txtPriParams1
     //
     this.txtPriParams1.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.txtPriParams1.Font       = new System.Drawing.Font("Trebuchet MS", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
     this.txtPriParams1.Location   = new System.Drawing.Point(8, 296);
     this.txtPriParams1.MaxLength  = 37000;
     this.txtPriParams1.Multiline  = true;
     this.txtPriParams1.Name       = "txtPriParams1";
     this.txtPriParams1.ScrollBars = System.Windows.Forms.ScrollBars.Vertical;
     this.txtPriParams1.Size       = new System.Drawing.Size(712, 152);
     this.txtPriParams1.TabIndex   = 32;
     this.txtPriParams1.Text       = "";
     //
     // label7
     //
     this.label7.AutoSize = true;
     this.label7.Font     = new System.Drawing.Font("Verdana", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
     this.label7.Location = new System.Drawing.Point(8, 280);
     this.label7.Name     = "label7";
     this.label7.Size     = new System.Drawing.Size(220, 18);
     this.label7.TabIndex = 31;
     this.label7.Text     = "Public and Private Parameters:";
     //
     // txtPubParams1
     //
     this.txtPubParams1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                                                                       | System.Windows.Forms.AnchorStyles.Right)));
     this.txtPubParams1.Font       = new System.Drawing.Font("Trebuchet MS", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
     this.txtPubParams1.Location   = new System.Drawing.Point(8, 168);
     this.txtPubParams1.MaxLength  = 37000;
     this.txtPubParams1.Multiline  = true;
     this.txtPubParams1.Name       = "txtPubParams1";
     this.txtPubParams1.ScrollBars = System.Windows.Forms.ScrollBars.Vertical;
     this.txtPubParams1.Size       = new System.Drawing.Size(712, 88);
     this.txtPubParams1.TabIndex   = 30;
     this.txtPubParams1.Text       = "";
     //
     // label8
     //
     this.label8.AutoSize = true;
     this.label8.Font     = new System.Drawing.Font("Verdana", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
     this.label8.Location = new System.Drawing.Point(8, 152);
     this.label8.Name     = "label8";
     this.label8.Size     = new System.Drawing.Size(136, 18);
     this.label8.TabIndex = 29;
     this.label8.Text     = "Public Parameters:";
     //
     // saveFileDialog1
     //
     this.saveFileDialog1.FileName = "doc1";
     //
     // Form1
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.ClientSize        = new System.Drawing.Size(736, 486);
     this.Controls.Add(this.tab1);
     this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
     this.Name = "Form1";
     this.Text = "Message Crypter 1.0 - RSA Algorithm Version";
     this.tab1.ResumeLayout(false);
     this.tabPage1.ResumeLayout(false);
     this.tabPage2.ResumeLayout(false);
     this.ResumeLayout(false);
 }
Ejemplo 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.pictureBox1     = new System.Windows.Forms.PictureBox();
     this.tabControl1     = new System.Windows.Forms.TabControl();
     this.tabPage1        = new System.Windows.Forms.TabPage();
     this.button1         = new System.Windows.Forms.Button();
     this.label5          = new System.Windows.Forms.Label();
     this.label1          = new System.Windows.Forms.Label();
     this.tabPage2        = new System.Windows.Forms.TabPage();
     this.button2         = new System.Windows.Forms.Button();
     this.label2          = new System.Windows.Forms.Label();
     this.tabPage3        = new System.Windows.Forms.TabPage();
     this.label17         = new System.Windows.Forms.Label();
     this.progressBar1    = new System.Windows.Forms.ProgressBar();
     this.label9          = new System.Windows.Forms.Label();
     this.label8          = new System.Windows.Forms.Label();
     this.trackBar3       = new System.Windows.Forms.TrackBar();
     this.button5         = new System.Windows.Forms.Button();
     this.button4         = new System.Windows.Forms.Button();
     this.button3         = new System.Windows.Forms.Button();
     this.label3          = new System.Windows.Forms.Label();
     this.tabPage4        = new System.Windows.Forms.TabPage();
     this.label16         = new System.Windows.Forms.Label();
     this.label15         = new System.Windows.Forms.Label();
     this.label14         = new System.Windows.Forms.Label();
     this.label13         = new System.Windows.Forms.Label();
     this.label12         = new System.Windows.Forms.Label();
     this.label11         = new System.Windows.Forms.Label();
     this.label10         = new System.Windows.Forms.Label();
     this.trackBar4       = new System.Windows.Forms.TrackBar();
     this.label4          = new System.Windows.Forms.Label();
     this.openFileDialog1 = new System.Windows.Forms.OpenFileDialog();
     this.saveFileDialog1 = new System.Windows.Forms.SaveFileDialog();
     this.tabControl1.SuspendLayout();
     this.tabPage1.SuspendLayout();
     this.tabPage2.SuspendLayout();
     this.tabPage3.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.trackBar3)).BeginInit();
     this.tabPage4.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.trackBar4)).BeginInit();
     this.SuspendLayout();
     //
     // pictureBox1
     //
     this.pictureBox1.Dock     = System.Windows.Forms.DockStyle.Right;
     this.pictureBox1.Location = new System.Drawing.Point(392, 0);
     this.pictureBox1.Name     = "pictureBox1";
     this.pictureBox1.Size     = new System.Drawing.Size(200, 266);
     this.pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
     this.pictureBox1.TabIndex = 0;
     this.pictureBox1.TabStop  = false;
     //
     // tabControl1
     //
     this.tabControl1.Controls.Add(this.tabPage1);
     this.tabControl1.Controls.Add(this.tabPage3);
     this.tabControl1.Controls.Add(this.tabPage2);
     this.tabControl1.Controls.Add(this.tabPage4);
     this.tabControl1.Dock          = System.Windows.Forms.DockStyle.Fill;
     this.tabControl1.Location      = new System.Drawing.Point(0, 0);
     this.tabControl1.Name          = "tabControl1";
     this.tabControl1.SelectedIndex = 0;
     this.tabControl1.Size          = new System.Drawing.Size(392, 266);
     this.tabControl1.TabIndex      = 1;
     this.tabControl1.KeyPress     += new System.Windows.Forms.KeyPressEventHandler(this.tabControl1_KeyPress);
     //
     // tabPage1
     //
     this.tabPage1.Controls.Add(this.button1);
     this.tabPage1.Controls.Add(this.label5);
     this.tabPage1.Controls.Add(this.label1);
     this.tabPage1.Location = new System.Drawing.Point(4, 22);
     this.tabPage1.Name     = "tabPage1";
     this.tabPage1.Size     = new System.Drawing.Size(384, 240);
     this.tabPage1.TabIndex = 0;
     this.tabPage1.Text     = "Step 1";
     //
     // button1
     //
     this.button1.Location = new System.Drawing.Point(112, 192);
     this.button1.Name     = "button1";
     this.button1.Size     = new System.Drawing.Size(152, 24);
     this.button1.TabIndex = 2;
     this.button1.Text     = "Generate training patterns";
     this.button1.Click   += new System.EventHandler(this.button1_Click);
     //
     // label5
     //
     this.label5.Font      = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
     this.label5.Location  = new System.Drawing.Point(16, 48);
     this.label5.Name      = "label5";
     this.label5.Size      = new System.Drawing.Size(352, 104);
     this.label5.TabIndex  = 1;
     this.label5.Text      = "label5";
     this.label5.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
     //
     // label1
     //
     this.label1.BackColor = System.Drawing.SystemColors.InactiveCaption;
     this.label1.Dock      = System.Windows.Forms.DockStyle.Top;
     this.label1.Font      = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
     this.label1.ForeColor = System.Drawing.SystemColors.Window;
     this.label1.Location  = new System.Drawing.Point(0, 0);
     this.label1.Name      = "label1";
     this.label1.Size      = new System.Drawing.Size(384, 32);
     this.label1.TabIndex  = 0;
     this.label1.Text      = "   Step1:   Generate neural network training patterns";
     this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
     //
     // tabPage2
     //
     this.tabPage2.Controls.Add(this.button2);
     this.tabPage2.Controls.Add(this.label2);
     this.tabPage2.Location = new System.Drawing.Point(4, 22);
     this.tabPage2.Name     = "tabPage2";
     this.tabPage2.Size     = new System.Drawing.Size(384, 240);
     this.tabPage2.TabIndex = 1;
     this.tabPage2.Text     = "Step 2";
     //
     // button2
     //
     this.button2.Location = new System.Drawing.Point(88, 128);
     this.button2.Name     = "button2";
     this.button2.Size     = new System.Drawing.Size(200, 24);
     this.button2.TabIndex = 6;
     this.button2.Text     = "Create the network";
     this.button2.Click   += new System.EventHandler(this.button2_Click);
     //
     // label2
     //
     this.label2.BackColor = System.Drawing.SystemColors.InactiveCaption;
     this.label2.Dock      = System.Windows.Forms.DockStyle.Top;
     this.label2.Font      = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
     this.label2.ForeColor = System.Drawing.SystemColors.Window;
     this.label2.Location  = new System.Drawing.Point(0, 0);
     this.label2.Name      = "label2";
     this.label2.Size      = new System.Drawing.Size(384, 32);
     this.label2.TabIndex  = 1;
     this.label2.Text      = "   Step2:  Create Backpropagation Neural Network";
     this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
     //
     // tabPage3
     //
     this.tabPage3.Controls.Add(this.label17);
     this.tabPage3.Controls.Add(this.progressBar1);
     this.tabPage3.Controls.Add(this.label9);
     this.tabPage3.Controls.Add(this.label8);
     this.tabPage3.Controls.Add(this.trackBar3);
     this.tabPage3.Controls.Add(this.button5);
     this.tabPage3.Controls.Add(this.button4);
     this.tabPage3.Controls.Add(this.button3);
     this.tabPage3.Controls.Add(this.label3);
     this.tabPage3.Location = new System.Drawing.Point(4, 22);
     this.tabPage3.Name     = "tabPage3";
     this.tabPage3.Size     = new System.Drawing.Size(384, 240);
     this.tabPage3.TabIndex = 2;
     this.tabPage3.Text     = "Step 3";
     //
     // label17
     //
     this.label17.Dock      = System.Windows.Forms.DockStyle.Bottom;
     this.label17.Location  = new System.Drawing.Point(0, 200);
     this.label17.Name      = "label17";
     this.label17.Size      = new System.Drawing.Size(384, 16);
     this.label17.TabIndex  = 9;
     this.label17.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
     //
     // progressBar1
     //
     this.progressBar1.Dock     = System.Windows.Forms.DockStyle.Bottom;
     this.progressBar1.Location = new System.Drawing.Point(0, 216);
     this.progressBar1.Name     = "progressBar1";
     this.progressBar1.Size     = new System.Drawing.Size(384, 24);
     this.progressBar1.TabIndex = 8;
     //
     // label9
     //
     this.label9.Location = new System.Drawing.Point(184, 120);
     this.label9.Name     = "label9";
     this.label9.Size     = new System.Drawing.Size(176, 64);
     this.label9.TabIndex = 7;
     //
     // label8
     //
     this.label8.Location = new System.Drawing.Point(184, 40);
     this.label8.Name     = "label8";
     this.label8.Size     = new System.Drawing.Size(184, 23);
     this.label8.TabIndex = 6;
     this.label8.Text     = "Add noise to the patterns";
     //
     // trackBar3
     //
     this.trackBar3.Location      = new System.Drawing.Point(184, 64);
     this.trackBar3.Maximum       = 100;
     this.trackBar3.Name          = "trackBar3";
     this.trackBar3.Size          = new System.Drawing.Size(176, 45);
     this.trackBar3.TabIndex      = 5;
     this.trackBar3.TickFrequency = 5;
     this.trackBar3.TickStyle     = System.Windows.Forms.TickStyle.Both;
     this.trackBar3.Scroll       += new System.EventHandler(this.trackBar3_Scroll);
     //
     // button5
     //
     this.button5.Location = new System.Drawing.Point(16, 120);
     this.button5.Name     = "button5";
     this.button5.Size     = new System.Drawing.Size(120, 24);
     this.button5.TabIndex = 4;
     this.button5.Text     = "Load trained network";
     this.button5.Click   += new System.EventHandler(this.button5_Click);
     //
     // button4
     //
     this.button4.Location = new System.Drawing.Point(16, 88);
     this.button4.Name     = "button4";
     this.button4.Size     = new System.Drawing.Size(120, 24);
     this.button4.TabIndex = 3;
     this.button4.Text     = "Save trained network";
     this.button4.Click   += new System.EventHandler(this.button4_Click);
     //
     // button3
     //
     this.button3.Location = new System.Drawing.Point(16, 56);
     this.button3.Name     = "button3";
     this.button3.Size     = new System.Drawing.Size(120, 24);
     this.button3.TabIndex = 2;
     this.button3.Text     = "Train the network";
     this.button3.Click   += new System.EventHandler(this.button3_Click);
     //
     // label3
     //
     this.label3.BackColor = System.Drawing.SystemColors.InactiveCaption;
     this.label3.Dock      = System.Windows.Forms.DockStyle.Top;
     this.label3.Font      = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
     this.label3.ForeColor = System.Drawing.SystemColors.Window;
     this.label3.Location  = new System.Drawing.Point(0, 0);
     this.label3.Name      = "label3";
     this.label3.Size      = new System.Drawing.Size(384, 32);
     this.label3.TabIndex  = 1;
     this.label3.Text      = "   Step3:  Train the network";
     this.label3.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
     //
     // tabPage4
     //
     this.tabPage4.Controls.Add(this.label16);
     this.tabPage4.Controls.Add(this.label15);
     this.tabPage4.Controls.Add(this.label14);
     this.tabPage4.Controls.Add(this.label13);
     this.tabPage4.Controls.Add(this.label12);
     this.tabPage4.Controls.Add(this.label11);
     this.tabPage4.Controls.Add(this.label10);
     this.tabPage4.Controls.Add(this.trackBar4);
     this.tabPage4.Controls.Add(this.label4);
     this.tabPage4.Location = new System.Drawing.Point(4, 22);
     this.tabPage4.Name     = "tabPage4";
     this.tabPage4.Size     = new System.Drawing.Size(384, 240);
     this.tabPage4.TabIndex = 3;
     this.tabPage4.Text     = "Step 4";
     //
     // label16
     //
     this.label16.Dock      = System.Windows.Forms.DockStyle.Top;
     this.label16.Font      = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
     this.label16.Location  = new System.Drawing.Point(0, 32);
     this.label16.Name      = "label16";
     this.label16.Size      = new System.Drawing.Size(384, 16);
     this.label16.TabIndex  = 14;
     this.label16.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
     //
     // label15
     //
     this.label15.Font     = new System.Drawing.Font("Microsoft Sans Serif", 26.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
     this.label15.Location = new System.Drawing.Point(264, 88);
     this.label15.Name     = "label15";
     this.label15.Size     = new System.Drawing.Size(40, 48);
     this.label15.TabIndex = 13;
     this.label15.Text     = "A";
     //
     // label14
     //
     this.label14.BackColor = System.Drawing.SystemColors.Window;
     this.label14.Font      = new System.Drawing.Font("Microsoft Sans Serif", 26.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
     this.label14.Location  = new System.Drawing.Point(80, 88);
     this.label14.Name      = "label14";
     this.label14.Size      = new System.Drawing.Size(40, 48);
     this.label14.TabIndex  = 12;
     this.label14.Text      = "A";
     //
     // label13
     //
     this.label13.Font     = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
     this.label13.Location = new System.Drawing.Point(168, 104);
     this.label13.Name     = "label13";
     this.label13.Size     = new System.Drawing.Size(44, 16);
     this.label13.TabIndex = 11;
     this.label13.Text     = "------>";
     //
     // label12
     //
     this.label12.Font     = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
     this.label12.Location = new System.Drawing.Point(24, 56);
     this.label12.Name     = "label12";
     this.label12.Size     = new System.Drawing.Size(328, 16);
     this.label12.TabIndex = 10;
     this.label12.Text     = "You\'ve just entered                            Recognized";
     //
     // label11
     //
     this.label11.Font     = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
     this.label11.Location = new System.Drawing.Point(112, 208);
     this.label11.Name     = "label11";
     this.label11.Size     = new System.Drawing.Size(168, 16);
     this.label11.TabIndex = 9;
     this.label11.Text     = "Please enter a character";
     //
     // label10
     //
     this.label10.Location  = new System.Drawing.Point(16, 160);
     this.label10.Name      = "label10";
     this.label10.Size      = new System.Drawing.Size(128, 16);
     this.label10.TabIndex  = 8;
     this.label10.Text      = "Noise level (%)";
     this.label10.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // trackBar4
     //
     this.trackBar4.Location      = new System.Drawing.Point(144, 152);
     this.trackBar4.Maximum       = 100;
     this.trackBar4.Name          = "trackBar4";
     this.trackBar4.Size          = new System.Drawing.Size(176, 45);
     this.trackBar4.TabIndex      = 7;
     this.trackBar4.TickFrequency = 5;
     this.trackBar4.TickStyle     = System.Windows.Forms.TickStyle.Both;
     this.trackBar4.Scroll       += new System.EventHandler(this.trackBar4_Scroll);
     //
     // label4
     //
     this.label4.BackColor = System.Drawing.SystemColors.InactiveCaption;
     this.label4.Dock      = System.Windows.Forms.DockStyle.Top;
     this.label4.Font      = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
     this.label4.ForeColor = System.Drawing.SystemColors.Window;
     this.label4.Location  = new System.Drawing.Point(0, 0);
     this.label4.Name      = "label4";
     this.label4.Size      = new System.Drawing.Size(384, 32);
     this.label4.TabIndex  = 1;
     this.label4.Text      = "   Step4:  Testing";
     this.label4.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
     //
     // openFileDialog1
     //
     this.openFileDialog1.DefaultExt = "neuro";
     this.openFileDialog1.FileName   = "OCRNetwork";
     this.openFileDialog1.Filter     = "Neural network (*.neuro)|*.neuro";
     this.openFileDialog1.Title      = "Load neural network";
     //
     // saveFileDialog1
     //
     this.saveFileDialog1.DefaultExt = "neuro";
     this.saveFileDialog1.FileName   = "OCRNetwork";
     this.saveFileDialog1.Filter     = "Neural network (*.neuro)|*.neuro";
     this.saveFileDialog1.Title      = "Store the network";
     //
     // Form1
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.ClientSize        = new System.Drawing.Size(592, 266);
     this.Controls.Add(this.tabControl1);
     this.Controls.Add(this.pictureBox1);
     this.Name     = "Form1";
     this.Text     = "XPidea  -=Simple OCR Demo (www.xpidea.com)=-";
     this.Closing += new System.ComponentModel.CancelEventHandler(this.Form1_Closing);
     this.tabControl1.ResumeLayout(false);
     this.tabPage1.ResumeLayout(false);
     this.tabPage2.ResumeLayout(false);
     this.tabPage3.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.trackBar3)).EndInit();
     this.tabPage4.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.trackBar4)).EndInit();
     this.ResumeLayout(false);
 }
Ejemplo n.º 53
0
        private void ButtonAddo8cClick(object sender, RoutedEventArgs e)
        {
            if (installo8cprocessing)
            {
                return;
            }
            installo8cprocessing = true;
            var of = new System.Windows.Forms.OpenFileDialog();

            of.Multiselect = true;
            of.Filter      = "Octgn Card Package (*.o8c) |*.o8c";
            var result = of.ShowDialog();

            if (result == DialogResult.OK)
            {
                var filesToImport = (from f in of.FileNames
                                     select new ImportFile {
                    Filename = f, Status = ImportFileStatus.Unprocessed
                }).ToList();
                this.ProcessTask(
                    () =>
                {
                    foreach (var f in filesToImport)
                    {
                        try
                        {
                            if (!File.Exists(f.Filename))
                            {
                                f.Status  = ImportFileStatus.FileNotFound;
                                f.Message = "File not found.";
                                continue;
                            }
                            GameManager.Get().Installo8c(f.Filename);
                            f.Status  = ImportFileStatus.Imported;
                            f.Message = "Installed Successfully";
                        }
                        catch (UserMessageException ex)
                        {
                            var message = ex.Message;
                            Log.Warn(message, ex);
                            f.Message = message;
                            f.Status  = ImportFileStatus.Error;
                        }
                        catch (Exception ex)
                        {
                            var message = "Could not install o8c.";
                            Log.Warn(message, ex);
                            f.Message = message;
                            f.Status  = ImportFileStatus.Error;
                        }
                    }
                },
                    () =>
                {
                    this.installo8cprocessing = false;

                    var message = "The following image packs were installed:\n\n{0}"
                                  .With(filesToImport.Where(f => f.Status == ImportFileStatus.Imported).Aggregate("",
                                                                                                                  (current, file) =>
                                                                                                                  current +
                                                                                                                  "· {0}\n".With(file.SafeFileName)));
                    if (filesToImport.Any(f => f.Status != ImportFileStatus.Imported))
                    {
                        message += "\nThe following image packs could not be installed:\n\n{0}"
                                   .With(filesToImport.Where(f => f.Status != ImportFileStatus.Imported)
                                         .Aggregate("", (current, file) => current +
                                                    "· {0}: {1}\n".With(file.SafeFileName, file.Message)));
                    }


                    TopMostMessageBox.Show(
                        message,
                        "Install Image Packs",
                        MessageBoxButton.OK,
                        MessageBoxImage.Information);
                },
                    "Installing image pack.",
                    "Please wait while your image pack is installed. You can switch tabs if you like.");
            }
            else
            {
                installo8cprocessing = false;
            }
        }
Ejemplo n.º 54
0
        private void InitializeComponent()
        {
            this.components      = new System.ComponentModel.Container();
            this.listBox1        = new System.Windows.Forms.ListBox();
            this.label3          = new System.Windows.Forms.Label();
            this.button1         = new System.Windows.Forms.Button();
            this.button2         = new System.Windows.Forms.Button();
            this.button3         = new System.Windows.Forms.Button();
            this.button4         = new System.Windows.Forms.Button();
            this.pictureBox1     = new System.Windows.Forms.PictureBox();
            this.imageList1      = new System.Windows.Forms.ImageList(this.components);
            this.openFileDialog1 = new System.Windows.Forms.OpenFileDialog();
            this.panel1          = new System.Windows.Forms.Panel();
            this.label5          = new System.Windows.Forms.Label();
            this.SuspendLayout();

            this.listBox1.Location = new System.Drawing.Point(16, 16);
            this.listBox1.Size     = new System.Drawing.Size(400, 95);
            this.listBox1.TabIndex = 0;

            this.label3.Location = new System.Drawing.Point(24, 168);
            this.label3.Text     = "label3";

            this.button1.Location = new System.Drawing.Point(96, 128);
            this.button1.Size     = new System.Drawing.Size(104, 23);
            this.button1.Text     = "Show Next Image";
            this.button1.Click   += new System.EventHandler(this.button1_Click);

            this.button2.Location = new System.Drawing.Point(208, 128);
            this.button2.Size     = new System.Drawing.Size(104, 23);
            this.button2.Text     = "Remove Image";
            this.button2.Click   += new System.EventHandler(this.button2_Click);

            this.button3.Location = new System.Drawing.Point(320, 128);
            this.button3.Text     = "Clear List";
            this.button3.Click   += new System.EventHandler(this.button3_Click);

            this.button4.Location = new System.Drawing.Point(16, 128);
            this.button4.Text     = "Open Image";
            this.button4.Click   += new System.EventHandler(this.button4_Click);

            this.pictureBox1.Location = new System.Drawing.Point(328, 232);
            this.pictureBox1.Size     = new System.Drawing.Size(336, 192);

            this.imageList1.ImageSize        = new System.Drawing.Size(16, 16);
            this.imageList1.TransparentColor = System.Drawing.Color.Transparent;

            this.panel1.Location = new System.Drawing.Point(8, 240);
            this.panel1.Size     = new System.Drawing.Size(296, 184);

            this.label5.Location = new System.Drawing.Point(168, 168);
            this.label5.Size     = new System.Drawing.Size(312, 40);
            this.label5.Text     = "label5";

            this.ClientSize = new System.Drawing.Size(672, 461);
            this.Controls.Add(this.label5);
            this.Controls.Add(this.panel1);
            this.Controls.Add(this.pictureBox1);
            this.Controls.Add(this.button4);
            this.Controls.Add(this.button3);
            this.Controls.Add(this.button2);
            this.Controls.Add(this.button1);
            this.Controls.Add(this.label3);
            this.Controls.Add(this.listBox1);
            this.ResumeLayout(false);
        }
Ejemplo n.º 55
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.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(ViewerForm));
     this.mainMenu                       = new System.Windows.Forms.MainMenu();
     this.fileMenuItem                   = new System.Windows.Forms.MenuItem();
     this.fileOpenMenuItem               = new System.Windows.Forms.MenuItem();
     this.filePrintMenuItem              = new System.Windows.Forms.MenuItem();
     this.separator1MenuItem             = new System.Windows.Forms.MenuItem();
     this.fileExitMenuItem               = new System.Windows.Forms.MenuItem();
     this.viewMenuItem                   = new System.Windows.Forms.MenuItem();
     this.navigationPreviousPageMenuItem = new System.Windows.Forms.MenuItem();
     this.navigationNextPageMenuItem     = new System.Windows.Forms.MenuItem();
     this.separator2                     = new System.Windows.Forms.MenuItem();
     this.navigationFirstPageMenuItem    = new System.Windows.Forms.MenuItem();
     this.navigationLastPageMenuItem     = new System.Windows.Forms.MenuItem();
     this.separator3                     = new System.Windows.Forms.MenuItem();
     this.navigationGoToPageMenuItem     = new System.Windows.Forms.MenuItem();
     this.toolBar                      = new System.Windows.Forms.ToolBar();
     this.fileOpenButton               = new System.Windows.Forms.ToolBarButton();
     this.filePrintButton              = new System.Windows.Forms.ToolBarButton();
     this.separator1                   = new System.Windows.Forms.ToolBarButton();
     this.navigationFirstPageButton    = new System.Windows.Forms.ToolBarButton();
     this.navigationPreviousPageButton = new System.Windows.Forms.ToolBarButton();
     this.navigationNextPageButton     = new System.Windows.Forms.ToolBarButton();
     this.navigationLastPageButton     = new System.Windows.Forms.ToolBarButton();
     this.navigationGoToPageButton     = new System.Windows.Forms.ToolBarButton();
     this.toolBarImages                = new System.Windows.Forms.ImageList(this.components);
     this.statusBar                    = new System.Windows.Forms.StatusBar();
     this.openFileDialog               = new System.Windows.Forms.OpenFileDialog();
     this.mainPanel                    = new System.Windows.Forms.Panel();
     this.docPagePictureBox            = new System.Windows.Forms.PictureBox();
     this.mainPanel.SuspendLayout();
     this.SuspendLayout();
     //
     // MainMenu
     //
     this.mainMenu.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
         this.fileMenuItem,
         this.viewMenuItem
     });
     //
     // FileMenuItem
     //
     this.fileMenuItem.Index = 0;
     this.fileMenuItem.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
         this.fileOpenMenuItem,
         this.filePrintMenuItem,
         this.separator1MenuItem,
         this.fileExitMenuItem
     });
     this.fileMenuItem.Text = "&File";
     //
     // FileOpenMenuItem
     //
     this.fileOpenMenuItem.Index    = 0;
     this.fileOpenMenuItem.Shortcut = System.Windows.Forms.Shortcut.CtrlO;
     this.fileOpenMenuItem.Text     = "&Open...";
     this.fileOpenMenuItem.Click   += new System.EventHandler(this.fileOpenMenuItem_Click);
     //
     // FilePrintMenuItem
     //
     this.filePrintMenuItem.Index    = 1;
     this.filePrintMenuItem.Shortcut = System.Windows.Forms.Shortcut.CtrlP;
     this.filePrintMenuItem.Text     = "&Print Preview";
     this.filePrintMenuItem.Click   += new System.EventHandler(this.filePrintMenuItem_Click);
     //
     // Separator1MenuItem
     //
     this.separator1MenuItem.Index = 2;
     this.separator1MenuItem.Text  = "-";
     //
     // FileExitMenuItem
     //
     this.fileExitMenuItem.Index  = 3;
     this.fileExitMenuItem.Text   = "&Exit";
     this.fileExitMenuItem.Click += new System.EventHandler(this.fileExitMenuItem_Click);
     //
     // ViewMenuItem
     //
     this.viewMenuItem.Index = 1;
     this.viewMenuItem.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
         this.navigationPreviousPageMenuItem,
         this.navigationNextPageMenuItem,
         this.separator2,
         this.navigationFirstPageMenuItem,
         this.navigationLastPageMenuItem,
         this.separator3,
         this.navigationGoToPageMenuItem
     });
     this.viewMenuItem.Text = "&View";
     //
     // NavigationPreviousPageMenuItem
     //
     this.navigationPreviousPageMenuItem.Index  = 0;
     this.navigationPreviousPageMenuItem.Text   = "P&revious Page";
     this.navigationPreviousPageMenuItem.Click += new System.EventHandler(this.navigationPreviousPageMenuItem_Click);
     //
     // NavigationNextPageMenuItem
     //
     this.navigationNextPageMenuItem.Index  = 1;
     this.navigationNextPageMenuItem.Text   = "&Next Page";
     this.navigationNextPageMenuItem.Click += new System.EventHandler(this.navigationNextPageMenuItem_Click);
     //
     // Separator2
     //
     this.separator2.Index = 2;
     this.separator2.Text  = "-";
     //
     // NavigationFirstPageMenuItem
     //
     this.navigationFirstPageMenuItem.Index  = 3;
     this.navigationFirstPageMenuItem.Text   = "&First Page";
     this.navigationFirstPageMenuItem.Click += new System.EventHandler(this.navigationFirstPageMenuItem_Click);
     //
     // NavigationLastPageMenuItem
     //
     this.navigationLastPageMenuItem.Index  = 4;
     this.navigationLastPageMenuItem.Text   = "&Last Page";
     this.navigationLastPageMenuItem.Click += new System.EventHandler(this.lastPageMenuItem_Click);
     //
     // Separator3
     //
     this.separator3.Index = 5;
     this.separator3.Text  = "-";
     //
     // NavigationGoToPageMenuItem
     //
     this.navigationGoToPageMenuItem.Index  = 6;
     this.navigationGoToPageMenuItem.Text   = "&Go to Page...";
     this.navigationGoToPageMenuItem.Click += new System.EventHandler(this.navigationGoToPageMenuItem_Click);
     //
     // ToolBar
     //
     this.toolBar.Appearance = System.Windows.Forms.ToolBarAppearance.Flat;
     this.toolBar.Buttons.AddRange(new System.Windows.Forms.ToolBarButton[] {
         this.fileOpenButton,
         this.filePrintButton,
         this.separator1,
         this.navigationFirstPageButton,
         this.navigationPreviousPageButton,
         this.navigationNextPageButton,
         this.navigationLastPageButton,
         this.navigationGoToPageButton
     });
     this.toolBar.ButtonSize     = new System.Drawing.Size(16, 16);
     this.toolBar.DropDownArrows = true;
     this.toolBar.ImageList      = this.toolBarImages;
     this.toolBar.Location       = new System.Drawing.Point(0, 0);
     this.toolBar.Name           = "toolBar";
     this.toolBar.ShowToolTips   = true;
     this.toolBar.Size           = new System.Drawing.Size(712, 28);
     this.toolBar.TabIndex       = 0;
     this.toolBar.ButtonClick   += new System.Windows.Forms.ToolBarButtonClickEventHandler(this.toolBar_ButtonClick);
     //
     // FileOpenButton
     //
     this.fileOpenButton.ImageIndex  = 0;
     this.fileOpenButton.ToolTipText = "Open a document";
     //
     // FilePrintButton
     //
     this.filePrintButton.ImageIndex  = 8;
     this.filePrintButton.ToolTipText = "Print preview";
     //
     // Separator1
     //
     this.separator1.Style = System.Windows.Forms.ToolBarButtonStyle.Separator;
     //
     // NavigationFirstPageButton
     //
     this.navigationFirstPageButton.ImageIndex  = 2;
     this.navigationFirstPageButton.ToolTipText = "Move to first page";
     //
     // NavigationPreviousPageButton
     //
     this.navigationPreviousPageButton.ImageIndex  = 3;
     this.navigationPreviousPageButton.ToolTipText = "Move to previous page";
     //
     // NavigationNextPageButton
     //
     this.navigationNextPageButton.ImageIndex  = 4;
     this.navigationNextPageButton.ToolTipText = "Move to next page";
     //
     // NavigationLastPageButton
     //
     this.navigationLastPageButton.ImageIndex  = 5;
     this.navigationLastPageButton.ToolTipText = "Move to last page";
     //
     // NavigationGoToPageButton
     //
     this.navigationGoToPageButton.ImageIndex  = 6;
     this.navigationGoToPageButton.ToolTipText = "Go to specified page";
     //
     // ToolBarImages
     //
     this.toolBarImages.ColorDepth       = System.Windows.Forms.ColorDepth.Depth32Bit;
     this.toolBarImages.ImageSize        = new System.Drawing.Size(16, 16);
     this.toolBarImages.ImageStream      = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("toolBarImages.ImageStream")));
     this.toolBarImages.TransparentColor = System.Drawing.Color.Silver;
     //
     // StatusBar
     //
     this.statusBar.Location = new System.Drawing.Point(0, 459);
     this.statusBar.Name     = "statusBar";
     this.statusBar.Size     = new System.Drawing.Size(712, 22);
     this.statusBar.TabIndex = 3;
     //
     // OpenFileDialog
     //
     this.openFileDialog.Filter = "Microsoft Word Documents|*.doc|All files|*.*";
     //
     // MainPanel
     //
     this.mainPanel.AutoScroll  = true;
     this.mainPanel.BackColor   = System.Drawing.Color.FromArgb(((System.Byte)(144)), ((System.Byte)(153)), ((System.Byte)(174)));
     this.mainPanel.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
     this.mainPanel.Controls.Add(this.docPagePictureBox);
     this.mainPanel.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.mainPanel.Location = new System.Drawing.Point(0, 28);
     this.mainPanel.Name     = "mainPanel";
     this.mainPanel.Size     = new System.Drawing.Size(712, 431);
     this.mainPanel.TabIndex = 4;
     //
     // DocPagePictureBox
     //
     this.docPagePictureBox.BackColor = System.Drawing.Color.FromArgb(((System.Byte)(144)), ((System.Byte)(153)), ((System.Byte)(174)));
     this.docPagePictureBox.Location  = new System.Drawing.Point(0, 0);
     this.docPagePictureBox.Name      = "docPagePictureBox";
     this.docPagePictureBox.Size      = new System.Drawing.Size(56, 56);
     this.docPagePictureBox.SizeMode  = System.Windows.Forms.PictureBoxSizeMode.CenterImage;
     this.docPagePictureBox.TabIndex  = 0;
     this.docPagePictureBox.TabStop   = false;
     //
     // ViewerForm
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.ClientSize        = new System.Drawing.Size(712, 481);
     this.Controls.Add(this.mainPanel);
     this.Controls.Add(this.statusBar);
     this.Controls.Add(this.toolBar);
     this.Menu        = this.mainMenu;
     this.Name        = "ViewerForm";
     this.Text        = "Aspose.Words Rendering Demo";
     this.WindowState = System.Windows.Forms.FormWindowState.Maximized;
     this.mainPanel.ResumeLayout(false);
     this.ResumeLayout(false);
 }
Ejemplo n.º 56
0
        public static string BrowseForFileOpen(this IServiceProvider serviceProvider, IntPtr owner, string filter, string initialPath = null)
        {
            if (string.IsNullOrEmpty(initialPath))
            {
                initialPath = Environment.GetFolderPath(Environment.SpecialFolder.Personal) + Path.DirectorySeparatorChar;
            }

            IVsUIShell uiShell = serviceProvider.GetService(typeof(SVsUIShell)) as IVsUIShell;

            if (null == uiShell)
            {
                using (var sfd = new System.Windows.Forms.OpenFileDialog()) {
                    sfd.AutoUpgradeEnabled = true;
                    sfd.Filter             = filter;
                    sfd.FileName           = Path.GetFileName(initialPath);
                    sfd.InitialDirectory   = Path.GetDirectoryName(initialPath);
                    DialogResult result;
                    if (owner == IntPtr.Zero)
                    {
                        result = sfd.ShowDialog();
                    }
                    else
                    {
                        result = sfd.ShowDialog(NativeWindow.FromHandle(owner));
                    }
                    if (result == DialogResult.OK)
                    {
                        return(sfd.FileName);
                    }
                    else
                    {
                        return(null);
                    }
                }
            }

            if (owner == IntPtr.Zero)
            {
                ErrorHandler.ThrowOnFailure(uiShell.GetDialogOwnerHwnd(out owner));
            }

            VSOPENFILENAMEW[] openInfo = new VSOPENFILENAMEW[1];
            openInfo[0].lStructSize  = (uint)Marshal.SizeOf(typeof(VSOPENFILENAMEW));
            openInfo[0].pwzFilter    = filter.Replace('|', '\0') + "\0";
            openInfo[0].hwndOwner    = owner;
            openInfo[0].nMaxFileName = 260;
            var pFileName = Marshal.AllocCoTaskMem(520);

            openInfo[0].pwzFileName   = pFileName;
            openInfo[0].pwzInitialDir = Path.GetDirectoryName(initialPath);
            var nameArray = (Path.GetFileName(initialPath) + "\0").ToCharArray();

            Marshal.Copy(nameArray, 0, pFileName, nameArray.Length);
            try {
                int hr = uiShell.GetOpenFileNameViaDlg(openInfo);
                if (hr == VSConstants.OLE_E_PROMPTSAVECANCELLED)
                {
                    return(null);
                }
                ErrorHandler.ThrowOnFailure(hr);
                return(Marshal.PtrToStringAuto(openInfo[0].pwzFileName));
            } finally {
                if (pFileName != IntPtr.Zero)
                {
                    Marshal.FreeCoTaskMem(pFileName);
                }
            }
        }
Ejemplo n.º 57
0
 private void InitializeComponent()
 {
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(SettingsWindow));
     this.comboBox1                       = new System.Windows.Forms.ComboBox();
     this.label1                          = new System.Windows.Forms.Label();
     this.save_button                     = new System.Windows.Forms.Button();
     this.groupBox1                       = new System.Windows.Forms.GroupBox();
     this.btn_TruckersMP_suchen           = new System.Windows.Forms.GroupBox();
     this.Ats_Suche                       = new System.Windows.Forms.Button();
     this.label4                          = new System.Windows.Forms.Label();
     this.ATS_Pfad_Textbox                = new System.Windows.Forms.TextBox();
     this.Ets_Suche                       = new System.Windows.Forms.Button();
     this.label2                          = new System.Windows.Forms.Label();
     this.ETS2_Pfad_Textbox               = new System.Windows.Forms.TextBox();
     this.truckersMP_Pfad_TextBox         = new System.Windows.Forms.TextBox();
     this.button1                         = new System.Windows.Forms.Button();
     this.label3                          = new System.Windows.Forms.Label();
     this.group_Overlay                   = new System.Windows.Forms.GroupBox();
     this.label6                          = new System.Windows.Forms.Label();
     this.num_Overlay_Transparenz         = new System.Windows.Forms.NumericUpDown();
     this.label5                          = new System.Windows.Forms.Label();
     this.combo_Bildschirme               = new System.Windows.Forms.ComboBox();
     this.tmp_Trucker                     = new System.Windows.Forms.OpenFileDialog();
     this.groupBox_AntiAFK                = new System.Windows.Forms.GroupBox();
     this.label9                          = new System.Windows.Forms.Label();
     this.label8                          = new System.Windows.Forms.Label();
     this.label7                          = new System.Windows.Forms.Label();
     this.reload_antiafk                  = new System.Windows.Forms.NumericUpDown();
     this.chk_antiafk_on_off              = new System.Windows.Forms.CheckBox();
     this.txt_Anti_AFK_Text               = new System.Windows.Forms.TextBox();
     this.pictureBox1                     = new System.Windows.Forms.PictureBox();
     this.Settings_Windows_Label_Settings = new System.Windows.Forms.Label();
     this.ATS_folderDialog                = new System.Windows.Forms.FolderBrowserDialog();
     this.ETS2_folderDialog               = new System.Windows.Forms.FolderBrowserDialog();
     this.groupBox1.SuspendLayout();
     this.btn_TruckersMP_suchen.SuspendLayout();
     this.group_Overlay.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.num_Overlay_Transparenz)).BeginInit();
     this.groupBox_AntiAFK.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.reload_antiafk)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
     this.SuspendLayout();
     //
     // comboBox1
     //
     this.comboBox1.FormattingEnabled = true;
     this.comboBox1.Items.AddRange(new object[] {
         "Simulation 1",
         "Simulation 2",
         "Arcade",
         "EU Promods 1",
         "EU Promods 2"
     });
     this.comboBox1.Location = new System.Drawing.Point(171, 23);
     this.comboBox1.Name     = "comboBox1";
     this.comboBox1.Size     = new System.Drawing.Size(136, 21);
     this.comboBox1.TabIndex = 0;
     this.comboBox1.Text     = "Simulation 1";
     //
     // label1
     //
     this.label1.AutoSize = true;
     this.label1.Location = new System.Drawing.Point(14, 26);
     this.label1.Name     = "label1";
     this.label1.Size     = new System.Drawing.Size(102, 13);
     this.label1.TabIndex = 1;
     this.label1.Text     = "TruckersMP-Server:";
     //
     // save_button
     //
     this.save_button.Location = new System.Drawing.Point(469, 546);
     this.save_button.Name     = "save_button";
     this.save_button.Size     = new System.Drawing.Size(149, 41);
     this.save_button.TabIndex = 3;
     this.save_button.Text     = "Einstellungen Speichern...";
     this.save_button.UseVisualStyleBackColor = true;
     this.save_button.Click += new System.EventHandler(this.save_button_Click);
     //
     // groupBox1
     //
     this.groupBox1.Controls.Add(this.label1);
     this.groupBox1.Controls.Add(this.comboBox1);
     this.groupBox1.Location = new System.Drawing.Point(288, 129);
     this.groupBox1.Name     = "groupBox1";
     this.groupBox1.Size     = new System.Drawing.Size(321, 62);
     this.groupBox1.TabIndex = 4;
     this.groupBox1.TabStop  = false;
     this.groupBox1.Text     = "Server Einstellungen";
     //
     // btn_TruckersMP_suchen
     //
     this.btn_TruckersMP_suchen.Controls.Add(this.Ats_Suche);
     this.btn_TruckersMP_suchen.Controls.Add(this.label4);
     this.btn_TruckersMP_suchen.Controls.Add(this.ATS_Pfad_Textbox);
     this.btn_TruckersMP_suchen.Controls.Add(this.Ets_Suche);
     this.btn_TruckersMP_suchen.Controls.Add(this.label2);
     this.btn_TruckersMP_suchen.Controls.Add(this.ETS2_Pfad_Textbox);
     this.btn_TruckersMP_suchen.Controls.Add(this.truckersMP_Pfad_TextBox);
     this.btn_TruckersMP_suchen.Controls.Add(this.button1);
     this.btn_TruckersMP_suchen.Controls.Add(this.label3);
     this.btn_TruckersMP_suchen.Location = new System.Drawing.Point(12, 129);
     this.btn_TruckersMP_suchen.Name     = "btn_TruckersMP_suchen";
     this.btn_TruckersMP_suchen.Size     = new System.Drawing.Size(270, 186);
     this.btn_TruckersMP_suchen.TabIndex = 6;
     this.btn_TruckersMP_suchen.TabStop  = false;
     this.btn_TruckersMP_suchen.Text     = "Game und Multiplayer";
     //
     // Ats_Suche
     //
     this.Ats_Suche.Location = new System.Drawing.Point(241, 128);
     this.Ats_Suche.Name     = "Ats_Suche";
     this.Ats_Suche.Size     = new System.Drawing.Size(25, 22);
     this.Ats_Suche.TabIndex = 16;
     this.Ats_Suche.Text     = "...";
     this.Ats_Suche.UseVisualStyleBackColor = true;
     this.Ats_Suche.Click += new System.EventHandler(this.Ats_Suche_Click);
     //
     // label4
     //
     this.label4.AutoSize = true;
     this.label4.Location = new System.Drawing.Point(7, 114);
     this.label4.Name     = "label4";
     this.label4.Size     = new System.Drawing.Size(70, 13);
     this.label4.TabIndex = 15;
     this.label4.Text     = "Pfad zu ATS:";
     //
     // ATS_Pfad_Textbox
     //
     this.ATS_Pfad_Textbox.Location = new System.Drawing.Point(7, 130);
     this.ATS_Pfad_Textbox.Name     = "ATS_Pfad_Textbox";
     this.ATS_Pfad_Textbox.Size     = new System.Drawing.Size(228, 20);
     this.ATS_Pfad_Textbox.TabIndex = 14;
     //
     // Ets_Suche
     //
     this.Ets_Suche.Location = new System.Drawing.Point(241, 81);
     this.Ets_Suche.Name     = "Ets_Suche";
     this.Ets_Suche.Size     = new System.Drawing.Size(25, 22);
     this.Ets_Suche.TabIndex = 13;
     this.Ets_Suche.Text     = "...";
     this.Ets_Suche.UseVisualStyleBackColor = true;
     this.Ets_Suche.Click += new System.EventHandler(this.Ets_Suche_Click);
     //
     // label2
     //
     this.label2.AutoSize = true;
     this.label2.Location = new System.Drawing.Point(7, 67);
     this.label2.Name     = "label2";
     this.label2.Size     = new System.Drawing.Size(79, 13);
     this.label2.TabIndex = 12;
     this.label2.Text     = "Pfad zu ETS 2:";
     //
     // ETS2_Pfad_Textbox
     //
     this.ETS2_Pfad_Textbox.Location = new System.Drawing.Point(7, 83);
     this.ETS2_Pfad_Textbox.Name     = "ETS2_Pfad_Textbox";
     this.ETS2_Pfad_Textbox.Size     = new System.Drawing.Size(228, 20);
     this.ETS2_Pfad_Textbox.TabIndex = 11;
     //
     // truckersMP_Pfad_TextBox
     //
     this.truckersMP_Pfad_TextBox.Location = new System.Drawing.Point(7, 37);
     this.truckersMP_Pfad_TextBox.Name     = "truckersMP_Pfad_TextBox";
     this.truckersMP_Pfad_TextBox.Size     = new System.Drawing.Size(228, 20);
     this.truckersMP_Pfad_TextBox.TabIndex = 10;
     //
     // button1
     //
     this.button1.Location = new System.Drawing.Point(241, 36);
     this.button1.Name     = "button1";
     this.button1.Size     = new System.Drawing.Size(25, 22);
     this.button1.TabIndex = 9;
     this.button1.Text     = "...";
     this.button1.UseVisualStyleBackColor = true;
     this.button1.Click += new System.EventHandler(this.button1_Click);
     //
     // label3
     //
     this.label3.AutoSize = true;
     this.label3.Location = new System.Drawing.Point(7, 20);
     this.label3.Name     = "label3";
     this.label3.Size     = new System.Drawing.Size(107, 13);
     this.label3.TabIndex = 0;
     this.label3.Text     = "Pfad zu TruckersMP:";
     //
     // group_Overlay
     //
     this.group_Overlay.Controls.Add(this.label6);
     this.group_Overlay.Controls.Add(this.num_Overlay_Transparenz);
     this.group_Overlay.Controls.Add(this.label5);
     this.group_Overlay.Controls.Add(this.combo_Bildschirme);
     this.group_Overlay.Location = new System.Drawing.Point(22, 413);
     this.group_Overlay.Name     = "group_Overlay";
     this.group_Overlay.Size     = new System.Drawing.Size(321, 111);
     this.group_Overlay.TabIndex = 7;
     this.group_Overlay.TabStop  = false;
     this.group_Overlay.Text     = "Overlay Einstellungen";
     //
     // label6
     //
     this.label6.AutoSize = true;
     this.label6.Location = new System.Drawing.Point(41, 58);
     this.label6.Name     = "label6";
     this.label6.Size     = new System.Drawing.Size(69, 13);
     this.label6.TabIndex = 3;
     this.label6.Text     = "Transparenz:";
     //
     // num_Overlay_Transparenz
     //
     this.num_Overlay_Transparenz.Location = new System.Drawing.Point(116, 56);
     this.num_Overlay_Transparenz.Name     = "num_Overlay_Transparenz";
     this.num_Overlay_Transparenz.Size     = new System.Drawing.Size(59, 20);
     this.num_Overlay_Transparenz.TabIndex = 2;
     this.num_Overlay_Transparenz.Value    = new decimal(new int[] {
         100,
         0,
         0,
         0
     });
     //
     // label5
     //
     this.label5.AutoSize = true;
     this.label5.Location = new System.Drawing.Point(26, 31);
     this.label5.Name     = "label5";
     this.label5.Size     = new System.Drawing.Size(84, 13);
     this.label5.TabIndex = 1;
     this.label5.Text     = "Gaming-Monitor:";
     //
     // combo_Bildschirme
     //
     this.combo_Bildschirme.FormattingEnabled = true;
     this.combo_Bildschirme.Location          = new System.Drawing.Point(116, 28);
     this.combo_Bildschirme.Name     = "combo_Bildschirme";
     this.combo_Bildschirme.Size     = new System.Drawing.Size(195, 21);
     this.combo_Bildschirme.TabIndex = 0;
     //
     // tmp_Trucker
     //
     this.tmp_Trucker.FileName = "T";
     //
     // groupBox_AntiAFK
     //
     this.groupBox_AntiAFK.Controls.Add(this.label9);
     this.groupBox_AntiAFK.Controls.Add(this.label8);
     this.groupBox_AntiAFK.Controls.Add(this.label7);
     this.groupBox_AntiAFK.Controls.Add(this.reload_antiafk);
     this.groupBox_AntiAFK.Controls.Add(this.chk_antiafk_on_off);
     this.groupBox_AntiAFK.Controls.Add(this.txt_Anti_AFK_Text);
     this.groupBox_AntiAFK.Location = new System.Drawing.Point(288, 198);
     this.groupBox_AntiAFK.Name     = "groupBox_AntiAFK";
     this.groupBox_AntiAFK.Size     = new System.Drawing.Size(321, 95);
     this.groupBox_AntiAFK.TabIndex = 9;
     this.groupBox_AntiAFK.TabStop  = false;
     this.groupBox_AntiAFK.Text     = "Anti - AFK";
     //
     // label9
     //
     this.label9.AutoSize = true;
     this.label9.Location = new System.Drawing.Point(10, 19);
     this.label9.Name     = "label9";
     this.label9.Size     = new System.Drawing.Size(31, 13);
     this.label9.TabIndex = 5;
     this.label9.Text     = "Text:";
     //
     // label8
     //
     this.label8.AutoSize = true;
     this.label8.Location = new System.Drawing.Point(268, 69);
     this.label8.Name     = "label8";
     this.label8.Size     = new System.Drawing.Size(38, 13);
     this.label8.TabIndex = 4;
     this.label8.Text     = "in Min.";
     //
     // label7
     //
     this.label7.AutoSize = true;
     this.label7.Location = new System.Drawing.Point(168, 69);
     this.label7.Name     = "label7";
     this.label7.Size     = new System.Drawing.Size(44, 13);
     this.label7.TabIndex = 3;
     this.label7.Text     = "Reload:";
     //
     // reload_antiafk
     //
     this.reload_antiafk.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
     this.reload_antiafk.Location    = new System.Drawing.Point(214, 65);
     this.reload_antiafk.Maximum     = new decimal(new int[] {
         30,
         0,
         0,
         0
     });
     this.reload_antiafk.Minimum = new decimal(new int[] {
         3,
         0,
         0,
         0
     });
     this.reload_antiafk.Name      = "reload_antiafk";
     this.reload_antiafk.Size      = new System.Drawing.Size(52, 20);
     this.reload_antiafk.TabIndex  = 2;
     this.reload_antiafk.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
     this.reload_antiafk.Value     = new decimal(new int[] {
         3,
         0,
         0,
         0
     });
     this.reload_antiafk.ValueChanged += new System.EventHandler(this.numericUpDown1_ValueChanged);
     //
     // chk_antiafk_on_off
     //
     this.chk_antiafk_on_off.AutoSize = true;
     this.chk_antiafk_on_off.Location = new System.Drawing.Point(10, 66);
     this.chk_antiafk_on_off.Name     = "chk_antiafk_on_off";
     this.chk_antiafk_on_off.Size     = new System.Drawing.Size(106, 17);
     this.chk_antiafk_on_off.TabIndex = 1;
     this.chk_antiafk_on_off.Text     = "Anti AFK An/Aus";
     this.chk_antiafk_on_off.UseVisualStyleBackColor = true;
     //
     // txt_Anti_AFK_Text
     //
     this.txt_Anti_AFK_Text.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
     this.txt_Anti_AFK_Text.Enabled     = false;
     this.txt_Anti_AFK_Text.Location    = new System.Drawing.Point(10, 33);
     this.txt_Anti_AFK_Text.Name        = "txt_Anti_AFK_Text";
     this.txt_Anti_AFK_Text.Size        = new System.Drawing.Size(301, 20);
     this.txt_Anti_AFK_Text.TabIndex    = 0;
     //
     // pictureBox1
     //
     this.pictureBox1.Image    = global::VTCManager_1._0._0.Properties.Resources.einstellungen;
     this.pictureBox1.Location = new System.Drawing.Point(12, 12);
     this.pictureBox1.Name     = "pictureBox1";
     this.pictureBox1.Size     = new System.Drawing.Size(100, 100);
     this.pictureBox1.TabIndex = 10;
     this.pictureBox1.TabStop  = false;
     //
     // Settings_Windows_Label_Settings
     //
     this.Settings_Windows_Label_Settings.AutoSize = true;
     this.Settings_Windows_Label_Settings.Font     = new System.Drawing.Font("Verdana", 27.75F, ((System.Drawing.FontStyle)((System.Drawing.FontStyle.Bold | System.Drawing.FontStyle.Italic))), System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.Settings_Windows_Label_Settings.Location = new System.Drawing.Point(118, 33);
     this.Settings_Windows_Label_Settings.Name     = "Settings_Windows_Label_Settings";
     this.Settings_Windows_Label_Settings.Size     = new System.Drawing.Size(59, 45);
     this.Settings_Windows_Label_Settings.TabIndex = 11;
     this.Settings_Windows_Label_Settings.Text     = "...";
     //
     // ATS_folderDialog
     //
     this.ATS_folderDialog.RootFolder          = System.Environment.SpecialFolder.MyComputer;
     this.ATS_folderDialog.ShowNewFolderButton = false;
     //
     // ETS2_folderDialog
     //
     this.ETS2_folderDialog.RootFolder          = System.Environment.SpecialFolder.MyComputer;
     this.ETS2_folderDialog.ShowNewFolderButton = false;
     //
     // SettingsWindow
     //
     this.ClientSize = new System.Drawing.Size(630, 599);
     this.Controls.Add(this.Settings_Windows_Label_Settings);
     this.Controls.Add(this.pictureBox1);
     this.Controls.Add(this.groupBox_AntiAFK);
     this.Controls.Add(this.group_Overlay);
     this.Controls.Add(this.btn_TruckersMP_suchen);
     this.Controls.Add(this.groupBox1);
     this.Controls.Add(this.save_button);
     this.Icon          = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
     this.Name          = "SettingsWindow";
     this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
     this.Text          = "Einstellungen";
     this.FormClosed   += new System.Windows.Forms.FormClosedEventHandler(this.SettingsWindow_FormClosed);
     this.Load         += new System.EventHandler(this.SettingsWindow_Load);
     this.groupBox1.ResumeLayout(false);
     this.groupBox1.PerformLayout();
     this.btn_TruckersMP_suchen.ResumeLayout(false);
     this.btn_TruckersMP_suchen.PerformLayout();
     this.group_Overlay.ResumeLayout(false);
     this.group_Overlay.PerformLayout();
     ((System.ComponentModel.ISupportInitialize)(this.num_Overlay_Transparenz)).EndInit();
     this.groupBox_AntiAFK.ResumeLayout(false);
     this.groupBox_AntiAFK.PerformLayout();
     ((System.ComponentModel.ISupportInitialize)(this.reload_antiafk)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
     this.ResumeLayout(false);
     this.PerformLayout();
 }
Ejemplo n.º 58
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();
            Syncfusion.Windows.Forms.MetroColorTable       metroColorTable1 = new Syncfusion.Windows.Forms.MetroColorTable();
            System.ComponentModel.ComponentResourceManager resources        = new System.ComponentModel.ComponentResourceManager(typeof(editForm));
            this.richTextBox1         = new System.Windows.Forms.RichTextBox();
            this.panel1               = new System.Windows.Forms.Panel();
            this.button1              = new Syncfusion.Windows.Forms.ButtonAdv();
            this.button2              = new Syncfusion.Windows.Forms.ButtonAdv();
            this.opnFileDlg           = new System.Windows.Forms.OpenFileDialog();
            this.mainFrameBarManager1 = new Syncfusion.Windows.Forms.Tools.XPMenus.MainFrameBarManager(this);
            this.bar1            = new Syncfusion.Windows.Forms.Tools.XPMenus.Bar(this.mainFrameBarManager1, "HTMLUIEditor");
            this.parentBarItem2  = new Syncfusion.Windows.Forms.Tools.XPMenus.ParentBarItem();
            this.barItem1        = new Syncfusion.Windows.Forms.Tools.XPMenus.BarItem();
            this.barItem2        = new Syncfusion.Windows.Forms.Tools.XPMenus.BarItem();
            this.parentBarItem1  = new Syncfusion.Windows.Forms.Tools.XPMenus.ParentBarItem();
            this.barItem4        = new Syncfusion.Windows.Forms.Tools.XPMenus.BarItem();
            this.barItem3        = new Syncfusion.Windows.Forms.Tools.XPMenus.BarItem();
            this.scrollersFrame1 = new Syncfusion.Windows.Forms.ScrollersFrame(this.components);
            this.panel1.SuspendLayout();
            ((System.ComponentModel.ISupportInitialize)(this.mainFrameBarManager1)).BeginInit();
            this.SuspendLayout();
            //
            // richTextBox1
            //
            this.richTextBox1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                                                                              | System.Windows.Forms.AnchorStyles.Left)
                                                                             | System.Windows.Forms.AnchorStyles.Right)));
            this.richTextBox1.Font     = new System.Drawing.Font("Tahoma", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.richTextBox1.Location = new System.Drawing.Point(5, 43);
            this.richTextBox1.Name     = "richTextBox1";
            this.richTextBox1.Size     = new System.Drawing.Size(376, 223);
            this.richTextBox1.TabIndex = 0;
            this.richTextBox1.Text     = "";
            //
            // panel1
            //
            this.panel1.BackColor = System.Drawing.Color.White;
            this.panel1.Controls.Add(this.button1);
            this.panel1.Controls.Add(this.button2);
            this.panel1.Dock     = System.Windows.Forms.DockStyle.Bottom;
            this.panel1.Location = new System.Drawing.Point(10, 273);
            this.panel1.Name     = "panel1";
            this.panel1.Size     = new System.Drawing.Size(368, 48);
            this.panel1.TabIndex = 1;
            //
            // button1
            //
            this.button1.Appearance              = Syncfusion.Windows.Forms.ButtonAppearance.Metro;
            this.button1.BackColor               = System.Drawing.Color.FromArgb(((int)(((byte)(17)))), ((int)(((byte)(158)))), ((int)(((byte)(218)))));
            this.button1.BeforeTouchSize         = new System.Drawing.Size(64, 24);
            this.button1.DialogResult            = System.Windows.Forms.DialogResult.OK;
            this.button1.FlatStyle               = System.Windows.Forms.FlatStyle.Flat;
            this.button1.Font                    = new System.Drawing.Font("Arial", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.button1.ForeColor               = System.Drawing.Color.Black;
            this.button1.IsBackStageButton       = false;
            this.button1.Location                = new System.Drawing.Point(64, 8);
            this.button1.Name                    = "button1";
            this.button1.Size                    = new System.Drawing.Size(64, 24);
            this.button1.TabIndex                = 0;
            this.button1.Text                    = "OK";
            this.button1.UseVisualStyleBackColor = false;
            //
            // button2
            //
            this.button2.Anchor                  = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
            this.button2.Appearance              = Syncfusion.Windows.Forms.ButtonAppearance.Metro;
            this.button2.BackColor               = System.Drawing.Color.FromArgb(((int)(((byte)(17)))), ((int)(((byte)(158)))), ((int)(((byte)(218)))));
            this.button2.BeforeTouchSize         = new System.Drawing.Size(64, 24);
            this.button2.DialogResult            = System.Windows.Forms.DialogResult.Cancel;
            this.button2.FlatStyle               = System.Windows.Forms.FlatStyle.Flat;
            this.button2.Font                    = new System.Drawing.Font("Arial", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.button2.ForeColor               = System.Drawing.Color.Black;
            this.button2.IsBackStageButton       = false;
            this.button2.Location                = new System.Drawing.Point(216, 8);
            this.button2.Name                    = "button2";
            this.button2.Size                    = new System.Drawing.Size(64, 24);
            this.button2.TabIndex                = 1;
            this.button2.Text                    = "Cancel";
            this.button2.UseVisualStyleBackColor = false;
            //
            // mainFrameBarManager1
            //
#if !NETCORE
            this.mainFrameBarManager1.BarPositionInfo = ((System.IO.MemoryStream)(resources.GetObject("mainFrameBarManager1.BarPositionInfo")));
#endif
            this.mainFrameBarManager1.Bars.Add(this.bar1);
            this.mainFrameBarManager1.Categories.Add("File");
            this.mainFrameBarManager1.Categories.Add("Edit");
            this.mainFrameBarManager1.CurrentBaseFormType = "Syncfusion.Windows.Forms.MetroForm";
            this.mainFrameBarManager1.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.mainFrameBarManager1.Form = this;
            this.mainFrameBarManager1.Items.AddRange(new Syncfusion.Windows.Forms.Tools.XPMenus.BarItem[] {
                this.parentBarItem2,
                this.barItem1,
                this.barItem2,
                this.parentBarItem1,
                this.barItem3,
                this.barItem4
            });
            this.mainFrameBarManager1.MetroColor         = System.Drawing.Color.FromArgb(((int)(((byte)(17)))), ((int)(((byte)(110)))), ((int)(((byte)(218)))));
            this.mainFrameBarManager1.ResetCustomization = false;
            this.mainFrameBarManager1.Style = Syncfusion.Windows.Forms.VisualStyle.Metro;
            //
            // bar1
            //
            this.bar1.BarName = "HTMLUIEditor";
            this.bar1.Caption = "HTMLUIEditor";
            this.bar1.Items.AddRange(new Syncfusion.Windows.Forms.Tools.XPMenus.BarItem[] {
                this.parentBarItem2,
                this.parentBarItem1
            });
            this.bar1.Manager = this.mainFrameBarManager1;
            //
            // parentBarItem2
            //
            this.parentBarItem2.BarName       = "parentBarItem2";
            this.parentBarItem2.CategoryIndex = 0;
            this.parentBarItem2.ID            = "File";
            this.parentBarItem2.Items.AddRange(new Syncfusion.Windows.Forms.Tools.XPMenus.BarItem[] {
                this.barItem1,
                this.barItem2
            });
            this.parentBarItem2.MetroColor         = System.Drawing.Color.FromArgb(((int)(((byte)(17)))), ((int)(((byte)(110)))), ((int)(((byte)(218)))));
            this.parentBarItem2.ShowToolTipInPopUp = false;
            this.parentBarItem2.SizeToFit          = true;
            this.parentBarItem2.Style      = Syncfusion.Windows.Forms.VisualStyle.Metro;
            this.parentBarItem2.Text       = "File";
            this.parentBarItem2.WrapLength = 20;
            //
            // barItem1
            //
            this.barItem1.BarName            = "barItem1";
            this.barItem1.CategoryIndex      = 0;
            this.barItem1.ID                 = "Open New File";
            this.barItem1.ShowToolTipInPopUp = false;
            this.barItem1.SizeToFit          = true;
            this.barItem1.Text               = "Open New File";
            this.barItem1.Click             += new System.EventHandler(this.menuItem2_Click);
            //
            // barItem2
            //
            this.barItem2.BarName            = "barItem2";
            this.barItem2.CategoryIndex      = 0;
            this.barItem2.ID                 = "Exit Edit Form";
            this.barItem2.ShowToolTipInPopUp = false;
            this.barItem2.SizeToFit          = true;
            this.barItem2.Text               = "Exit Edit Form";
            this.barItem2.Click             += new System.EventHandler(this.menuItem3_Click);
            //
            // parentBarItem1
            //
            this.parentBarItem1.BarName       = "parentBarItem1";
            this.parentBarItem1.CategoryIndex = 1;
            this.parentBarItem1.ID            = "Edit";
            this.parentBarItem1.Items.AddRange(new Syncfusion.Windows.Forms.Tools.XPMenus.BarItem[] {
                this.barItem4,
                this.barItem3
            });
            this.parentBarItem1.MetroColor         = System.Drawing.Color.FromArgb(((int)(((byte)(17)))), ((int)(((byte)(110)))), ((int)(((byte)(218)))));
            this.parentBarItem1.ShowToolTipInPopUp = false;
            this.parentBarItem1.SizeToFit          = true;
            this.parentBarItem1.Style      = Syncfusion.Windows.Forms.VisualStyle.Metro;
            this.parentBarItem1.Text       = "Edit";
            this.parentBarItem1.WrapLength = 20;
            //
            // barItem4
            //
            this.barItem4.BarName            = "barItem4";
            this.barItem4.CategoryIndex      = 1;
            this.barItem4.ID                 = "Select All";
            this.barItem4.ShowToolTipInPopUp = false;
            this.barItem4.SizeToFit          = true;
            this.barItem4.Text               = "Select All";
            this.barItem4.Click             += new System.EventHandler(this.menuItem5_Click);
            //
            // barItem3
            //
            this.barItem3.BarName            = "barItem3";
            this.barItem3.CategoryIndex      = 1;
            this.barItem3.ID                 = "Clear All";
            this.barItem3.ShowToolTipInPopUp = false;
            this.barItem3.SizeToFit          = true;
            this.barItem3.Text               = "Clear All";
            this.barItem3.Click             += new System.EventHandler(this.menuItem6_Click);
            //
            // scrollersFrame1
            //
            this.scrollersFrame1.AttachedTo            = this.richTextBox1;
            this.scrollersFrame1.CustomRender          = null;
            this.scrollersFrame1.MetroColorScheme      = Syncfusion.Windows.Forms.MetroColorScheme.Managed;
            metroColorTable1.ArrowChecked              = System.Drawing.Color.FromArgb(((int)(((byte)(147)))), ((int)(((byte)(149)))), ((int)(((byte)(152)))));
            metroColorTable1.ArrowNormal               = System.Drawing.Color.White;
            metroColorTable1.ArrowNormal               = System.Drawing.Color.FromArgb(((int)(((byte)(198)))), ((int)(((byte)(198)))), ((int)(((byte)(198)))));
            metroColorTable1.ArrowPushed               = System.Drawing.Color.FromArgb(((int)(((byte)(88)))), ((int)(((byte)(89)))), ((int)(((byte)(90)))));
            metroColorTable1.ScrollerBackground        = System.Drawing.Color.White;
            metroColorTable1.ThumbChecked              = System.Drawing.Color.FromArgb(((int)(((byte)(147)))), ((int)(((byte)(149)))), ((int)(((byte)(152)))));
            metroColorTable1.ThumbNormal               = System.Drawing.Color.White;
            metroColorTable1.ThumbNormal               = System.Drawing.Color.FromArgb(((int)(((byte)(198)))), ((int)(((byte)(198)))), ((int)(((byte)(198)))));
            metroColorTable1.ThumbPushed               = System.Drawing.Color.FromArgb(((int)(((byte)(88)))), ((int)(((byte)(89)))), ((int)(((byte)(90)))));
            this.scrollersFrame1.ScrollMetroColorTable = metroColorTable1;
            this.scrollersFrame1.SizeGripperVisibility = Syncfusion.Windows.Forms.SizeGripperVisibility.Auto;
            this.scrollersFrame1.VisualStyle           = Syncfusion.Windows.Forms.ScrollBarCustomDrawStyles.Metro;
            //
            // editForm
            //
            this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
            this.BorderColor       = System.Drawing.Color.FromArgb(((int)(((byte)(27)))), ((int)(((byte)(161)))), ((int)(((byte)(226)))));
            this.ClientSize        = new System.Drawing.Size(388, 331);
            this.Controls.Add(this.panel1);
            this.Controls.Add(this.richTextBox1);
            this.DropShadow    = true;
            this.Icon          = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
            this.MetroColor    = System.Drawing.Color.FromArgb(((int)(((byte)(27)))), ((int)(((byte)(161)))), ((int)(((byte)(226)))));
            this.Name          = "editForm";
            this.Padding       = new System.Windows.Forms.Padding(10);
            this.ShowInTaskbar = false;
            this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
            this.Text          = "Editor";
            this.Load         += new System.EventHandler(this.Form2_Load);
            this.panel1.ResumeLayout(false);
            ((System.ComponentModel.ISupportInitialize)(this.mainFrameBarManager1)).EndInit();
            this.ResumeLayout(false);
        }
Ejemplo n.º 59
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.mainMenu1              = new System.Windows.Forms.MainMenu(this.components);
     this.menuItem1              = new System.Windows.Forms.MenuItem();
     this.menuItem2              = new System.Windows.Forms.MenuItem();
     this.menuItem3              = new System.Windows.Forms.MenuItem();
     this.menuItem4              = new System.Windows.Forms.MenuItem();
     this.menuItem7              = new System.Windows.Forms.MenuItem();
     this.menuItem11             = new System.Windows.Forms.MenuItem();
     this.menuItem12             = new System.Windows.Forms.MenuItem();
     this.menuItem9              = new System.Windows.Forms.MenuItem();
     this.menuItem5              = new System.Windows.Forms.MenuItem();
     this.menuItem8              = new System.Windows.Forms.MenuItem();
     this.menuItem10             = new System.Windows.Forms.MenuItem();
     this.menuItem14             = new System.Windows.Forms.MenuItem();
     this.menuItem6              = new System.Windows.Forms.MenuItem();
     this.menuItem13             = new System.Windows.Forms.MenuItem();
     this.openFileDialog1        = new System.Windows.Forms.OpenFileDialog();
     this.pictureBoxSourceBitmap = new System.Windows.Forms.PictureBox();
     this.groupBox1              = new System.Windows.Forms.GroupBox();
     this.button7          = new System.Windows.Forms.Button();
     this.labelWidthHeight = new System.Windows.Forms.Label();
     this.groupBox2        = new System.Windows.Forms.GroupBox();
     this.button3          = new System.Windows.Forms.Button();
     this.label7           = new System.Windows.Forms.Label();
     this.numericUpDownSelectFromNBestCandidateQuiltErrorTolerance = new System.Windows.Forms.NumericUpDown();
     this.label6 = new System.Windows.Forms.Label();
     this.numericUpDownNumCandidateQuiltBlocks = new System.Windows.Forms.NumericUpDown();
     this.button2 = new System.Windows.Forms.Button();
     this.button1 = new System.Windows.Forms.Button();
     this.label5  = new System.Windows.Forms.Label();
     this.label4  = new System.Windows.Forms.Label();
     this.numericUpDownQuiltingBlockOverlap = new System.Windows.Forms.NumericUpDown();
     this.label3 = new System.Windows.Forms.Label();
     this.numericUpDownQuiltingBlockSize = new System.Windows.Forms.NumericUpDown();
     this.label2 = new System.Windows.Forms.Label();
     this.label1 = new System.Windows.Forms.Label();
     this.numericUpDownQuiltingHeight = new System.Windows.Forms.NumericUpDown();
     this.numericUpDownQuiltingWidth  = new System.Windows.Forms.NumericUpDown();
     this.pictureBoxQuiltedBitmap     = new System.Windows.Forms.PictureBox();
     this.statusBar1       = new System.Windows.Forms.StatusBar();
     this.textBoxDebugSpew = new System.Windows.Forms.TextBox();
     this.saveFileDialog1  = new System.Windows.Forms.SaveFileDialog();
     this.groupBox3        = new System.Windows.Forms.GroupBox();
     this.checkBoxOnePixelOverlapBetweenTiles = new System.Windows.Forms.CheckBox();
     this.button6          = new System.Windows.Forms.Button();
     this.label11          = new System.Windows.Forms.Label();
     this.textBoxWangSpecs = new System.Windows.Forms.TextBox();
     this.button5          = new System.Windows.Forms.Button();
     this.button4          = new System.Windows.Forms.Button();
     this.label8           = new System.Windows.Forms.Label();
     this.numericUpDownMaxWangMatchError = new System.Windows.Forms.NumericUpDown();
     this.label9 = new System.Windows.Forms.Label();
     this.numericUpDownMaxWangMatchAttempts = new System.Windows.Forms.NumericUpDown();
     this.label10 = new System.Windows.Forms.Label();
     this.numericUpDownWangTileSize = new System.Windows.Forms.NumericUpDown();
     ((System.ComponentModel.ISupportInitialize)(this.pictureBoxSourceBitmap)).BeginInit();
     this.groupBox1.SuspendLayout();
     this.groupBox2.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.numericUpDownSelectFromNBestCandidateQuiltErrorTolerance)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.numericUpDownNumCandidateQuiltBlocks)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.numericUpDownQuiltingBlockOverlap)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.numericUpDownQuiltingBlockSize)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.numericUpDownQuiltingHeight)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.numericUpDownQuiltingWidth)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.pictureBoxQuiltedBitmap)).BeginInit();
     this.groupBox3.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.numericUpDownMaxWangMatchError)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.numericUpDownMaxWangMatchAttempts)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.numericUpDownWangTileSize)).BeginInit();
     this.SuspendLayout();
     //
     // mainMenu1
     //
     this.mainMenu1.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
         this.menuItem1,
         this.menuItem7,
         this.menuItem8
     });
     //
     // menuItem1
     //
     this.menuItem1.Index = 0;
     this.menuItem1.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
         this.menuItem2,
         this.menuItem3,
         this.menuItem4
     });
     this.menuItem1.Text = "&File";
     //
     // menuItem2
     //
     this.menuItem2.Index  = 0;
     this.menuItem2.Text   = "&Open Source Texture...";
     this.menuItem2.Click += new System.EventHandler(this.menuItem2_Click);
     //
     // menuItem3
     //
     this.menuItem3.Index = 1;
     this.menuItem3.Text  = "-";
     //
     // menuItem4
     //
     this.menuItem4.Index  = 2;
     this.menuItem4.Text   = "E&xit";
     this.menuItem4.Click += new System.EventHandler(this.menuItem4_Click);
     //
     // menuItem7
     //
     this.menuItem7.Index = 1;
     this.menuItem7.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
         this.menuItem11,
         this.menuItem12,
         this.menuItem9,
         this.menuItem5
     });
     this.menuItem7.Text = "&Quilting";
     //
     // menuItem11
     //
     this.menuItem11.Index  = 0;
     this.menuItem11.Text   = "&Generate Quilt from Source Bitmap";
     this.menuItem11.Click += new System.EventHandler(this.button1_Click);
     //
     // menuItem12
     //
     this.menuItem12.Index = 1;
     this.menuItem12.Text  = "-";
     //
     // menuItem9
     //
     this.menuItem9.Index  = 2;
     this.menuItem9.Text   = "&Load Quilt Bitmap...";
     this.menuItem9.Click += new System.EventHandler(this.button3_Click);
     //
     // menuItem5
     //
     this.menuItem5.Index  = 3;
     this.menuItem5.Text   = "&Save Quilt Bitmap...";
     this.menuItem5.Click += new System.EventHandler(this.menuItem5_Click);
     //
     // menuItem8
     //
     this.menuItem8.Index = 2;
     this.menuItem8.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
         this.menuItem10,
         this.menuItem14,
         this.menuItem6,
         this.menuItem13
     });
     this.menuItem8.Text = "Wang Tiling";
     //
     // menuItem10
     //
     this.menuItem10.Index  = 0;
     this.menuItem10.Text   = "&Generate Wang Tiles";
     this.menuItem10.Click += new System.EventHandler(this.button4_Click);
     //
     // menuItem14
     //
     this.menuItem14.Index = 1;
     this.menuItem14.Text  = "-";
     //
     // menuItem6
     //
     this.menuItem6.Index  = 2;
     this.menuItem6.Text   = "&Save Individual Tiles...";
     this.menuItem6.Click += new System.EventHandler(this.button5_Click);
     //
     // menuItem13
     //
     this.menuItem13.Index  = 3;
     this.menuItem13.Text   = "Sa&ve MegaTile...";
     this.menuItem13.Click += new System.EventHandler(this.button6_Click);
     //
     // openFileDialog1
     //
     this.openFileDialog1.Title = "Select a bitmap image to use as a texture map";
     //
     // pictureBoxSourceBitmap
     //
     this.pictureBoxSourceBitmap.Location = new System.Drawing.Point(26, 35);
     this.pictureBoxSourceBitmap.Name     = "pictureBoxSourceBitmap";
     this.pictureBoxSourceBitmap.Size     = new System.Drawing.Size(409, 374);
     this.pictureBoxSourceBitmap.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
     this.pictureBoxSourceBitmap.TabIndex = 0;
     this.pictureBoxSourceBitmap.TabStop  = false;
     //
     // groupBox1
     //
     this.groupBox1.Controls.Add(this.button7);
     this.groupBox1.Controls.Add(this.labelWidthHeight);
     this.groupBox1.Controls.Add(this.pictureBoxSourceBitmap);
     this.groupBox1.Location = new System.Drawing.Point(38, 23);
     this.groupBox1.Name     = "groupBox1";
     this.groupBox1.Size     = new System.Drawing.Size(538, 503);
     this.groupBox1.TabIndex = 1;
     this.groupBox1.TabStop  = false;
     this.groupBox1.Text     = "Source bitmap";
     //
     // button7
     //
     this.button7.Location = new System.Drawing.Point(26, 456);
     this.button7.Name     = "button7";
     this.button7.Size     = new System.Drawing.Size(192, 34);
     this.button7.TabIndex = 12;
     this.button7.Text     = "Load Source Bitmap";
     this.button7.Click   += new System.EventHandler(this.menuItem2_Click);
     //
     // labelWidthHeight
     //
     this.labelWidthHeight.Location = new System.Drawing.Point(26, 421);
     this.labelWidthHeight.Name     = "labelWidthHeight";
     this.labelWidthHeight.Size     = new System.Drawing.Size(371, 34);
     this.labelWidthHeight.TabIndex = 1;
     this.labelWidthHeight.Text     = "Load a valid source bitmap to begin.";
     //
     // groupBox2
     //
     this.groupBox2.Controls.Add(this.button3);
     this.groupBox2.Controls.Add(this.label7);
     this.groupBox2.Controls.Add(this.numericUpDownSelectFromNBestCandidateQuiltErrorTolerance);
     this.groupBox2.Controls.Add(this.label6);
     this.groupBox2.Controls.Add(this.numericUpDownNumCandidateQuiltBlocks);
     this.groupBox2.Controls.Add(this.button2);
     this.groupBox2.Controls.Add(this.button1);
     this.groupBox2.Controls.Add(this.label5);
     this.groupBox2.Controls.Add(this.label4);
     this.groupBox2.Controls.Add(this.numericUpDownQuiltingBlockOverlap);
     this.groupBox2.Controls.Add(this.label3);
     this.groupBox2.Controls.Add(this.numericUpDownQuiltingBlockSize);
     this.groupBox2.Controls.Add(this.label2);
     this.groupBox2.Controls.Add(this.label1);
     this.groupBox2.Controls.Add(this.numericUpDownQuiltingHeight);
     this.groupBox2.Controls.Add(this.numericUpDownQuiltingWidth);
     this.groupBox2.Controls.Add(this.pictureBoxQuiltedBitmap);
     this.groupBox2.Location = new System.Drawing.Point(614, 23);
     this.groupBox2.Name     = "groupBox2";
     this.groupBox2.Size     = new System.Drawing.Size(679, 690);
     this.groupBox2.TabIndex = 2;
     this.groupBox2.TabStop  = false;
     this.groupBox2.Text     = "Quilting Utility";
     //
     // button3
     //
     this.button3.Location = new System.Drawing.Point(256, 631);
     this.button3.Name     = "button3";
     this.button3.Size     = new System.Drawing.Size(192, 34);
     this.button3.TabIndex = 17;
     this.button3.Text     = "Load Quilt";
     this.button3.Click   += new System.EventHandler(this.button3_Click);
     //
     // label7
     //
     this.label7.Location = new System.Drawing.Point(51, 596);
     this.label7.Name     = "label7";
     this.label7.Size     = new System.Drawing.Size(167, 34);
     this.label7.TabIndex = 16;
     this.label7.Text     = "Error Tolerance:";
     //
     // numericUpDownSelectFromNBestCandidateQuiltErrorTolerance
     //
     this.numericUpDownSelectFromNBestCandidateQuiltErrorTolerance.DecimalPlaces = 1;
     this.numericUpDownSelectFromNBestCandidateQuiltErrorTolerance.Location      = new System.Drawing.Point(230, 596);
     this.numericUpDownSelectFromNBestCandidateQuiltErrorTolerance.Maximum       = new decimal(new int[] {
         10,
         0,
         0,
         0
     });
     this.numericUpDownSelectFromNBestCandidateQuiltErrorTolerance.Name     = "numericUpDownSelectFromNBestCandidateQuiltErrorTolerance";
     this.numericUpDownSelectFromNBestCandidateQuiltErrorTolerance.Size     = new System.Drawing.Size(103, 26);
     this.numericUpDownSelectFromNBestCandidateQuiltErrorTolerance.TabIndex = 15;
     this.numericUpDownSelectFromNBestCandidateQuiltErrorTolerance.Value    = new decimal(new int[] {
         1,
         0,
         0,
         65536
     });
     //
     // label6
     //
     this.label6.Location = new System.Drawing.Point(13, 561);
     this.label6.Name     = "label6";
     this.label6.Size     = new System.Drawing.Size(205, 34);
     this.label6.TabIndex = 14;
     this.label6.Text     = "Num Candidate Blocks:";
     //
     // numericUpDownNumCandidateQuiltBlocks
     //
     this.numericUpDownNumCandidateQuiltBlocks.Location = new System.Drawing.Point(230, 561);
     this.numericUpDownNumCandidateQuiltBlocks.Maximum  = new decimal(new int[] {
         200,
         0,
         0,
         0
     });
     this.numericUpDownNumCandidateQuiltBlocks.Minimum = new decimal(new int[] {
         1,
         0,
         0,
         0
     });
     this.numericUpDownNumCandidateQuiltBlocks.Name     = "numericUpDownNumCandidateQuiltBlocks";
     this.numericUpDownNumCandidateQuiltBlocks.Size     = new System.Drawing.Size(103, 26);
     this.numericUpDownNumCandidateQuiltBlocks.TabIndex = 13;
     this.numericUpDownNumCandidateQuiltBlocks.Value    = new decimal(new int[] {
         15,
         0,
         0,
         0
     });
     //
     // button2
     //
     this.button2.Location = new System.Drawing.Point(461, 631);
     this.button2.Name     = "button2";
     this.button2.Size     = new System.Drawing.Size(192, 34);
     this.button2.TabIndex = 12;
     this.button2.Text     = "Save Quilt";
     this.button2.Click   += new System.EventHandler(this.menuItem5_Click);
     //
     // button1
     //
     this.button1.Location = new System.Drawing.Point(38, 631);
     this.button1.Name     = "button1";
     this.button1.Size     = new System.Drawing.Size(192, 34);
     this.button1.TabIndex = 11;
     this.button1.Text     = "Generate Quilt";
     this.button1.Click   += new System.EventHandler(this.button1_Click);
     //
     // label5
     //
     this.label5.Location = new System.Drawing.Point(346, 503);
     this.label5.Name     = "label5";
     this.label5.Size     = new System.Drawing.Size(153, 33);
     this.label5.TabIndex = 10;
     this.label5.Text     = "(~1/6 block size)";
     //
     // label4
     //
     this.label4.Location = new System.Drawing.Point(90, 503);
     this.label4.Name     = "label4";
     this.label4.Size     = new System.Drawing.Size(128, 33);
     this.label4.TabIndex = 9;
     this.label4.Text     = "Block Overlap:";
     //
     // numericUpDownQuiltingBlockOverlap
     //
     this.numericUpDownQuiltingBlockOverlap.Increment = new decimal(new int[] {
         8,
         0,
         0,
         0
     });
     this.numericUpDownQuiltingBlockOverlap.Location = new System.Drawing.Point(230, 503);
     this.numericUpDownQuiltingBlockOverlap.Maximum  = new decimal(new int[] {
         65536,
         0,
         0,
         0
     });
     this.numericUpDownQuiltingBlockOverlap.Minimum = new decimal(new int[] {
         4,
         0,
         0,
         0
     });
     this.numericUpDownQuiltingBlockOverlap.Name     = "numericUpDownQuiltingBlockOverlap";
     this.numericUpDownQuiltingBlockOverlap.Size     = new System.Drawing.Size(103, 26);
     this.numericUpDownQuiltingBlockOverlap.TabIndex = 8;
     this.numericUpDownQuiltingBlockOverlap.Value    = new decimal(new int[] {
         20,
         0,
         0,
         0
     });
     //
     // label3
     //
     this.label3.Location = new System.Drawing.Point(90, 468);
     this.label3.Name     = "label3";
     this.label3.Size     = new System.Drawing.Size(128, 33);
     this.label3.TabIndex = 7;
     this.label3.Text     = "Block Size:";
     //
     // numericUpDownQuiltingBlockSize
     //
     this.numericUpDownQuiltingBlockSize.Increment = new decimal(new int[] {
         8,
         0,
         0,
         0
     });
     this.numericUpDownQuiltingBlockSize.Location = new System.Drawing.Point(230, 468);
     this.numericUpDownQuiltingBlockSize.Maximum  = new decimal(new int[] {
         65536,
         0,
         0,
         0
     });
     this.numericUpDownQuiltingBlockSize.Minimum = new decimal(new int[] {
         8,
         0,
         0,
         0
     });
     this.numericUpDownQuiltingBlockSize.Name     = "numericUpDownQuiltingBlockSize";
     this.numericUpDownQuiltingBlockSize.Size     = new System.Drawing.Size(103, 26);
     this.numericUpDownQuiltingBlockSize.TabIndex = 6;
     this.numericUpDownQuiltingBlockSize.Value    = new decimal(new int[] {
         128,
         0,
         0,
         0
     });
     //
     // label2
     //
     this.label2.Location = new System.Drawing.Point(269, 421);
     this.label2.Name     = "label2";
     this.label2.Size     = new System.Drawing.Size(89, 34);
     this.label2.TabIndex = 5;
     this.label2.Text     = "Height:";
     //
     // label1
     //
     this.label1.Location = new System.Drawing.Point(13, 421);
     this.label1.Name     = "label1";
     this.label1.Size     = new System.Drawing.Size(128, 34);
     this.label1.TabIndex = 4;
     this.label1.Text     = "Quilting Width:";
     //
     // numericUpDownQuiltingHeight
     //
     this.numericUpDownQuiltingHeight.Increment = new decimal(new int[] {
         256,
         0,
         0,
         0
     });
     this.numericUpDownQuiltingHeight.Location = new System.Drawing.Point(371, 421);
     this.numericUpDownQuiltingHeight.Maximum  = new decimal(new int[] {
         65536,
         0,
         0,
         0
     });
     this.numericUpDownQuiltingHeight.Minimum = new decimal(new int[] {
         256,
         0,
         0,
         0
     });
     this.numericUpDownQuiltingHeight.Name     = "numericUpDownQuiltingHeight";
     this.numericUpDownQuiltingHeight.Size     = new System.Drawing.Size(103, 26);
     this.numericUpDownQuiltingHeight.TabIndex = 3;
     this.numericUpDownQuiltingHeight.Value    = new decimal(new int[] {
         1024,
         0,
         0,
         0
     });
     //
     // numericUpDownQuiltingWidth
     //
     this.numericUpDownQuiltingWidth.Increment = new decimal(new int[] {
         256,
         0,
         0,
         0
     });
     this.numericUpDownQuiltingWidth.Location = new System.Drawing.Point(154, 421);
     this.numericUpDownQuiltingWidth.Maximum  = new decimal(new int[] {
         65536,
         0,
         0,
         0
     });
     this.numericUpDownQuiltingWidth.Minimum = new decimal(new int[] {
         256,
         0,
         0,
         0
     });
     this.numericUpDownQuiltingWidth.Name     = "numericUpDownQuiltingWidth";
     this.numericUpDownQuiltingWidth.Size     = new System.Drawing.Size(102, 26);
     this.numericUpDownQuiltingWidth.TabIndex = 2;
     this.numericUpDownQuiltingWidth.Value    = new decimal(new int[] {
         1024,
         0,
         0,
         0
     });
     //
     // pictureBoxQuiltedBitmap
     //
     this.pictureBoxQuiltedBitmap.Location = new System.Drawing.Point(26, 35);
     this.pictureBoxQuiltedBitmap.Name     = "pictureBoxQuiltedBitmap";
     this.pictureBoxQuiltedBitmap.Size     = new System.Drawing.Size(588, 374);
     this.pictureBoxQuiltedBitmap.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
     this.pictureBoxQuiltedBitmap.TabIndex = 0;
     this.pictureBoxQuiltedBitmap.TabStop  = false;
     this.pictureBoxQuiltedBitmap.Click   += new System.EventHandler(this.pictureBoxQuiltedBitmap_Click);
     //
     // statusBar1
     //
     this.statusBar1.Location = new System.Drawing.Point(0, 904);
     this.statusBar1.Name     = "statusBar1";
     this.statusBar1.Size     = new System.Drawing.Size(1754, 32);
     this.statusBar1.TabIndex = 3;
     //
     // textBoxDebugSpew
     //
     this.textBoxDebugSpew.Location  = new System.Drawing.Point(38, 737);
     this.textBoxDebugSpew.Multiline = true;
     this.textBoxDebugSpew.Name      = "textBoxDebugSpew";
     this.textBoxDebugSpew.Size      = new System.Drawing.Size(1600, 117);
     this.textBoxDebugSpew.TabIndex  = 4;
     this.textBoxDebugSpew.Text      = "Debug Spew";
     //
     // groupBox3
     //
     this.groupBox3.Controls.Add(this.checkBoxOnePixelOverlapBetweenTiles);
     this.groupBox3.Controls.Add(this.button6);
     this.groupBox3.Controls.Add(this.label11);
     this.groupBox3.Controls.Add(this.textBoxWangSpecs);
     this.groupBox3.Controls.Add(this.button5);
     this.groupBox3.Controls.Add(this.button4);
     this.groupBox3.Controls.Add(this.label8);
     this.groupBox3.Controls.Add(this.numericUpDownMaxWangMatchError);
     this.groupBox3.Controls.Add(this.label9);
     this.groupBox3.Controls.Add(this.numericUpDownMaxWangMatchAttempts);
     this.groupBox3.Controls.Add(this.label10);
     this.groupBox3.Controls.Add(this.numericUpDownWangTileSize);
     this.groupBox3.Location = new System.Drawing.Point(1306, 23);
     this.groupBox3.Name     = "groupBox3";
     this.groupBox3.Size     = new System.Drawing.Size(396, 690);
     this.groupBox3.TabIndex = 5;
     this.groupBox3.TabStop  = false;
     this.groupBox3.Text     = "Wang Tiling";
     //
     // checkBoxOnePixelOverlapBetweenTiles
     //
     this.checkBoxOnePixelOverlapBetweenTiles.Checked    = true;
     this.checkBoxOnePixelOverlapBetweenTiles.CheckState = System.Windows.Forms.CheckState.Checked;
     this.checkBoxOnePixelOverlapBetweenTiles.Location   = new System.Drawing.Point(38, 187);
     this.checkBoxOnePixelOverlapBetweenTiles.Name       = "checkBoxOnePixelOverlapBetweenTiles";
     this.checkBoxOnePixelOverlapBetweenTiles.Size       = new System.Drawing.Size(308, 35);
     this.checkBoxOnePixelOverlapBetweenTiles.TabIndex   = 30;
     this.checkBoxOnePixelOverlapBetweenTiles.Text       = "One pixel overlap between tiles";
     //
     // button6
     //
     this.button6.Location = new System.Drawing.Point(218, 631);
     this.button6.Name     = "button6";
     this.button6.Size     = new System.Drawing.Size(153, 34);
     this.button6.TabIndex = 29;
     this.button6.Text     = "Save MegaTile";
     this.button6.Click   += new System.EventHandler(this.button6_Click);
     //
     // label11
     //
     this.label11.Location = new System.Drawing.Point(38, 234);
     this.label11.Name     = "label11";
     this.label11.Size     = new System.Drawing.Size(231, 47);
     this.label11.TabIndex = 28;
     this.label11.Text     = "Wang Tile Colours (NESW):";
     //
     // textBoxWangSpecs
     //
     this.textBoxWangSpecs.Location   = new System.Drawing.Point(38, 281);
     this.textBoxWangSpecs.Multiline  = true;
     this.textBoxWangSpecs.Name       = "textBoxWangSpecs";
     this.textBoxWangSpecs.ScrollBars = System.Windows.Forms.ScrollBars.Vertical;
     this.textBoxWangSpecs.Size       = new System.Drawing.Size(282, 257);
     this.textBoxWangSpecs.TabIndex   = 27;
     this.textBoxWangSpecs.Text       = "0312\r\n1212\r\n0303\r\n1203\r\n0213\r\n1313\r\n0202\r\n1302";
     //
     // button5
     //
     this.button5.Location = new System.Drawing.Point(13, 631);
     this.button5.Name     = "button5";
     this.button5.Size     = new System.Drawing.Size(192, 34);
     this.button5.TabIndex = 26;
     this.button5.Text     = "Save Individual Tiles";
     this.button5.Click   += new System.EventHandler(this.button5_Click);
     //
     // button4
     //
     this.button4.Location = new System.Drawing.Point(13, 585);
     this.button4.Name     = "button4";
     this.button4.Size     = new System.Drawing.Size(192, 33);
     this.button4.TabIndex = 25;
     this.button4.Text     = "Generate Wang Tiles";
     this.button4.Click   += new System.EventHandler(this.button4_Click);
     //
     // label8
     //
     this.label8.Location = new System.Drawing.Point(13, 140);
     this.label8.Name     = "label8";
     this.label8.Size     = new System.Drawing.Size(192, 34);
     this.label8.TabIndex = 24;
     this.label8.Text     = "Max Matching Error:";
     //
     // numericUpDownMaxWangMatchError
     //
     this.numericUpDownMaxWangMatchError.Increment = new decimal(new int[] {
         1000,
         0,
         0,
         0
     });
     this.numericUpDownMaxWangMatchError.Location = new System.Drawing.Point(224, 140);
     this.numericUpDownMaxWangMatchError.Maximum  = new decimal(new int[] {
         100000,
         0,
         0,
         0
     });
     this.numericUpDownMaxWangMatchError.Name     = "numericUpDownMaxWangMatchError";
     this.numericUpDownMaxWangMatchError.Size     = new System.Drawing.Size(102, 26);
     this.numericUpDownMaxWangMatchError.TabIndex = 23;
     this.numericUpDownMaxWangMatchError.Value    = new decimal(new int[] {
         1000,
         0,
         0,
         0
     });
     //
     // label9
     //
     this.label9.Location = new System.Drawing.Point(6, 105);
     this.label9.Name     = "label9";
     this.label9.Size     = new System.Drawing.Size(205, 34);
     this.label9.TabIndex = 22;
     this.label9.Text     = "Max Attempts:";
     //
     // numericUpDownMaxWangMatchAttempts
     //
     this.numericUpDownMaxWangMatchAttempts.Location = new System.Drawing.Point(224, 105);
     this.numericUpDownMaxWangMatchAttempts.Maximum  = new decimal(new int[] {
         200,
         0,
         0,
         0
     });
     this.numericUpDownMaxWangMatchAttempts.Minimum = new decimal(new int[] {
         1,
         0,
         0,
         0
     });
     this.numericUpDownMaxWangMatchAttempts.Name     = "numericUpDownMaxWangMatchAttempts";
     this.numericUpDownMaxWangMatchAttempts.Size     = new System.Drawing.Size(102, 26);
     this.numericUpDownMaxWangMatchAttempts.TabIndex = 21;
     this.numericUpDownMaxWangMatchAttempts.Value    = new decimal(new int[] {
         15,
         0,
         0,
         0
     });
     //
     // label10
     //
     this.label10.Location = new System.Drawing.Point(51, 47);
     this.label10.Name     = "label10";
     this.label10.Size     = new System.Drawing.Size(154, 33);
     this.label10.TabIndex = 20;
     this.label10.Text     = "Wang Tile Size:";
     //
     // numericUpDownWangTileSize
     //
     this.numericUpDownWangTileSize.Increment = new decimal(new int[] {
         128,
         0,
         0,
         0
     });
     this.numericUpDownWangTileSize.Location = new System.Drawing.Point(224, 47);
     this.numericUpDownWangTileSize.Maximum  = new decimal(new int[] {
         65536,
         0,
         0,
         0
     });
     this.numericUpDownWangTileSize.Minimum = new decimal(new int[] {
         32,
         0,
         0,
         0
     });
     this.numericUpDownWangTileSize.Name     = "numericUpDownWangTileSize";
     this.numericUpDownWangTileSize.Size     = new System.Drawing.Size(102, 26);
     this.numericUpDownWangTileSize.TabIndex = 19;
     this.numericUpDownWangTileSize.Value    = new decimal(new int[] {
         256,
         0,
         0,
         0
     });
     //
     // WangTileForm
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(8, 19);
     this.ClientSize        = new System.Drawing.Size(1754, 936);
     this.Controls.Add(this.groupBox3);
     this.Controls.Add(this.textBoxDebugSpew);
     this.Controls.Add(this.statusBar1);
     this.Controls.Add(this.groupBox2);
     this.Controls.Add(this.groupBox1);
     this.Menu = this.mainMenu1;
     this.Name = "WangTileForm";
     this.Text = "Railworks Texture Quilting and Wang Tiling Utility";
     ((System.ComponentModel.ISupportInitialize)(this.pictureBoxSourceBitmap)).EndInit();
     this.groupBox1.ResumeLayout(false);
     this.groupBox2.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.numericUpDownSelectFromNBestCandidateQuiltErrorTolerance)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.numericUpDownNumCandidateQuiltBlocks)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.numericUpDownQuiltingBlockOverlap)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.numericUpDownQuiltingBlockSize)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.numericUpDownQuiltingHeight)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.numericUpDownQuiltingWidth)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.pictureBoxQuiltedBitmap)).EndInit();
     this.groupBox3.ResumeLayout(false);
     this.groupBox3.PerformLayout();
     ((System.ComponentModel.ISupportInitialize)(this.numericUpDownMaxWangMatchError)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.numericUpDownMaxWangMatchAttempts)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.numericUpDownWangTileSize)).EndInit();
     this.ResumeLayout(false);
     this.PerformLayout();
 }
Ejemplo n.º 60
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(WinMD5Form));
     this.progressBar              = new System.Windows.Forms.ProgressBar();
     this.label1                   = new System.Windows.Forms.Label();
     this.mainMenu                 = new System.Windows.Forms.MainMenu(this.components);
     this.menuItem1                = new System.Windows.Forms.MenuItem();
     this.openFileItem             = new System.Windows.Forms.MenuItem();
     this.openMD5Item              = new System.Windows.Forms.MenuItem();
     this.menuItem5                = new System.Windows.Forms.MenuItem();
     this.saveMD5Item              = new System.Windows.Forms.MenuItem();
     this.menuItem6                = new System.Windows.Forms.MenuItem();
     this.quitItem                 = new System.Windows.Forms.MenuItem();
     this.menuItem2                = new System.Windows.Forms.MenuItem();
     this.copyItem                 = new System.Windows.Forms.MenuItem();
     this.menuItem3                = new System.Windows.Forms.MenuItem();
     this.alwaysOnTopItem          = new System.Windows.Forms.MenuItem();
     this.useCRLF                  = new System.Windows.Forms.MenuItem();
     this.menuItem7                = new System.Windows.Forms.MenuItem();
     this.aboutItem                = new System.Windows.Forms.MenuItem();
     this.webLink                  = new System.Windows.Forms.LinkLabel();
     this.currentlyProcessingLabel = new System.Windows.Forms.Label();
     this.label3                   = new System.Windows.Forms.Label();
     this.listView                 = new System.Windows.Forms.ListView();
     this.pathHeader               = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
     this.hashHeader               = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
     this.sizeHeader               = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
     this.verifiedHeader           = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
     this.label4                   = new System.Windows.Forms.Label();
     this.knownHashesLabel         = new System.Windows.Forms.Label();
     this.clearButton              = new System.Windows.Forms.Button();
     this.openFileDialog           = new System.Windows.Forms.OpenFileDialog();
     this.saveFileDialog           = new System.Windows.Forms.SaveFileDialog();
     this.pictureBox               = new System.Windows.Forms.PictureBox();
     this.alertTimer               = new System.Windows.Forms.Timer(this.components);
     this.alertLabel               = new System.Windows.Forms.Label();
     this.enqueuedLabel            = new System.Windows.Forms.Label();
     this.abortButton              = new System.Windows.Forms.Button();
     this.unmatchedHashesLabel     = new System.Windows.Forms.Label();
     this.label5                   = new System.Windows.Forms.Label();
     ((System.ComponentModel.ISupportInitialize)(this.pictureBox)).BeginInit();
     this.SuspendLayout();
     //
     // progressBar
     //
     this.progressBar.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                                                                     | System.Windows.Forms.AnchorStyles.Right)));
     this.progressBar.Location = new System.Drawing.Point(8, 50);
     this.progressBar.Name     = "progressBar";
     this.progressBar.Size     = new System.Drawing.Size(662, 8);
     this.progressBar.TabIndex = 1;
     //
     // label1
     //
     this.label1.Location = new System.Drawing.Point(8, 12);
     this.label1.Name     = "label1";
     this.label1.Size     = new System.Drawing.Size(120, 20);
     this.label1.TabIndex = 2;
     this.label1.Text     = "Currently Processing:";
     //
     // mainMenu
     //
     this.mainMenu.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
         this.menuItem1,
         this.menuItem2,
         this.menuItem3,
         this.menuItem7
     });
     //
     // menuItem1
     //
     this.menuItem1.Index = 0;
     this.menuItem1.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
         this.openFileItem,
         this.openMD5Item,
         this.menuItem5,
         this.saveMD5Item,
         this.menuItem6,
         this.quitItem
     });
     this.menuItem1.Text = "&File";
     //
     // openFileItem
     //
     this.openFileItem.Index  = 0;
     this.openFileItem.Text   = "&Open File...";
     this.openFileItem.Click += new System.EventHandler(this.openFileItem_Click);
     //
     // openMD5Item
     //
     this.openMD5Item.Index  = 1;
     this.openMD5Item.Text   = "Open &MD5 File...";
     this.openMD5Item.Click += new System.EventHandler(this.openMD5Item_Click);
     //
     // menuItem5
     //
     this.menuItem5.Index = 2;
     this.menuItem5.Text  = "-";
     //
     // saveMD5Item
     //
     this.saveMD5Item.Index  = 3;
     this.saveMD5Item.Text   = "&Save MD5 File...";
     this.saveMD5Item.Click += new System.EventHandler(this.saveMD5Item_Click);
     //
     // menuItem6
     //
     this.menuItem6.Index = 4;
     this.menuItem6.Text  = "-";
     //
     // quitItem
     //
     this.quitItem.Index    = 5;
     this.quitItem.Shortcut = System.Windows.Forms.Shortcut.CtrlQ;
     this.quitItem.Text     = "&Quit";
     this.quitItem.Click   += new System.EventHandler(this.quitItem_Click);
     //
     // menuItem2
     //
     this.menuItem2.Index = 1;
     this.menuItem2.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
         this.copyItem
     });
     this.menuItem2.Text = "&Edit";
     //
     // copyItem
     //
     this.copyItem.Index    = 0;
     this.copyItem.Shortcut = System.Windows.Forms.Shortcut.CtrlC;
     this.copyItem.Text     = "&Copy";
     this.copyItem.Click   += new System.EventHandler(this.copyItem_Click);
     //
     // menuItem3
     //
     this.menuItem3.Index = 2;
     this.menuItem3.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
         this.alwaysOnTopItem,
         this.useCRLF
     });
     this.menuItem3.Text = "&Options";
     //
     // alwaysOnTopItem
     //
     this.alwaysOnTopItem.Index  = 0;
     this.alwaysOnTopItem.Text   = "Always on &top";
     this.alwaysOnTopItem.Click += new System.EventHandler(this.alwaysOnTopItem_Click);
     //
     // useCRLF
     //
     this.useCRLF.Checked = true;
     this.useCRLF.Index   = 1;
     this.useCRLF.Text    = "Use &CRLF when saving";
     this.useCRLF.Click  += new System.EventHandler(this.useCRLF_Click);
     //
     // menuItem7
     //
     this.menuItem7.Index = 3;
     this.menuItem7.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
         this.aboutItem
     });
     this.menuItem7.Text = "&Help";
     //
     // aboutItem
     //
     this.aboutItem.Index  = 0;
     this.aboutItem.Text   = "About WinMD5...";
     this.aboutItem.Click += new System.EventHandler(this.aboutItem_Click);
     //
     // webLink
     //
     this.webLink.Anchor       = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.webLink.Location     = new System.Drawing.Point(500, 299);
     this.webLink.Name         = "webLink";
     this.webLink.Size         = new System.Drawing.Size(185, 23);
     this.webLink.TabIndex     = 3;
     this.webLink.TabStop      = true;
     this.webLink.Text         = "http://www.blisstonia.com/software";
     this.webLink.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.webLink_LinkClicked);
     //
     // currentlyProcessingLabel
     //
     this.currentlyProcessingLabel.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                                                                                  | System.Windows.Forms.AnchorStyles.Right)));
     this.currentlyProcessingLabel.Location = new System.Drawing.Point(120, 12);
     this.currentlyProcessingLabel.Name     = "currentlyProcessingLabel";
     this.currentlyProcessingLabel.Size     = new System.Drawing.Size(390, 20);
     this.currentlyProcessingLabel.TabIndex = 5;
     this.currentlyProcessingLabel.Text     = "(idle)";
     //
     // label3
     //
     this.label3.Anchor   = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
     this.label3.Location = new System.Drawing.Point(8, 299);
     this.label3.Name     = "label3";
     this.label3.Size     = new System.Drawing.Size(304, 16);
     this.label3.TabIndex = 6;
     this.label3.Text     = "Drag files and MD5SUM files (if available) into this window.";
     //
     // listView
     //
     this.listView.AllowColumnReorder = true;
     this.listView.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.listView.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
     this.listView.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
         this.pathHeader,
         this.hashHeader,
         this.sizeHeader,
         this.verifiedHeader
     });
     this.listView.Font          = new System.Drawing.Font("Courier New", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.listView.FullRowSelect = true;
     this.listView.GridLines     = true;
     this.listView.ImeMode       = System.Windows.Forms.ImeMode.On;
     this.listView.Location      = new System.Drawing.Point(8, 64);
     this.listView.Name          = "listView";
     this.listView.RightToLeft   = System.Windows.Forms.RightToLeft.No;
     this.listView.Size          = new System.Drawing.Size(662, 190);
     this.listView.TabIndex      = 7;
     this.listView.UseCompatibleStateImageBehavior = false;
     this.listView.View         = System.Windows.Forms.View.Details;
     this.listView.ColumnClick += new System.Windows.Forms.ColumnClickEventHandler(this.listView_ColumnClick);
     this.listView.Resize      += new System.EventHandler(this.listView_Resize);
     //
     // pathHeader
     //
     this.pathHeader.Text  = "Path";
     this.pathHeader.Width = 108;
     //
     // hashHeader
     //
     this.hashHeader.Text  = "Hash";
     this.hashHeader.Width = 246;
     //
     // sizeHeader
     //
     this.sizeHeader.Text = "Bytes";
     //
     // verifiedHeader
     //
     this.verifiedHeader.Text  = "Status";
     this.verifiedHeader.Width = 71;
     //
     // label4
     //
     this.label4.Anchor   = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.label4.Location = new System.Drawing.Point(356, 264);
     this.label4.Name     = "label4";
     this.label4.Size     = new System.Drawing.Size(289, 16);
     this.label4.TabIndex = 8;
     this.label4.Text     = "Number of known md5 hashes found in MD5SUM files: ";
     //
     // knownHashesLabel
     //
     this.knownHashesLabel.Anchor    = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.knownHashesLabel.Location  = new System.Drawing.Point(636, 264);
     this.knownHashesLabel.Name      = "knownHashesLabel";
     this.knownHashesLabel.Size      = new System.Drawing.Size(32, 23);
     this.knownHashesLabel.TabIndex  = 9;
     this.knownHashesLabel.Text      = "0";
     this.knownHashesLabel.TextAlign = System.Drawing.ContentAlignment.TopRight;
     //
     // clearButton
     //
     this.clearButton.Anchor   = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
     this.clearButton.Location = new System.Drawing.Point(8, 262);
     this.clearButton.Name     = "clearButton";
     this.clearButton.Size     = new System.Drawing.Size(75, 23);
     this.clearButton.TabIndex = 10;
     this.clearButton.Text     = "&Clear";
     this.clearButton.Click   += new System.EventHandler(this.clearButton_Click);
     //
     // openFileDialog
     //
     this.openFileDialog.Multiselect = true;
     //
     // pictureBox
     //
     this.pictureBox.Anchor       = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.pictureBox.Image        = ((System.Drawing.Image)(resources.GetObject("pictureBox.Image")));
     this.pictureBox.InitialImage = ((System.Drawing.Image)(resources.GetObject("pictureBox.InitialImage")));
     this.pictureBox.Location     = new System.Drawing.Point(627, 4);
     this.pictureBox.Name         = "pictureBox";
     this.pictureBox.Size         = new System.Drawing.Size(35, 40);
     this.pictureBox.SizeMode     = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
     this.pictureBox.TabIndex     = 11;
     this.pictureBox.TabStop      = false;
     this.pictureBox.Visible      = false;
     this.pictureBox.Click       += new System.EventHandler(this.pictureBox_Click);
     //
     // alertTimer
     //
     this.alertTimer.Interval = 400;
     this.alertTimer.Tick    += new System.EventHandler(this.alertTimer_Tick);
     //
     // alertLabel
     //
     this.alertLabel.Anchor    = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.alertLabel.Font      = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.alertLabel.Location  = new System.Drawing.Point(475, 15);
     this.alertLabel.Name      = "alertLabel";
     this.alertLabel.Size      = new System.Drawing.Size(146, 17);
     this.alertLabel.TabIndex  = 12;
     this.alertLabel.Text      = "Errors Found";
     this.alertLabel.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     this.alertLabel.Visible   = false;
     this.alertLabel.Click    += new System.EventHandler(this.alertLabel_Click);
     //
     // enqueuedLabel
     //
     this.enqueuedLabel.Location = new System.Drawing.Point(7, 30);
     this.enqueuedLabel.Name     = "enqueuedLabel";
     this.enqueuedLabel.Size     = new System.Drawing.Size(265, 16);
     this.enqueuedLabel.TabIndex = 13;
     this.enqueuedLabel.Text     = "(0 files enqueued)";
     //
     // abortButton
     //
     this.abortButton.Anchor   = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
     this.abortButton.Location = new System.Drawing.Point(104, 262);
     this.abortButton.Name     = "abortButton";
     this.abortButton.Size     = new System.Drawing.Size(75, 23);
     this.abortButton.TabIndex = 14;
     this.abortButton.Text     = "&Abort";
     this.abortButton.Click   += new System.EventHandler(this.abortButton_Click);
     //
     // unmatchedHashesLabel
     //
     this.unmatchedHashesLabel.Anchor    = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.unmatchedHashesLabel.Location  = new System.Drawing.Point(636, 283);
     this.unmatchedHashesLabel.Name      = "unmatchedHashesLabel";
     this.unmatchedHashesLabel.Size      = new System.Drawing.Size(32, 23);
     this.unmatchedHashesLabel.TabIndex  = 16;
     this.unmatchedHashesLabel.Text      = "0";
     this.unmatchedHashesLabel.TextAlign = System.Drawing.ContentAlignment.TopRight;
     //
     // label5
     //
     this.label5.Anchor   = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.label5.Location = new System.Drawing.Point(356, 283);
     this.label5.Name     = "label5";
     this.label5.Size     = new System.Drawing.Size(289, 16);
     this.label5.TabIndex = 15;
     this.label5.Text     = "Number of unmatched md5 hashes: ";
     //
     // WinMD5Form
     //
     this.AllowDrop         = true;
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.BackColor         = System.Drawing.Color.PaleGoldenrod;
     this.ClientSize        = new System.Drawing.Size(680, 319);
     this.Controls.Add(this.unmatchedHashesLabel);
     this.Controls.Add(this.label5);
     this.Controls.Add(this.abortButton);
     this.Controls.Add(this.enqueuedLabel);
     this.Controls.Add(this.alertLabel);
     this.Controls.Add(this.pictureBox);
     this.Controls.Add(this.clearButton);
     this.Controls.Add(this.knownHashesLabel);
     this.Controls.Add(this.label4);
     this.Controls.Add(this.listView);
     this.Controls.Add(this.label3);
     this.Controls.Add(this.currentlyProcessingLabel);
     this.Controls.Add(this.webLink);
     this.Controls.Add(this.label1);
     this.Controls.Add(this.progressBar);
     this.Icon        = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
     this.Menu        = this.mainMenu;
     this.MinimumSize = new System.Drawing.Size(580, 208);
     this.Name        = "WinMD5Form";
     this.Text        = "Title will be set at runtime in WinMD5Form constructor";
     this.Closing    += new System.ComponentModel.CancelEventHandler(this.WinMD5Form_Closing);
     this.Load       += new System.EventHandler(this.WinMD5Form_Load);
     this.DragDrop   += new System.Windows.Forms.DragEventHandler(this.WinMD5Form_DragDrop);
     this.DragEnter  += new System.Windows.Forms.DragEventHandler(this.WinMD5Form_DragEnter);
     ((System.ComponentModel.ISupportInitialize)(this.pictureBox)).EndInit();
     this.ResumeLayout(false);
 }