示例#1
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void BrowseSoundBox_Click(object sender, EventArgs e)
        {
            if (EventSquare == null)
            {
                return;
            }

            StorageBrowserForm form = new StorageBrowserForm();

            form.MultiSelect = false;
            if (form.ShowDialog() != DialogResult.OK)
            {
                return;
            }

            SoundNameBox.Text = form.FileName;
        }
示例#2
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void ChangeTextureBox_Click(object sender, EventArgs e)
        {
            StorageBrowserForm form = new StorageBrowserForm();

            form.MultiSelect = false;
            form.FileName    = TileSet.TextureName;
            if (form.ShowDialog() != DialogResult.OK)
            {
                return;
            }

            TextureNameBox.Text = form.FileName;
            TileSet.TextureName = form.FileName;

            if (TileSet.Texture != null)
            {
                TileSet.Texture.Dispose();
            }

            TileSet.Texture = new Texture2D(form.FileName);
        }
示例#3
0
		private void LoadAttackSoundBox_Click(object sender, EventArgs e)
		{
			StorageBrowserForm form = new StorageBrowserForm();
			form.ShowDialog();
		}
示例#4
0
        private void LoadAttackSoundBox_Click(object sender, EventArgs e)
        {
            StorageBrowserForm form = new StorageBrowserForm();

            form.ShowDialog();
        }
		/// <summary>
		/// 
		/// </summary>
		/// <param name="sender"></param>
		/// <param name="e"></param>
		private void BrowsePictureBox_Click(object sender, EventArgs e)
		{
			if (EventSquare == null)
				return;

			StorageBrowserForm form = new StorageBrowserForm();
			form.MultiSelect = false;
			if (form.ShowDialog() != DialogResult.OK)
				return;

			PictureNameBox.Text = form.FileName;

		}