Example #1
0
        public Dlg(Kernel kernel, string nameTag, Object obj, string caption)
            : base(kernel, nameTag, obj, caption)
        {
            //リストビューの作成
            _listView = new ListView{
                Dock = DockStyle.Fill,
                FullRowSelect = true,
                HideSelection = false,
                View = System.Windows.Forms.View.Details
            };
            _listView.Columns.Add("Status");
            _listView.Columns.Add("Ip");
            _listView.Columns.Add("MacAppointment");
            _listView.Columns.Add("Mac");
            _listView.Columns.Add("Date");
            _listView.Columns[0].Width = 120;
            _listView.Columns[1].Width = 120;
            _listView.Columns[2].Width = 100;
            _listView.Columns[3].Width = 250;
            _listView.Columns[4].Width = 350;
            //メインコントロールの追加
            AddControl(_listView);

            ToolStripMenuItem menuFile = AddMenu(null, null, kernel.IsJp() ? "ファイル(&F)" : "&File", Keys.None);
            Add2(menuFile, FuncRefresh, kernel.IsJp() ? "最新の状態に更新する(&R)" : "&Refresh", Keys.F5);
            AddMenu(menuFile, null, "-", Keys.None);
            AddMenu(menuFile, FuncClose, kernel.IsJp() ? "閉じる(&C)" : "&Close", Keys.None);

            FuncRefresh();//最新の状態に更新する
        }
Example #2
0
        public PasswordDlg(Kernel kernel)
        {
            InitializeComponent();
            _kernel = kernel;

            label1.Text       = (kernel.IsJp()) ? "パスワードを入力してください" : "Login password";
            buttonCancel.Text = (kernel.IsJp()) ? "キャンセル" : "Cancel";
        }
Example #3
0
        public PasswordDlg(Kernel kernel)
        {
            InitializeComponent();
            _kernel = kernel;

            label1.Text = (kernel.IsJp()) ? "�p�X���[�h����͂��Ă�������" : "Login password";
            buttonCancel.Text = (kernel.IsJp()) ? "�L�����Z��" : "Cancel";
        }
Example #4
0
        public PasswordDlg(Kernel kernel)
        {
            InitializeComponent();
            _kernel = kernel;

            label1.Text       = (kernel.IsJp()) ? "�p�X���[�h����͂��Ă�������" : "Login password";
            buttonCancel.Text = (kernel.IsJp()) ? "�L�����Z��" : "Cancel";
        }
Example #5
0
        //カラムのタイトル初期化
        public void SetColumnText()
        {
            if (ListView == null)
            {
                return;
            }

            //Ver5.8.6 Java fix
            if (ListView.Columns.Count != 8)
            {
                return;
            }

            if (ListView.InvokeRequired)
            {
                ListView.Invoke(new MethodInvoker(SetColumnText));
            }
            else
            {
                //リストビューのカラム初期化(言語)
                ListView.Columns[0].Text = (_kernel.IsJp()) ? "日時" : "DateTime";
                ListView.Columns[1].Text = (_kernel.IsJp()) ? "種類" : "Kind";
                ListView.Columns[2].Text = (_kernel.IsJp()) ? "スレッドID" : "Thread ID";
                ListView.Columns[3].Text = (_kernel.IsJp()) ? "機能(サーバ)" : "Function(Server)";
                ListView.Columns[4].Text = (_kernel.IsJp()) ? "アドレス" : "Address";
                ListView.Columns[5].Text = (_kernel.IsJp()) ? "メッセージID" : "Message ID";
                ListView.Columns[6].Text = (_kernel.IsJp()) ? "説明" : "Explanation";
                ListView.Columns[7].Text = (_kernel.IsJp()) ? "詳細情報" : "Detailed information";
            }
        }
Example #6
0
        public Option(Kernel kernel, string path, string nameTag)
            : base(kernel.IsJp(), path, nameTag)
        {
            var key = "useServer";
            Add(new OneVal(key, false, Crlf.Nextline,new CtrlCheckBox(Lang.Value(key))));

            var pageList = new List<OnePage>();
            key = "Basic";
            pageList.Add(Page1(key, Lang.Value(key), kernel));
            key = "ESMTP";
            pageList.Add(Page2(key, Lang.Value(key), kernel));
            key = "Relay";
            pageList.Add(Page3(key, Lang.Value(key), kernel));
            key = "Queue";
            pageList.Add(Page4(key, Lang.Value(key), kernel));
            key = "Host";
            pageList.Add(Page5(key, Lang.Value(key), kernel));
            key = "Heda";
            pageList.Add(Page6(key, Lang.Value(key), kernel));
            key = "Aliases";
            pageList.Add(Page7(key, Lang.Value(key), kernel));
            key = "AutoReception";
            pageList.Add(Page8(key, Lang.Value(key), kernel));
            pageList.Add(PageAcl());
            Add(new OneVal("tab", null, Crlf.Nextline, new CtrlTabPage("tabPage", pageList)));

            Read(kernel.IniDb); // レジストリからの読み込み
        }
Example #7
0
 //�t�H�[�����‚�����Ƃ�
 private void MainFormFormClosing(object sender, FormClosingEventArgs e)
 {
     //�v���O�����̏I���m�F
     if (_kernel.RunMode == RunMode.Normal || _kernel.RunMode == RunMode.NormalRegist)
     {
         if ((bool)_kernel.ListOption.Get("Basic").GetValue("useExitDlg"))
         {
             if (DialogResult.OK != Msg.Show(MsgKind.Question, _kernel.IsJp() ? "�v���O������I�����Ă�낵���ł���" : "May I finish a program?"))
             {
                 e.Cancel = true;//�I�������Œ��~���ꂽ�ꍇ�́A�v���O������I�����Ȃ�
                 return;
             }
         }
     }
     _kernel.Dispose();
 }
Example #8
0
 //フォームが閉じられるとき
 private void MainFormFormClosing(object sender, FormClosingEventArgs e)
 {
     //プログラムの終了確認
     if (_kernel.RunMode == RunMode.Normal || _kernel.RunMode == RunMode.NormalRegist)
     {
         if ((bool)_kernel.ListOption.Get("Basic").GetValue("useExitDlg"))
         {
             if (DialogResult.OK != Msg.Show(MsgKind.Question, _kernel.IsJp() ? "プログラムを終了してよろしいですか" : "May I finish a program?"))
             {
                 e.Cancel = true;//終了処理で中止された場合は、プログラムを終了しない
                 return;
             }
         }
     }
     _kernel.Dispose();
 }
Example #9
0
        public Dlg(Kernel kernel, string nameTag, Object obj, string caption)
            : base(kernel, nameTag, obj, caption)
        {
            //リストビューの作成
            _listBox = new ListBox{Dock = DockStyle.Fill};
            //メインコントロールの追加
            AddControl(_listBox);

            var menuFile = AddMenu(null, null, kernel.IsJp() ? "ファイル(&F)" : "&File", Keys.None);
            AddMenu(menuFile, FuncClose, kernel.IsJp() ? "閉じる(&C)" : "&Close", Keys.None);

            var menuEdit = AddMenu(null, null, kernel.IsJp() ? "編集(&E)" : "&Edit", Keys.None);
            Add2(menuEdit, FuncRefresh, kernel.IsJp() ? "最新状態にする(&R)" : "&Refresh", Keys.F5);
            Add2(menuEdit, FuncCopy, kernel.IsJp() ? "コピー(&C)" : "&Copy", (Keys.Control | Keys.C));

            //最新状態に更新
            FuncRefresh();
        }
Example #10
0
        public OptionMl(Kernel kernel, string path, string nameTag)
            : base(kernel.IsJp(), path, nameTag)
        {
            var pageList = new List<OnePage>();
            var key = "Mailing List";
            pageList.Add(Page1(key, Lang.Value(key), kernel));
            Add(new OneVal("tab", null, Crlf.Nextline, new CtrlTabPage("tabPage", pageList)));

            Read(kernel.IniDb); // レジストリからの読み込み
        }
Example #11
0
        public OptionDnsDomain(Kernel kernel, string path, string nameTag)
            : base(kernel.IsJp(), path, nameTag)
        {
            var pageList = new List<OnePage>();
            var key = "Basic";
            pageList.Add(Page1(key,Lang.Value(key),kernel));
            Add(new OneVal("tab", null, Crlf.Nextline, new CtrlTabPage("tabPage", pageList)));

            Read(kernel.IniDb); //�@���W�X�g������̓ǂݍ���
        }
Example #12
0
        public Dlg(Kernel kernel, string nameTag, Object obj, string caption)
            : base(kernel, nameTag, obj, caption)
        {
            //イメージリストの初期化
            _imageList.Images.Add(Resource.user);
            _imageList.Images.Add(Resource.mail);
            _imageList.Images.Add(Resource.queue);

            //ツリービューの作成
            _treeView = new TreeView();
            _treeView.Dock = DockStyle.Fill;
            _treeView.FullRowSelect = true;
            _treeView.HideSelection = false;
            _treeView.ImageList = _imageList;

            //メインコントロールの追加
            AddControl(_treeView);

            _treeView.DoubleClick += DlgDoubleClick;

            ToolStripMenuItem menuFile = AddMenu(null, null, kernel.IsJp() ? "ファイル(&F)" : "&File", Keys.None);
            Add2(menuFile, FuncRefresh, kernel.IsJp() ? "最新の状態に更新する(&R)" : "&Refuresh", Keys.F5);
            AddMenu(menuFile, null, "-", Keys.None);
            AddMenu(menuFile, FuncClose, kernel.IsJp() ? "閉じる(&C)" : "&Close", Keys.None);

            ToolStripMenuItem menuTool = AddMenu(null, null, kernel.IsJp() ? "ツール(&T)" : "&Tool", Keys.None);
            Add2(menuTool, FuncView, kernel.IsJp() ? "表示(&V)" : "&View", Keys.F1);
            Add2(menuTool, FuncDelete, kernel.IsJp() ? "削除(&D)" : "&Delete", Keys.Delete);

            //最新の状態に更新する
            FuncRefresh();
        }
Example #13
0
        public Dlg(Kernel kernel, string nameTag, Object obj, string caption)
            : base(kernel, nameTag, obj, caption)
        {
            //リストビューの作成
            _listBox = new ListBox {
                Dock = DockStyle.Fill
            };
            //メインコントロールの追加
            AddControl(_listBox);

            var menuFile = AddMenu(null, null, kernel.IsJp() ? "ファイル(&F)" : "&File", Keys.None);

            AddMenu(menuFile, FuncClose, kernel.IsJp() ? "閉じる(&C)" : "&Close", Keys.None);

            var menuEdit = AddMenu(null, null, kernel.IsJp() ? "編集(&E)" : "&Edit", Keys.None);

            Add2(menuEdit, FuncRefresh, kernel.IsJp() ? "最新状態にする(&R)" : "&Refresh", Keys.F5);
            Add2(menuEdit, FuncCopy, kernel.IsJp() ? "コピー(&C)" : "&Copy", (Keys.Control | Keys.C));

            //最新状態に更新
            FuncRefresh();
        }
Example #14
0
        public Option(Kernel kernel, string path, string nameTag)
            : base(kernel.IsJp(), path, nameTag)
        {
            var key = "useServer";
            Add(new OneVal(key, false, Crlf.Nextline, new CtrlCheckBox(Lang.Value(key))));
            var pageList = new List<OnePage>();
            key = "Basic";
            pageList.Add(Page1(key, Lang.Value(key), kernel));
            pageList.Add(PageAcl());
            Add(new OneVal("tab", null, Crlf.Nextline, new CtrlTabPage("tabPage", pageList)));

            Read(kernel.IniDb); // レジストリからの読み込み
        }
Example #15
0
        public Option(Kernel kernel, string path, string nameTag)
            : base(kernel.IsJp(), path, nameTag)
        {
            var key = "useServer";
            Add(new OneVal(key, false, Crlf.Nextline, new CtrlCheckBox(Lang.Value(key))));

            var pageList = new List<OnePage>();
            key = "Basic";
            pageList.Add(Page1(key, Lang.Value(key)));
            key = "Cange Password";
            pageList.Add(Page2(key, Lang.Value(key)));
            key = "AutoDeny";
            pageList.Add(Page3(key, Lang.Value(key)));
            pageList.Add(PageAcl());
            Add(new OneVal("tab", null, Crlf.Nextline, new CtrlTabPage("tabPage", pageList)));

            Read(kernel.IniDb); //�@���W�X�g������̓ǂݍ���
        }
