⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 frm_deviceinfo.cs

📁 以前做NOKIA手机与PC通信时所参考的源代码,里面包括两个程序,一个是手机文件夹浏览源码,另一个手机SIS安装程序.
💻 CS
📖 第 1 页 / 共 2 页
字号:
//Filename    : DeviceInfoDlg.cs
//Part of     : Phone Navigator C# Application
//Description : Implements a dialog that represents all device specific information
//Version     : 3.2

//This example is only to be used with PC Connectivity API version 3.2.
//Compability ("as is") with future versions is not quaranteed.

//Copyright (c) 2005-2007 Nokia Corporation.

//This material, including but not limited to documentation and any related 
//computer programs, is protected by intellectual property rights of Nokia 
//Corporation and/or its licensors.
//All rights are reserved. Reproducing, modifying, translating, or 
//distributing any or all of this material requires the prior written consent 
//of Nokia Corporation. Nokia Corporation retains the right to make changes 
//to this material at any time without notice. A copyright license is hereby 
//granted to download and print a copy of this material for personal use only.
//No other license to any other intellectual property rights is granted. The 
//material is provided "as is" without warranty of any kind, either express or 
//implied, including without limitation, any warranty of non-infringement, 
//merchantability and fitness for a particular purpose. In no event shall 
//Nokia Corporation be liable for any direct, indirect, special, incidental, 
//or consequential loss or damages, including but not limited to, lost profits 
//or revenue,loss of use, cost of substitute program, or loss of data or 
//equipment arising out of the use or inability to use the material, even if 
//Nokia Corporation has been advised of the likelihood of such damages occurring.

using System.Runtime.InteropServices;
using System.Windows.Forms;
namespace CSPhoneNavigator.NET
{
    using PCCSErrors;
    using PCCAPIUtils;
    using CONADefinitions;
    using CONADeviceManagement;
    public class FRM_DeviceInfo : System.Windows.Forms.Form
    {

        int m_hDMHandle;
        string m_strSerial;

        #region " Windows Form Designer generated code "

        public FRM_DeviceInfo()
            : base()
        {

            //This call is required by the Windows Form Designer.
            InitializeComponent();

            //Add any initialization after the InitializeComponent() call

        }

        //Form overrides dispose to clean up the component list.
        protected override void Dispose(bool disposing)
        {
            if (disposing)
            {
                if ((components != null))
                {
                    components.Dispose();
                }
            }
            base.Dispose(disposing);
        }

        //Required by the Windows Form Designer
        private System.ComponentModel.IContainer components;

