using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.Reflection;
//using 電子文書回覧監視ツール;

namespace 電子文書回覧監視ツール
{
    public partial class About : Form
    {
        Form1 Producer;
        public About(Form1 P)
        {
            Producer=P;
            InitializeComponent();

            if (Producer.MODE2 == true)
            {
                textBox1.Text = Properties.Resources.説明1_MODE2;
            }
            else
            {
                textBox1.Text = Properties.Resources.説明1;
            }
            textBox2.Text = Properties.Resources.LISENCE;
            //AssemblyName AssemblyName = Assembly.GetExecutingAssembly().GetName();
            //AboutLabel2.Text = "プログラム : " + AssemblyName.Name.ToString() + Environment.NewLine
            //                 + "    　　　   " + Environment.NewLine
            //                 + "バージョン : " + AssemblyName.Version.ToString() + Environment.NewLine
            //                 + "    　　　   " + Environment.NewLine
            //                 + "パス　　　 : " + AssemblyName.CodeBase.ToString() + Environment.NewLine
            //                 + "    　　　   " + Environment.NewLine
            //                 + "ライセンス : Copyright (c) Kensaku Matsumoto. All Rights Reserved." + Environment.NewLine
            //                 + "    　　　   " + Environment.NewLine
            //                 + "    　　　   " + Environment.NewLine
            //                 + "    　　　   " + Environment.NewLine
            //                 + "    　　　   " + Environment.NewLine
            //                 + "    　　　   " + Environment.NewLine
            //                 + "    　　　   " + Environment.NewLine
            //                 + "    　　　   " + Environment.NewLine
            //                 + "    　　　   " + Environment.NewLine
            //                 + "    　　　   " + Environment.NewLine;
        }
        

        private void 印刷PToolStripButton_Click(object sender, EventArgs e)
        {
            //Producer.FormPrint(this);
        }

        private void AboutLabel1_Click(object sender, EventArgs e)
        {

        }

        private void 印刷toolStripButton1_Click(object sender, EventArgs e) {
            if(tabControl2.SelectedIndex == 0) {
                printString.printStr.print(textBox1.Text);
            }
            else {
                printString.printStr.print(textBox2.Text);
            }

        }
    }
}