一个很简化的C#加密方式

来源:中国IT实验室 作者:佚名 2008-05-14 出处:pcdog.com

.net  多媒体应用  加密  
上一页 1 2 3 下一页 
        Windows 窗体设计器生成的代码#region Windows 窗体设计器生成的代码
        /**//// <summary>
        /// 设计器支持所需的方法 - 不要使用代码编辑器修改
        /// 此方法的内容。
        /// </summary>
        private void InitializeComponent()
        {
            System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(Form1));
            this.openFileDialog1 = new System.Windows.Forms.OpenFileDialog();
            this.mainMenu1 = new System.Windows.Forms.MainMenu();
            this.menuItemFile = new System.Windows.Forms.MenuItem();
            this.menuItemOpen = new System.Windows.Forms.MenuItem();
            this.menuItemClose = new System.Windows.Forms.MenuItem();
            this.menuItemVideo = new System.Windows.Forms.MenuItem();
            this.menuItemInitSize = new System.Windows.Forms.MenuItem();
            this.menuItemFullScreen = new System.Windows.Forms.MenuItem();
            this.menuItemWindow = new System.Windows.Forms.MenuItem();
            this.menuItemShowAudioCtrl = new System.Windows.Forms.MenuItem();
            this.menuItemShowPositionCtrl = new System.Windows.Forms.MenuItem();
            this.menuItemShowTrackbarCtrl = new System.Windows.Forms.MenuItem();
            this.axWindowsMediaPlayer1 = new AxMediaPlayer.AxMediaPlayer();
            ((System.ComponentModel.ISupportInitialize)(this.axWindowsMediaPlayer1)).BeginInit();
            this.SuspendLayout();
            //
            // openFileDialog1
            //
            this.openFileDialog1.FileOk += new System.ComponentModel.CancelEventHandler(this.openFileDialog1_FileOk);
            //
            // mainMenu1
            //
            this.mainMenu1.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
                                                                                      this.menuItemFile,
                                                                                      this.menuItemVideo,
                                                                                      this.menuItemWindow});
            //
            // menuItemFile
            //
            this.menuItemFile.Index = 0;
            this.menuItemFile.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
                                                                                         this.menuItemOpen,
                                                                                         this.menuItemClose});
            this.menuItemFile.Shortcut = System.Windows.Forms.Shortcut.CtrlF;
            this.menuItemFile.Text = "文件(&F)";
            //
            // menuItemOpen
            //
            this.menuItemOpen.Index = 0;
            this.menuItemOpen.Shortcut = System.Windows.Forms.Shortcut.CtrlO;
            this.menuItemOpen.Text = "打开(&O)";
            this.menuItemOpen.Click += new System.EventHandler(this.menuItemOpen_Click);
            this.menuItemOpen.Select += new System.EventHandler(this.Form1_Load);
            //
            // menuItemClose
            //
            this.menuItemClose.Index = 1;
            this.menuItemClose.Shortcut = System.Windows.Forms.Shortcut.CtrlC;
            this.menuItemClose.Text = "关闭(&C)";
            this.menuItemClose.Click += new System.EventHandler(this.menuItemClose_Click);
            //
            // menuItemVideo
            //
            this.menuItemVideo.Index = 1;
            this.menuItemVideo.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
                                                                                          this.menuItemInitSize,
                                                                                          this.menuItemFullScreen});
            this.menuItemVideo.Shortcut = System.Windows.Forms.Shortcut.CtrlV;
            this.menuItemVideo.Text = "视频(&V)";
            //
            // menuItemInitSize
            //
            this.menuItemInitSize.Index = 0;
            this.menuItemInitSize.Shortcut = System.Windows.Forms.Shortcut.CtrlI;
            this.menuItemInitSize.Text = "默认尺寸(&I)";
            this.menuItemInitSize.Click += new System.EventHandler(this.menuItemInitSize_Click);
            //
            // menuItemFullScreen
            //
            this.menuItemFullScreen.Index = 1;
            this.menuItemFullScreen.Shortcut = System.Windows.Forms.Shortcut.CtrlF;
            this.menuItemFullScreen.Text = "全屏(&F)";
            this.menuItemFullScreen.Click += new System.EventHandler(this.menuItemFullScreen_Click);
            //
            // menuItemWindow
            //
            this.menuItemWindow.Index = 2;
            this.menuItemWindow.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
                                                                                           this.menuItemShowAudioCtrl,
                                                                                           this.menuItemShowPositionCtrl,
                                                                                           this.menuItemShowTrackbarCtrl});
            this.menuItemWindow.Shortcut = System.Windows.Forms.Shortcut.CtrlW;
            this.menuItemWindow.Text = "窗口(&W)";
            //
            // menuItemShowAudioCtrl
            //
            this.menuItemShowAudioCtrl.Checked = true;
            this.menuItemShowAudioCtrl.Index = 0;
            this.menuItemShowAudioCtrl.Shortcut = System.Windows.Forms.Shortcut.CtrlU;
            this.menuItemShowAudioCtrl.Text = "音频控制(&U)";
            this.menuItemShowAudioCtrl.Click += new System.EventHandler(this.menuItemShowAudioCtrl_Click);
            //
            // menuItemShowPositionCtrl
            //
            this.menuItemShowPositionCtrl.Checked = true;
            this.menuItemShowPositionCtrl.Index = 1;
            this.menuItemShowPositionCtrl.Shortcut = System.Windows.Forms.Shortcut.CtrlP;
            this.menuItemShowPositionCtrl.Text = "播放进度(&P)";
            this.menuItemShowPositionCtrl.Click += new System.EventHandler(this.menuItemShowPositionCtrl_Click);
            //
            // menuItemShowTrackbarCtrl
            //
            this.menuItemShowTrackbarCtrl.Checked = true;
            this.menuItemShowTrackbarCtrl.Index = 2;
            this.menuItemShowTrackbarCtrl.Shortcut = System.Windows.Forms.Shortcut.CtrlT;
            this.menuItemShowTrackbarCtrl.Text = "滚动条(&T)";
            this.menuItemShowTrackbarCtrl.Click += new System.EventHandler(this.menuItemShowTrackbarCtrl_Click);
            //
            // axWindowsMediaPlayer1
            //
            this.axWindowsMediaPlayer1.Location = new System.Drawing.Point(0, -8);
            this.axWindowsMediaPlayer1.Name = "axWindowsMediaPlayer1";
            this.axWindowsMediaPlayer1.OcxState = ((System.Windows.Forms.AxHost.State)(resources.GetObject("axWindowsMediaPlayer1.OcxState")));
            this.axWindowsMediaPlayer1.Size = new System.Drawing.Size(296, 280);
            this.axWindowsMediaPlayer1.TabIndex = 0;
            //
            // Form1
            //
            this.AutoScaleBaseSize = new System.Drawing.Size(6, 14);
            this.BackColor = System.Drawing.SystemColors.Control;
            this.ClientSize = new System.Drawing.Size(292, 273);
            this.Controls.Add(this.axWindowsMediaPlayer1);
            this.ForeColor = System.Drawing.SystemColors.ControlText;
            this.Menu = this.mainMenu1;
            this.Name = "Form1";
            this.Text = "Form1";
            this.Load += new System.EventHandler(this.Form1_Load);
            ((System.ComponentModel.ISupportInitialize)(this.axWindowsMediaPlayer1)).EndInit();
            this.ResumeLayout(false);

        }
        #endregion


更多内容请看PCdog.com--数据加密技术专题
上一页 1 2 3 下一页 
上一篇:C#里面比较时间大小三种方法
下一篇:xmlhttp是如何完成异步操作的