        //NOTE: The following procedure is required by the Windows Form Designer
        //It can be modified using the Windows Form Designer.  
        //Do not modify it using the code editor.
        internal System.Windows.Forms.GroupBox groupBoxSync;
        internal System.Windows.Forms.Label labelCIDS;
        internal System.Windows.Forms.Label labelSADM;
        internal System.Windows.Forms.Label labelSyncSupport;
        internal System.Windows.Forms.Label labelSADS;
        internal System.Windows.Forms.Button buttonClose;
        internal System.Windows.Forms.GroupBox groupBoxGen;
        internal System.Windows.Forms.Label labelLang;
        internal System.Windows.Forms.Label labelVersion;
        internal System.Windows.Forms.Label labelName;
        internal System.Windows.Forms.GroupBox groupBoxType;
        internal System.Windows.Forms.Label labelS80;
        internal System.Windows.Forms.Label labelS603ed;
        internal System.Windows.Forms.Label labelS602ed;
        internal System.Windows.Forms.Label labelS40;
        internal System.Windows.Forms.Label labelUnknown;
        internal System.Windows.Forms.GroupBox groupBoxFS;
        internal System.Windows.Forms.Label labelConversion;
        internal System.Windows.Forms.Label labelSIS;
        internal System.Windows.Forms.Label labelJava;
        internal System.Windows.Forms.Label labelFSSupport;
        [System.Diagnostics.DebuggerStepThrough()]
        private void InitializeComponent()
        {
            System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FRM_DeviceInfo));
            this.groupBoxSync = new System.Windows.Forms.GroupBox();
            this.labelCIDS = new System.Windows.Forms.Label();
            this.labelSADM = new System.Windows.Forms.Label();
            this.labelSyncSupport = new System.Windows.Forms.Label();
            this.labelSADS = new System.Windows.Forms.Label();
            this.buttonClose = new System.Windows.Forms.Button();
            this.groupBoxGen = new System.Windows.Forms.GroupBox();
            this.labelLang = new System.Windows.Forms.Label();
            this.labelVersion = new System.Windows.Forms.Label();
            this.labelName = new System.Windows.Forms.Label();
            this.groupBoxType = new System.Windows.Forms.GroupBox();
            this.labelS80 = new System.Windows.Forms.Label();
            this.labelS603ed = new System.Windows.Forms.Label();
            this.labelS602ed = new System.Windows.Forms.Label();
            this.labelS40 = new System.Windows.Forms.Label();
            this.labelUnknown = new System.Windows.Forms.Label();
            this.groupBoxFS = new System.Windows.Forms.GroupBox();
            this.labelConversion = new System.Windows.Forms.Label();
            this.labelSIS = new System.Windows.Forms.Label();
            this.labelJava = new System.Windows.Forms.Label();
            this.labelFSSupport = new System.Windows.Forms.Label();
            this.groupBoxSync.SuspendLayout();
            this.groupBoxGen.SuspendLayout();
            this.groupBoxType.SuspendLayout();
            this.groupBoxFS.SuspendLayout();
            this.SuspendLayout();
            // 
            // groupBoxSync
            // 
            this.groupBoxSync.Controls.Add(this.labelCIDS);
            this.groupBoxSync.Controls.Add(this.labelSADM);
            this.groupBoxSync.Controls.Add(this.labelSyncSupport);
            this.groupBoxSync.Controls.Add(this.labelSADS);
            this.groupBoxSync.Location = new System.Drawing.Point(352, 129);
            this.groupBoxSync.Name = "groupBoxSync";
            this.groupBoxSync.Size = new System.Drawing.Size(336, 117);
            this.groupBoxSync.TabIndex = 12;
            this.groupBoxSync.TabStop = false;
            this.groupBoxSync.Text = "Syncronization Support";
            // 
            // labelCIDS
            // 
            this.labelCIDS.Enabled = false;
            this.labelCIDS.ImageAlign = System.Drawing.ContentAlignment.MiddleRight;
            this.labelCIDS.Location = new System.Drawing.Point(16, 73);
            this.labelCIDS.Name = "labelCIDS";
            this.labelCIDS.Size = new System.Drawing.Size(312, 16);
            this.labelCIDS.TabIndex = 3;
            this.labelCIDS.Text = "Device supports Client Initiated (CI) Data Syncronization";
            // 
            // labelSADM
            // 
            this.labelSADM.Enabled = false;
            this.labelSADM.ImageAlign = System.Drawing.ContentAlignment.MiddleRight;
            this.labelSADM.Location = new System.Drawing.Point(16, 54);
            this.labelSADM.Name = "labelSADM";
            this.labelSADM.Size = new System.Drawing.Size(312, 16);
            this.labelSADM.TabIndex = 2;
            this.labelSADM.Text = "Device supports Server Alerted (SA) Device Management";
            // 
            // labelSyncSupport
            // 
            this.labelSyncSupport.ImageAlign = System.Drawing.ContentAlignment.MiddleRight;
            this.labelSyncSupport.Location = new System.Drawing.Point(16, 16);
            this.labelSyncSupport.Name = "labelSyncSupport";
            this.labelSyncSupport.Size = new System.Drawing.Size(312, 16);
            this.labelSyncSupport.TabIndex = 0;
            // 
            // labelSADS
            // 
            this.labelSADS.Enabled = false;
            this.labelSADS.ImageAlign = System.Drawing.ContentAlignment.MiddleRight;
            this.labelSADS.Location = new System.Drawing.Point(16, 35);
            this.labelSADS.Name = "labelSADS";
            this.labelSADS.Size = new System.Drawing.Size(312, 16);
            this.labelSADS.TabIndex = 1;
            this.labelSADS.Text = "Device supports Server Alerted (SA) Data Syncronization";
            // 
            // buttonClose
            // 
            this.buttonClose.DialogResult = System.Windows.Forms.DialogResult.Cancel;
            this.buttonClose.Location = new System.Drawing.Point(616, 254);
            this.buttonClose.Name = "buttonClose";
            this.buttonClose.Size = new System.Drawing.Size(75, 23);
            this.buttonClose.TabIndex = 13;
            this.buttonClose.Text = "Close";
            this.buttonClose.Click += new System.EventHandler(this.buttonClose_Click);
            // 
            // groupBoxGen
            // 
            this.groupBoxGen.Controls.Add(this.labelLang);
            this.groupBoxGen.Controls.Add(this.labelVersion);
            this.groupBoxGen.Controls.Add(this.labelName);
            this.groupBoxGen.Location = new System.Drawing.Point(8, 8);
            this.groupBoxGen.Name = "groupBoxGen";
            this.groupBoxGen.Size = new System.Drawing.Size(336, 117);
            this.groupBoxGen.TabIndex = 9;
            this.groupBoxGen.TabStop = false;
            this.groupBoxGen.Text = "General";
            // 
            // labelLang
            // 
            this.labelLang.Enabled = false;
            this.labelLang.ImageAlign = System.Drawing.ContentAlignment.MiddleRight;
            this.labelLang.Location = new System.Drawing.Point(16, 54);
            this.labelLang.Name = "labelLang";
            this.labelLang.Size = new System.Drawing.Size(312, 18);
            this.labelLang.TabIndex = 2;
            this.labelLang.Text = "Used Language: ";
            // 
            // labelVersion
            // 
            this.labelVersion.Enabled = false;
            this.labelVersion.ImageAlign = System.Drawing.ContentAlignment.MiddleRight;
            this.labelVersion.Location = new System.Drawing.Point(16, 35);
            this.labelVersion.Name = "labelVersion";
            this.labelVersion.Size = new System.Drawing.Size(312, 16);
            this.labelVersion.TabIndex = 1;
            this.labelVersion.Text = "Software Version: ";
            // 
            // labelName
            // 
            this.labelName.Enabled = false;
            this.labelName.ImageAlign = System.Drawing.ContentAlignment.MiddleRight;
            this.labelName.Location = new System.Drawing.Point(16, 16);
            this.labelName.Name = "labelName";
            this.labelName.Size = new System.Drawing.Size(312, 16);
            this.labelName.TabIndex = 0;
            this.labelName.Text = "Device Type Name: ";
            // 
            // groupBoxType
            // 
            this.groupBoxType.Controls.Add(this.labelS80);
            this.groupBoxType.Controls.Add(this.labelS603ed);
            this.groupBoxType.Controls.Add(this.labelS602ed);
            this.groupBoxType.Controls.Add(this.labelS40);
            this.groupBoxType.Controls.Add(this.labelUnknown);
            this.groupBoxType.Location = new System.Drawing.Point(352, 8);
            this.groupBoxType.Name = "groupBoxType";
            this.groupBoxType.Size = new System.Drawing.Size(336, 117);
            this.groupBoxType.TabIndex = 10;
            this.groupBoxType.TabStop = false;
            this.groupBoxType.Text = "Device Type";
            // 
            // labelS80

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -