コード例 #1
0
 public DomainsForm(VirtualServer virtualServer, WFrame frame)
 {
     this.m_pVirtualServer = virtualServer;
     this.InitializeComponent();
     frame.Frame_ToolStrip = this.m_pToolbar;
     this.LoadDomains();
 }
コード例 #2
0
 public MailingListsForm(VirtualServer virtualServer, WFrame frame)
 {
     this.m_pVirtualServer = virtualServer;
     this.InitializeComponent();
     frame.Frame_ToolStrip = this.m_pToolbar;
     this.LoadMailingLists("");
 }
コード例 #3
0
 public FiltersForm(VirtualServer virtualServer, WFrame frame)
 {
     this.m_pVirtualServer = virtualServer;
     this.InitializeComponent();
     frame.Frame_ToolStrip = this.m_pToolbar;
     this.LoadFilters("");
 }
コード例 #4
0
 public GlobalMessageRulesForm(VirtualServer virtualServer, WFrame frame)
 {
     this.m_pVirtualServer = virtualServer;
     this.InitializeComponent();
     frame.Frame_ToolStrip = this.m_pToolbar;
     this.LoadRules("");
 }
コード例 #5
0
 public LogsForm(Server server, WFrame frame)
 {
     this.m_pServer = server;
     this.InitializeComponent();
     this.LoadVirtualServers();
     if (this.m_pVirtualServer.Items.Count > 0)
     {
         this.m_pVirtualServer.SelectedIndex = 0;
         m_pGet_Click(null, null);
     }
 }
コード例 #6
0
        private void InitializeComponent()
        {
            this.components = new Container();
            ComponentResourceManager componentResourceManager = new ComponentResourceManager(typeof(MainForm));

            this.m_pMenu                 = new MenuStrip();
            this.file_Connect            = new ToolStripMenuItem();
            this.file_Exit               = new ToolStripMenuItem();
            this.help_About              = new ToolStripMenuItem();
            this.help_Forum              = new ToolStripMenuItem();
            this.m_pTree                 = new TreeView();
            this.m_pTree.NodeMouseClick += M_pTree_NodeMouseClick;
            this.treeImageList           = new ImageList(this.components);
            this.m_pFrame                = new WFrame();
            this.m_pMenu.SuspendLayout();
            base.SuspendLayout();
            this.m_pMenu.BackColor = this.BackColor;
            this.m_pMenu.Items.AddRange(new ToolStripItem[]
            {
                this.file_Connect,
                this.file_Exit,
                this.help_About,
                this.help_Forum
            });
            this.m_pMenu.Location               = new Point(0, 0);
            this.m_pMenu.Name                   = "m_pMenu";
            this.m_pMenu.Size                   = new Size(764, 25);
            this.m_pMenu.TabIndex               = 1;
            this.file_Connect.Image             = (Image)componentResourceManager.GetObject("file_Connect.Image");
            this.file_Connect.Name              = "file_Connect";
            this.file_Connect.Size              = new Size(83, 21);
            this.file_Connect.Tag               = "file_connect";
            this.file_Connect.Text              = "Connect";
            this.file_Connect.Click            += new EventHandler(this.file_Connect_Click);
            this.file_Exit.Image                = (Image)componentResourceManager.GetObject("file_Exit.Image");
            this.file_Exit.Name                 = "file_Exit";
            this.file_Exit.Size                 = new Size(56, 21);
            this.file_Exit.Tag                  = "file_exit";
            this.file_Exit.Text                 = "Exit";
            this.file_Exit.Click               += new EventHandler(this.file_Exit_Click);
            this.help_About.Image               = (Image)componentResourceManager.GetObject("help_About.Image");
            this.help_About.Name                = "help_About";
            this.help_About.Size                = new Size(71, 21);
            this.help_About.Tag                 = "help_about";
            this.help_About.Text                = "About";
            this.help_About.Click              += new EventHandler(this.help_About_Click);
            this.m_pTree.BorderStyle            = BorderStyle.None;
            this.m_pTree.Dock                   = DockStyle.Fill;
            this.m_pTree.HideSelection          = false;
            this.m_pTree.HotTracking            = true;
            this.m_pTree.ImageIndex             = 0;
            this.m_pTree.ImageList              = this.treeImageList;
            this.m_pTree.ItemHeight             = 23;
            this.m_pTree.Location               = new Point(0, 0);
            this.m_pTree.Name                   = "m_pTree";
            this.m_pTree.SelectedImageIndex     = 0;
            this.m_pTree.Size                   = new Size(228, 554);
            this.m_pTree.TabIndex               = 0;
            this.m_pTree.AfterSelect           += new TreeViewEventHandler(this.m_pTree_AfterSelect);
            this.m_pTree.DoubleClick           += new EventHandler(this.m_pTree_DoubleClick);
            this.treeImageList.ColorDepth       = ColorDepth.Depth8Bit;
            this.treeImageList.ImageSize        = new Size(16, 16);
            this.treeImageList.TransparentColor = Color.Transparent;
            this.m_pFrame.Anchor                = (AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right);
            this.m_pFrame.ControlPanelWidth     = 200;
            this.m_pFrame.FormFrameBorder       = BorderStyle.FixedSingle;
            this.m_pFrame.Location              = new Point(0, 27);
            this.m_pFrame.Name                  = "m_pFrame";
            this.m_pFrame.Size                  = new Size(764, 582);
            this.m_pFrame.SplitterColor         = SystemColors.Control;
            this.m_pFrame.SplitterMinExtra      = 0;
            this.m_pFrame.SplitterMinSize       = 0;
            this.m_pFrame.TabIndex              = 0;
            this.m_pFrame.TopPaneBkColor        = SystemColors.Control;
            this.m_pFrame.TopPaneHeight         = 25;
            base.ClientSize = new Size(764, 611);
            base.Controls.Add(this.m_pFrame);
            base.Controls.Add(this.m_pMenu);
            base.Icon          = (Icon)componentResourceManager.GetObject("$this.Icon");
            this.MinimumSize   = new Size(780, 650);
            base.Name          = "wfrm_Main";
            base.StartPosition = FormStartPosition.CenterScreen;
            this.Text          = "DataSmart Mail Server Manager";
            this.m_pMenu.ResumeLayout(false);
            this.m_pMenu.PerformLayout();
            base.ResumeLayout(false);
            base.PerformLayout();
            this.m_pFrame.ControlPanel.Controls.Add(this.m_pTree);
        }
コード例 #7
0
 public RecycleBinForm(VirtualServer virtualServer, WFrame frame)
 {
     this.m_pVirtualServer = virtualServer;
     this.InitializeComponent();
     this.LoadSettings();
 }
コード例 #8
0
 public EventsForm(Server server, WFrame frame)
 {
     this.m_pServer = server;
     this.InitializeComponent();
     this.LoadEvents();
 }
コード例 #9
0
 public VirtualServersForm(MainForm mainFrm, TreeNode virtualServersNode, Server server, WFrame frame)
 {
     this.m_pFrmMain            = mainFrm;
     this.m_pVirtualServersNode = virtualServersNode;
     this.m_pServer             = server;
     this.InitializeComponent();
     frame.Frame_ToolStrip = this.m_pToolbar;
     this.LoadVirtualServers();
 }