using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;

namespace WindowsApplication1
{
	/// <summary>
	/// Summary description for Form2.
	/// </summary>
	public class Form2 : System.Windows.Forms.Form
	{
		private System.Windows.Forms.MainMenu mainMenu1;
		private System.Windows.Forms.MenuItem menuItem1;
		private System.Windows.Forms.MenuItem menuItem2;
		private System.Windows.Forms.MenuItem menuItem3;
		private System.Windows.Forms.MenuItem menuItem4;
		private System.Windows.Forms.MenuItem menuItem5;
		private System.Windows.Forms.MenuItem menuItem6;
		private System.Windows.Forms.MenuItem menuItem7;
		private System.Windows.Forms.MenuItem menuItem8;
		private System.Windows.Forms.MenuItem menuItem9;
		private System.Windows.Forms.MenuItem menuItem10;
		private System.Windows.Forms.MenuItem menuItem11;
		private System.Windows.Forms.MenuItem menuItem12;
		private System.Windows.Forms.MenuItem menuItem13;
		private System.Windows.Forms.MenuItem menuItem14;
		private System.Windows.Forms.MenuItem menuItem15;
		private System.Windows.Forms.MenuItem menuItem16;
		private System.Windows.Forms.MenuItem menuItem17;
		private System.Windows.Forms.MenuItem menuItem18;
		private System.Windows.Forms.MenuItem menuItem19;
		private System.Windows.Forms.MenuItem menuItem20;
		private System.Windows.Forms.MenuItem menuItem21;
		private System.Windows.Forms.MenuItem menuItem22;
		private System.Windows.Forms.MenuItem menuItem23;
		private System.Windows.Forms.MenuItem menuItem24;
        private System.Windows.Forms.MenuItem menuItem25;
        private System.Windows.Forms.MenuItem menuItem27;
        private System.Windows.Forms.MenuItem menuItem30;
		private System.Windows.Forms.MenuItem menuItem32;
		private System.Windows.Forms.MenuItem menuItem33;
        private System.Windows.Forms.MenuItem menuItem34;
		private System.Windows.Forms.MenuItem menuItem36;
		private System.Windows.Forms.MenuItem menuItem37;
        private System.Windows.Forms.MenuItem menuItem38;
        private IContainer components;
         
		public Form2()
		{
			//
			// Required for Windows Form Designer support
			//
			InitializeComponent();

			//
			// TODO: Add any constructor code after InitializeComponent call
			//
		}

		/// <summary>
		/// Clean up any resources being used.
		/// </summary>
		protected override void Dispose( bool disposing )
		{
			if( disposing )
			{
				if(components != null)
				{
					components.Dispose();
				}
			}
			base.Dispose( disposing );
		}

