Пример #1
0
        private void Playyer_Load(object sender, EventArgs e)
        {
            timer1.Start();
            timer2.Start();
            Editor2D editor2D = new Editor2D();

            editor2D.pictureBox1.ImageLocation = pictureBox1.ImageLocation;
            if (File.Exists(@"\dialogs.vbs"))
            {
                Process.Start(AppDomain.CurrentDomain.BaseDirectory + @"\dialogs.vbs");
            }
            if (File.Exists("JubityFlow.exe"))
            {
                Process.Start("JubityFlow.exe");
            }
        }
Пример #2
0
        private void Button1_Click(object sender, EventArgs e)
        {
            Editor2D editor2D = new Editor2D();

            gameName = editor2D.textBox1.Text;
            SpeechSynthesizer synthesizer = new SpeechSynthesizer();

            axWindowsMediaPlayer1.URL = "sampleSplash.mp4";
            string tempbox = richTextBox1.Text;

            new Thread(() =>
            {
                Thread.CurrentThread.IsBackground = true;
                synthesizer.Speak(gameName);
                synthesizer.Speak(tempbox);
            }).Start();
        }
Пример #3
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     components      = new System.ComponentModel.Container();
     this.PictureBox = new System.Windows.Forms.PictureBox();
     AutoScroll      = true;
     Controls.Add(this.PictureBox);
     Dock = System.Windows.Forms.DockStyle.Fill;
     //Picture Box
     PictureBox.BackColor = System.Drawing.SystemColors.Window;
     PictureBox.Location  = new System.Drawing.Point(8, 8);
     PictureBox.Name      = "editorWindow";
     Editor          = new Editor2D(PictureBox);
     PictureBox.Size = new System.Drawing.Size((int)(this.Width * Editor.MaxZoom),
                                               (int)(this.Height * Editor.MaxZoom));
     PictureBox.TabIndex = 10;
     PictureBox.TabStop  = false;
 }