邮件管理系统C课程设计 第3页

邮件管理系统C课程设计 第3页
<?xml version="1.0" encoding="utf-8" ?>
<root>
 <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
  <xsd:element name="root" msdata:IsDataSet="true">
   <xsd:complexType>
    <xsd:choice maxOccurs="unbounded">
     <xsd:element name="data">
      <xsd:complexType>
       <xsd:sequence>
        <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
        <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
       </xsd:sequence>
       <xsd:attribute name="name" type="xsd:string" />
       <xsd:attribute name="type" type="xsd:string" />
       <xsd:attribute name="mimetype" type="xsd:string" />
      </xsd:complexType>
     </xsd:element>
     <xsd:element name="resheader">
      <xsd:complexType>
       <xsd:sequence>
        <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
       </xsd:sequence>
       <xsd:attribute name="name" type="xsd:string" use="required" />
      </xsd:complexType>
     </xsd:element>
    </xsd:choice>
   </xsd:complexType>
  </xsd:element>
 </xsd:schema>
 <resheader name="ResMimeType">
  <value>text/microsoft-resx</value>
 </resheader>
 <resheader name="Version">
  <value>1.0.0.0</value>
 </resheader>
 <resheader name="Reader">
  <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
 </resheader>
 <resheader name="Writer">
  <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
 </resheader>
</root>
using System;
using System.Collections;
using System.ComponentModel;
using System.Configuration.Install;
using System.ServiceProcess;

namespace MyMail.MailServer
{
 /// <summary>
 /// ServerInstaller 的摘要说明。
 /// </summary>
 [RunInstaller(true)]
 public class ServerInstaller : System.Configuration.Install.Installer
 {
  /// <summary>
  /// 必需的设计器变量。
  /// </summary>
  private System.ComponentModel.Container components = null;

  public ServerInstaller()
  {
   // 该调用是设计器所必需的。
   InitializeComponent();

   // TODO: 在 InitializeComponent 调用后添加任何初始化
   ServiceProcessInstaller pInstaller = new ServiceProcessInstaller();
   ServiceInstaller installer = new ServiceInstaller();

   pInstaller.Account = ServiceAccount.LocalSystem;
   installer.StartType = ServiceStartMode.Automatic;
   installer.ServiceName = "MailServer";

   Installers.Add(installer);
   Installers.Add(pInstaller);
  }

  /// <summary>
  /// 清理所有正在使用的资源。
  /// </summary>
  protected override void Dispose( bool disposing )
  {
   if( disposing )
   {
    if(components != null)
    {
     components.Dispose();
    }
   }
   base.Dispose( disposing );
  }


  #region 组件设计器生成的代码
  /// <summary>
  /// 设计器支持所需的方法 - 不要使用代码编辑器修改
  /// 此方法的内容。
  /// </summary>
  private void InitializeComponent()
  {
   components = new System.ComponentModel.Container();
  }
  #endregion
 }
}
<?xml version="1.0" encoding="utf-8" ?>
<root>
 <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
  <xsd:element name="root" msdata:IsDataSet="true">
   <xsd:complexType>
    <xsd:choice maxOccurs="unbounded">
     <xsd:element name="data">
      <xsd:complexType>
       <xsd:sequence>
        <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
        <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
       </xsd:sequence>
       <xsd:attribute name="name" type="xsd:string" />
       <xsd:attribute name="type" type="xsd:string" />
       <xsd:attribute name="mimetype" type="xsd:string" />
      </xsd:complexType>
     </xsd:element>
     <xsd:element name="resheader">
      <xsd:complexType>
       <xsd:sequence>
        <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
       </xsd:sequence>
       <xsd:attribute name="name" type="xsd:string" use="required" />
      </xsd:complexType>
     </xsd:element>
    </xsd:choice>
   </xsd:complexType>
  </xsd:element>
 </xsd:schema>
 <resheader name="ResMimeType">
  <value>text/microsoft-resx</value>
 </resheader>
 <resheader name="Version">
  <value>1.0.0.0</value>
 </resheader>
 <resheader name="Reader">
  <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
 </resheader>
 <resheader name="Writer">
  <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
 </resheader>
</root>

上一页  [1] [2] [3] 

Copyright © 2007-2012 www.chuibin.com 六维论文网 版权所有