Example #16
0
        public OptionOneMl(Kernel kernel, string path, string nameTag)
            : base(kernel.IsJp(), path, nameTag)
        {
            var pageList = new List<OnePage>();

            var key = "Basic";
            pageList.Add(Page1(key, Lang.Value(key),kernel));
            key = "Member";
            pageList.Add(Page2(key, Lang.Value(key),kernel));
            pageList.Add(Page3("Guide", "Guide", kernel));
            pageList.Add(Page4("Deny", "Deny", kernel));
            pageList.Add(Page5("Confirm", "Confirm", kernel));
            pageList.Add(Page6("Welcome", "Welcome", kernel));
            pageList.Add(Page7("Append", "Append", kernel));
            pageList.Add(Page8("Help", "Help", kernel));
            pageList.Add(Page9("Admin", "Admin", kernel));
            Add(new OneVal("tab", null, Crlf.Nextline, new CtrlTabPage("tabPage", pageList)));

            Read(kernel.IniDb); // レジストリからの読み込み
        }
Example #17
0
        public VersionDlg(Kernel kernel)
        {
            InitializeComponent();

            Text = kernel.IsJp() ? "バージョン情報" : "Version";
            labelApplicationName.Text = Define.ApplicationName();
            labelCopyright.Text       = Define.Copyright();
            labelVersion.Text         = "Version " + kernel.Ver.Version();

            try {
                var installedVersions = Registry.LocalMachine.OpenSubKey(@"SOFTWARE\Microsoft\NET Framework Setup\NDP");
                var versionNames      = installedVersions.GetSubKeyNames();



                var sb = new StringBuilder();
                foreach (string versionName in versionNames)
                {
                    sb.Append(versionName);
                    try {
                        var sp = Convert.ToInt32(installedVersions.OpenSubKey(versionName).GetValue("SP", 0));
                        if (sp != 0)
                        {
                            sb.Append("(SP" + sp + ")");
                        }
                    }
                    catch {
                    }
                    sb.Append(" ");
                }
                //int sp = Convert.ToInt32(installed_versions.OpenSubKey(version_names[version_names.Length - 1]).GetValue("SP", 0));
                textBoxDotnetInstall.Text = sb.ToString();
                labelDotnetInstall.Text   = ".NET";

                var runVer = System.Runtime.InteropServices.RuntimeEnvironment.GetSystemVersion();
                labelDotnetRunning.Text = string.Format("Running : {0}", runVer);
            }
            catch {
                labelDotnetInstall.Text = ".NET Framework ??";
            }
        }
Example #18
0
        private Kernel _kernel; //����Web�̏d������o���邽�ߕK�v�ƂȂ�

        #endregion Fields

        #region Constructors

        public Option(Kernel kernel, string path, string nameTag)
            : base(kernel.IsJp(), path, nameTag)
        {
            _kernel = kernel;

            var protocol = 0;//HTTP
            //nameTag����|�[�g�ԍ���擾���Z�b�g����i�ύX�s�j
            var tmp = NameTag.Split(':');
            if (tmp.Length == 2) {
                int port = Convert.ToInt32(tmp[1]);
                protocol = (port == 443) ? 1:0;
            }
            var key = "useServer";
            Add(new OneVal(key, false, Crlf.Nextline, new CtrlCheckBox(Lang.Value(key))));

            var pageList = new List<OnePage>();
            key = "Basic";
            pageList.Add(Page1(key, Lang.Value(key), kernel, protocol));
            pageList.Add(Page2("CGI", "CGI", kernel));
            pageList.Add(Page3("SSI", "SSI", kernel));
            pageList.Add(Page4("WebDAV","WebDAV" , kernel));
            key = "Alias";
            pageList.Add(Page5(key, Lang.Value(key), kernel));
            key = "MimeType";
            pageList.Add(Page6(key, Lang.Value(key), kernel));
            key = "Certification";
            pageList.Add(Page7(key, Lang.Value(key), kernel));
            key = "CertUserList";
            pageList.Add(Page8(key, Lang.Value(key), kernel));
            key = "CertGroupList";
            pageList.Add(Page9(key, Lang.Value(key), kernel));
            key = "ModelSentence";
            pageList.Add(Page10(key, Lang.Value(key), kernel));
            key = "AutoACL";
            pageList.Add(Page11(key, Lang.Value(key), kernel));
            pageList.Add(PageAcl());
            Add(new OneVal("tab", null, Crlf.Nextline, new CtrlTabPage("tabPage", pageList)));

            Read(_kernel.IniDb); //�@���W�X�g������̓ǂݍ���
        }