		#region Windows Form Designer generated code
		/// <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(Form2));
            this.mainMenu1 = new System.Windows.Forms.MainMenu(this.components);
            this.menuItem1 = new System.Windows.Forms.MenuItem();
            this.menuItem2 = new System.Windows.Forms.MenuItem();
            this.menuItem11 = new System.Windows.Forms.MenuItem();
            this.menuItem3 = new System.Windows.Forms.MenuItem();
            this.menuItem12 = new System.Windows.Forms.MenuItem();
            this.menuItem4 = new System.Windows.Forms.MenuItem();
            this.menuItem13 = new System.Windows.Forms.MenuItem();
            this.menuItem5 = new System.Windows.Forms.MenuItem();
            this.menuItem37 = new System.Windows.Forms.MenuItem();
            this.menuItem36 = new System.Windows.Forms.MenuItem();
            this.menuItem33 = new System.Windows.Forms.MenuItem();
            this.menuItem6 = new System.Windows.Forms.MenuItem();
            this.menuItem7 = new System.Windows.Forms.MenuItem();
            this.menuItem14 = new System.Windows.Forms.MenuItem();
            this.menuItem8 = new System.Windows.Forms.MenuItem();
            this.menuItem15 = new System.Windows.Forms.MenuItem();
            this.menuItem9 = new System.Windows.Forms.MenuItem();
            this.menuItem16 = new System.Windows.Forms.MenuItem();
            this.menuItem10 = new System.Windows.Forms.MenuItem();
            this.menuItem32 = new System.Windows.Forms.MenuItem();
            this.menuItem17 = new System.Windows.Forms.MenuItem();
            this.menuItem18 = new System.Windows.Forms.MenuItem();
            this.menuItem22 = new System.Windows.Forms.MenuItem();
            this.menuItem19 = new System.Windows.Forms.MenuItem();
            this.menuItem23 = new System.Windows.Forms.MenuItem();
            this.menuItem20 = new System.Windows.Forms.MenuItem();
            this.menuItem24 = new System.Windows.Forms.MenuItem();
            this.menuItem21 = new System.Windows.Forms.MenuItem();
            this.menuItem34 = new System.Windows.Forms.MenuItem();
            this.menuItem25 = new System.Windows.Forms.MenuItem();
            this.menuItem38 = new System.Windows.Forms.MenuItem();
            this.menuItem30 = new System.Windows.Forms.MenuItem();
            this.menuItem27 = new System.Windows.Forms.MenuItem();
            this.SuspendLayout();
            // 
            // mainMenu1
            // 
            this.mainMenu1.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
            this.menuItem1,
            this.menuItem33,
            this.menuItem6,
            this.menuItem32,
            this.menuItem17,
            this.menuItem34,
            this.menuItem25});
            this.mainMenu1.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
            // 
            // menuItem1
            // 
            this.menuItem1.Index = 0;
            this.menuItem1.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
            this.menuItem2,
            this.menuItem11,
            this.menuItem3,
            this.menuItem12,
            this.menuItem4,
            this.menuItem13,
            this.menuItem5,
            this.menuItem37,
            this.menuItem36});
            this.menuItem1.Text = "ثبت";
            // 
            // menuItem2
            // 
            this.menuItem2.Index = 0;
            this.menuItem2.Shortcut = System.Windows.Forms.Shortcut.F1;
            this.menuItem2.Text = "کالا";
            this.menuItem2.Click += new System.EventHandler(this.menuItem2_Click);
            // 
            // menuItem11
            // 
            this.menuItem11.Index = 1;
            this.menuItem11.Text = "-";
            // 
            // menuItem3
            // 
            this.menuItem3.Index = 2;
            this.menuItem3.Shortcut = System.Windows.Forms.Shortcut.F2;
            this.menuItem3.Text = "فروش";
            this.menuItem3.Click += new System.EventHandler(this.menuItem3_Click);
            // 
            // menuItem12
            // 
            this.menuItem12.Index = 3;
            this.menuItem12.Text = "-";
            // 
            // menuItem4
            // 
            this.menuItem4.Index = 4;
            this.menuItem4.Shortcut = System.Windows.Forms.Shortcut.F3;
            this.menuItem4.Text = "کارمند";
            this.menuItem4.Click += new System.EventHandler(this.menuItem4_Click);
            // 
            // menuItem13
            // 
            this.menuItem13.Index = 5;
            this.menuItem13.Text = "-";
            // 
            // menuItem5
            // 
            this.menuItem5.Index = 6;
            this.menuItem5.Shortcut = System.Windows.Forms.Shortcut.F4;
            this.menuItem5.Text = "مشتری";
            this.menuItem5.Click += new System.EventHandler(this.menuItem5_Click);
            // 
            // menuItem37
            // 
            this.menuItem37.Index = 7;
            this.menuItem37.Text = "-";
            // 
            // menuItem36
            // 
            this.menuItem36.Index = 8;
            this.menuItem36.Shortcut = System.Windows.Forms.Shortcut.F5;
            this.menuItem36.Text = "خروج";
            this.menuItem36.Click += new System.EventHandler(this.menuItem36_Click);
            // 
            // menuItem33
            // 
            this.menuItem33.Index = 1;
            this.menuItem33.Text = "|";
            // 
            // menuItem6
            // 
            this.menuItem6.Index = 2;
            this.menuItem6.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
            this.menuItem7,
            this.menuItem14,
            this.menuItem8,
            this.menuItem15,
            this.menuItem9,
            this.menuItem16,
            this.menuItem10});
            this.menuItem6.Text = "جستوجو";
            // 
            // menuItem7
            // 
            this.menuItem7.Index = 0;
            this.menuItem7.Shortcut = System.Windows.Forms.Shortcut.AltF1;
            this.menuItem7.Text = "کالا";
            this.menuItem7.Click += new System.EventHandler(this.menuItem7_Click);
            // 
            // menuItem14
            // 
            this.menuItem14.Index = 1;
            this.menuItem14.Text = "-";
            // 
            // menuItem8
            // 
            this.menuItem8.Index = 2;
            this.menuItem8.Shortcut = System.Windows.Forms.Shortcut.AltF2;
            this.menuItem8.Text = "فروش";
            this.menuItem8.Click += new System.EventHandler(this.menuItem8_Click);
            // 
            // menuItem15
            // 
            this.menuItem15.Index = 3;
            this.menuItem15.Text = "-";
            // 
            // menuItem9
            // 
            this.menuItem9.Index = 4;
            this.menuItem9.Shortcut = System.Windows.Forms.Shortcut.AltF3;
            this.menuItem9.Text = "کارمند";
            this.menuItem9.Click += new System.EventHandler(this.menuItem9_Click);
            // 
            // menuItem16
            // 
            this.menuItem16.Index = 5;
            this.menuItem16.Text = "-";
            // 
            // menuItem10
            // 
            this.menuItem10.Index = 6;
            this.menuItem10.Shortcut = System.Windows.Forms.Shortcut.AltF4;
            this.menuItem10.Text = "مشتری";
            this.menuItem10.Click += new System.EventHandler(this.menuItem10_Click);
            // 
            // menuItem32
            // 
            this.menuItem32.Index = 3;
            this.menuItem32.Text = "|";
            // 
            // menuItem17
            // 
            this.menuItem17.Index = 4;
            this.menuItem17.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
            this.menuItem18,
            this.menuItem22,
            this.menuItem19,
            this.menuItem23,
            this.menuItem20,
            this.menuItem24,
            this.menuItem21});
            this.menuItem17.Text = "گزارش";
            // 
            // menuItem18
            // 
            this.menuItem18.Index = 0;
            this.menuItem18.Shortcut = System.Windows.Forms.Shortcut.ShiftF1;
            this.menuItem18.Text = "کالا";
            this.menuItem18.Click += new System.EventHandler(this.menuItem18_Click);
            // 
            // menuItem22
            // 
            this.menuItem22.Index = 1;
            this.menuItem22.Text = "-";
            // 
            // menuItem19
            // 
            this.menuItem19.Index = 2;
            this.menuItem19.Shortcut = System.Windows.Forms.Shortcut.ShiftF2;
            this.menuItem19.Text = "فروش";
            this.menuItem19.Click += new System.EventHandler(this.menuItem19_Click);
            // 
            // menuItem23
            // 
            this.menuItem23.Index = 3;
            this.menuItem23.Text = "-";
            // 
            // menuItem20
            // 
            this.menuItem20.Index = 4;
            this.menuItem20.Shortcut = System.Windows.Forms.Shortcut.ShiftF3;
            this.menuItem20.Text = "کارمند";
            this.menuItem20.Click += new System.EventHandler(this.menuItem20_Click);
            // 
            // menuItem24
            // 
            this.menuItem24.Index = 5;
            this.menuItem24.Text = "-";
            // 
            // menuItem21
            // 
            this.menuItem21.Index = 6;
            this.menuItem21.Shortcut = System.Windows.Forms.Shortcut.ShiftF4;
            this.menuItem21.Text = "مشتری";
            this.menuItem21.Click += new System.EventHandler(this.menuItem21_Click);
            // 
            // menuItem34
            // 
            this.menuItem34.Index = 5;
            this.menuItem34.Text = "|";
            // 
            // menuItem25
            // 
            this.menuItem25.Index = 6;
            this.menuItem25.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
            this.menuItem38,
            this.menuItem30,
            this.menuItem27});
            this.menuItem25.Text = "امکانات";
            // 
            // menuItem38
            // 
            this.menuItem38.Index = 0;
            this.menuItem38.Text = "یاداشت";
            this.menuItem38.Click += new System.EventHandler(this.menuItem38_Click);
            // 
            // menuItem30
            // 
            this.menuItem30.Index = 1;
            this.menuItem30.Text = "-";
            // 
            // menuItem27
            // 
            this.menuItem27.Index = 2;
            this.menuItem27.Shortcut = System.Windows.Forms.Shortcut.F11;
            this.menuItem27.Text = "ماشین حساب";
            this.menuItem27.Click += new System.EventHandler(this.menuItem27_Click);
            // 
            // Form2
            // 
            this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
            this.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("$this.BackgroundImage")));
            this.ClientSize = new System.Drawing.Size(696, 350);
            this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
            this.Menu = this.mainMenu1;
            this.Name = "Form2";
            this.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
            this.Text = "ابزار مهدی";
            this.WindowState = System.Windows.Forms.FormWindowState.Maximized;
            this.Load += new System.EventHandler(this.Form2_Load);
            this.ResumeLayout(false);

		}
		#endregion

		private void Form2_Load(object sender, System.EventArgs e)
		{
		}
        Form1 f1 = new Form1();
		private void button1_Click(object sender, System.EventArgs e)
		{
			Form2 f2=new Form2();
			f2.Hide();
		}

		private void menuItem1_Click(object sender, System.EventArgs e)
		{
		
		}

		private void menuItem2_Click(object sender, System.EventArgs e)
		{
			Form4 f4=new Form4();
			f4.ShowDialog();
		}

		private void menuItem35_Click(object sender, System.EventArgs e)
		{
		
		}

		private void menuItem36_Click(object sender, System.EventArgs e)
		{
            Application.Exit();
		}

		private void menuItem3_Click(object sender, System.EventArgs e)
		{
			Form3 f3=new Form3();
			f3.ShowDialog();
		}

		private void menuItem5_Click(object sender, System.EventArgs e)
		{
			Form5 f5=new Form5();
			f5.ShowDialog();
		}

		private void menuItem4_Click(object sender, System.EventArgs e)
		{
			Form6 f6=new Form6();
			f6.ShowDialog();
		}

		private void menuItem7_Click(object sender, System.EventArgs e)
		{
			Form7 f7=new Form7();
			f7.ShowDialog();
		}

		private void menuItem8_Click(object sender, System.EventArgs e)
		{
			Form8 f8=new Form8();
			f8.ShowDialog();
		}

		private void menuItem9_Click(object sender, System.EventArgs e)
		{
			Form10 f10=new Form10();
			f10.ShowDialog();
		}

		private void menuItem10_Click(object sender, System.EventArgs e)
		{
			Form9 f9=new Form9();
			f9.ShowDialog();
		}

		private void menuItem27_Click(object sender, System.EventArgs e)
		{
			System .Diagnostics .Process .Start ("calc");
		}

		private void menuItem26_Click(object sender, System.EventArgs e)
		{
		OpenFileDialog f1=new OpenFileDialog();
			f1.ShowDialog();
			Form1 f2=new Form1();
			
		
		}

		private void menuItem38_Click(object sender, System.EventArgs e)
		{
			System.Diagnostics.Process.Start("Notepad");
		}

		private void menuItem18_Click(object sender, System.EventArgs e)
		{
			Form11 f11=new Form11();
            f11.textBox1.Text = "کالا";
            f11.flag1 = 1;
			f11.ShowDialog();
			
			}

		private void menuItem19_Click(object sender, System.EventArgs e)
		{
			Form11 f11=new Form11();
            f11.textBox1.Text = "فروش";
            f11.flag1 = 2;
			f11.ShowDialog();
			
		}

		private void menuItem20_Click(object sender, System.EventArgs e)
		{
			Form11 f11=new Form11();
            f11.textBox1.Text = "کارمند";
            f11.flag1 = 3;
			f11.ShowDialog();
			
		}

		private void menuItem21_Click(object sender, System.EventArgs e)
		{
			Form11 f11=new Form11();
            f11.textBox1.Text = "مشتری";
            f11.flag1 = 4;
			f11.ShowDialog();
		
		}
	}
}