Example #19
0
        public Dlg(Kernel kernel, string nameTag, Object obj, string caption)
            : base(kernel, nameTag, obj, caption)
        {
            //リストビューの作成
            _listView = new ListView{
                Dock = DockStyle.Fill,
                FullRowSelect = true,
                HideSelection = false,
                View = System.Windows.Forms.View.Details
            };
            _listView.Columns.Add("Url");
            _listView.Columns.Add("Size");
            _listView.Columns.Add("LastModified");
            _listView.Columns.Add("Expires");
            _listView.Columns.Add("Create");
            _listView.Columns.Add("LastAccess");
            _listView.Columns[0].Width = 400;
            _listView.Columns[1].Width = 100;
            _listView.Columns[2].Width = 120;
            _listView.Columns[3].Width = 120;
            _listView.Columns[4].Width = 120;
            _listView.Columns[5].Width = 120;

            //メインコントロールの追加
            AddControl(_listView);

            ToolStripMenuItem menuFile = AddMenu(null, null, kernel.IsJp() ? "ファイル(&F)" : "&File", Keys.None);
            Add2(menuFile, FuncDisk, kernel.IsJp() ? "ディスク一覧(&D)" : "&Disk", Keys.F1);
            Add2(menuFile, FuncMemory, kernel.IsJp() ? "メモリ一覧(&M)" : "&Memory", Keys.F2);
            AddMenu(menuFile, null, "-", Keys.None);
            AddMenu(menuFile, FuncClose, kernel.IsJp() ? "閉じる(&C)" : "&Close", Keys.None);

            AddPopup(null, "-");

            ToolStripMenuItem menuEdit = AddMenu(null, null, kernel.IsJp() ? "編集(&E)" : "&Edit", Keys.None);
            Add2(menuEdit, FuncSelectAll, kernel.IsJp() ? "すべて選択(&A)" : "Select &All", (Keys.Control | Keys.A));
            Add2(menuEdit, FuncDelete, kernel.IsJp() ? "削除(&D)" : "&Delete", Keys.Delete);

            //メモリ一覧
            FuncMemory();
        }
Example #20
0
        public VersionDlg(Kernel kernel)
        {
            InitializeComponent();

            Text = kernel.IsJp() ? "バージョン情報" : "Version";
            labelApplicationName.Text = Define.ApplicationName();
            labelCopyright.Text = Define.Copyright();
            labelVersion.Text = "Version " + kernel.Ver.Version();

            try {
                var installedVersions = Registry.LocalMachine.OpenSubKey(@"SOFTWARE\Microsoft\NET Framework Setup\NDP");
                var versionNames = installedVersions.GetSubKeyNames();

                var sb = new StringBuilder();
                foreach (string versionName in versionNames) {
                    sb.Append(versionName);
                    try {
                        var sp = Convert.ToInt32(installedVersions.OpenSubKey(versionName).GetValue("SP", 0));
                        if(sp!=0)
                            sb.Append("(SP"+sp+")");
                    }
                    catch {
                    }
                    sb.Append(" ");
                }
                //int sp = Convert.ToInt32(installed_versions.OpenSubKey(version_names[version_names.Length - 1]).GetValue("SP", 0));
                textBoxDotnetInstall.Text = sb.ToString();
                labelDotnetInstall.Text = ".NET";

                var runVer = System.Runtime.InteropServices.RuntimeEnvironment.GetSystemVersion();
                labelDotnetRunning.Text = string.Format("Running : {0}",runVer);

            }
            catch {
                labelDotnetInstall.Text = ".NET Framework ??";
            }
        }