示例#1
0
        /// <summary>
        /// 読込ソースの変更イベント
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void ExcelSourceRadio_CheckedChanged(object sender, EventArgs e)
        {
            try
            {
                BaseRadioButton radio = (BaseRadioButton)sender;
                if (!radio.Checked)
                {
                    return;
                }

                ExcelLoadFilePathTitleLbl.Visible = false;
                ExcelLoadFilePathTextBox.Visible  = false;
                FileOpenButton.Visible            = false;
                if (radio.Equals(ExcelSourceExistsRadio))
                {
                    ExcelLoadFilePathTitleLbl.Visible = true;
                    ExcelLoadFilePathTextBox.Visible  = true;
                    FileOpenButton.Visible            = true;
                }
            }
            catch (Exception ex)
            {
                throw Program.ThrowException(ex);
            }
        }
示例#2
0
        /// <summary>
        /// Required method for Designer support - do not modify
        /// the contents of this method with the code editor.
        /// </summary>
        private void InitializeComponent()
        {
            #region Controls
            var defVisStyleBackCol = true;

            connTxtBox             = new BaseTextBox(_res, "connTxtBox", 1, new Point(30, 52), new Size(120, 20), padding: new Padding(30, 5, 3, 3));
            addressTxtBox          = new BaseTextBox(_res, "addressTxtBox", 3, new Point(30, 112), new Size(120, 20), padding: new Padding(30, 5, 3, 3));
            portTxtBox             = new BaseTextBox(_res, "portTxtBox", 5, new Point(30, 172), new Size(120, 20), padding: new Padding(30, 5, 3, 3));
            gatewayTxtBox          = new BaseTextBox(_res, "gatewayTxtBox", 7, new Point(30, 232), new Size(120, 20), padding: new Padding(30, 5, 3, 3));
            screenWidthTxtBox      = new BaseTextBox(_res, "screenWidthTxtBox", 23, new Point(20, 124), new Size(105, 20), padding: new Padding(20, 5, 3, 3));
            screenHeightTxtBox     = new BaseTextBox(_res, "screenHeightTxtBox", 25, new Point(20, 184), new Size(105, 20), padding: new Padding(20, 5, 3, 3));
            connLbl                = new BaseLabel(_res, "connLbl", 0, new Point(30, 30), new Size(124, 17), "Connection Name:", autoSize: true, padding: new Padding(30, 30, 3, 0));
            addressLbl             = new BaseLabel(_res, "addressLbl", 2, new Point(30, 90), new Size(110, 17), "Server Address:", autoSize: true, padding: new Padding(30, 15, 3, 0));
            portLbl                = new BaseLabel(_res, "portLbl", 4, new Point(30, 150), new Size(84, 17), "Server Port:", autoSize: true, padding: new Padding(30, 15, 3, 0));
            gatewayLbl             = new BaseLabel(_res, "gatewayLbl", 6, new Point(30, 120), new Size(67, 17), "Gateway:", autoSize: true, padding: new Padding(30, 15, 3, 0));
            connStatusLbl          = new BaseLabel(_res, "connStatusLbl", 8, new Point(175, 129), new Size(127, 17), "Connection Status", autoSize: true);
            savedRdpsLbl           = new BaseLabel(_res, "savedRdpsLbl", 1, new Point(31, 28), new Size(97, 18), "Saved RDPs:", autoSize: true);
            screenWidthLbl         = new BaseLabel(_res, "screenWidthLbl", 22, new Point(20, 102), new Size(97, 17), "Screen Width:", autoSize: true, padding: new Padding(20, 15, 3, 0));
            screenHeightLbl        = new BaseLabel(_res, "screenHeightLbl", 24, new Point(20, 162), new Size(102, 17), "Screen Height:", autoSize: true, padding: new Padding(20, 15, 3, 0));
            useGatewayChckBox      = new BaseCheckBox(_res, "useGatewayChckBox", 8, defVisStyleBackCol, "Use Gateway", new Point(30, 285), new Size(98, 19), margin: new Padding(30, 30, 3, 3));
            asAdminChckBox         = new BaseCheckBox(_res, "asAdminChckBox", 9, defVisStyleBackCol, "As Admin", new Point(30, 317), new Size(77, 19), margin: new Padding(30, 10, 3, 3));
            remGuardChckBox        = new BaseCheckBox(_res, "remGuardChckBox", 10, defVisStyleBackCol, "Remote Guard", new Point(30, 349), new Size(107, 19), margin: new Padding(30, 10, 3, 3));
            restrictedAdminChckBox = new BaseCheckBox(_res, "restrictedAdminChckBox", 15, defVisStyleBackCol, "As Restricted Admin", new Point(30, 381), new Size(135, 19), margin: new Padding(30, 10, 3, 3));
            fullScreenChckBox      = new BaseCheckBox(_res, "fullScreenChckBox", 19, defVisStyleBackCol, "Start Fullscreen", new Point(10, 15), new Size(111, 19), margin: new Padding(10, 15, 3, 3));
            multiMonitorChckBox    = new BaseCheckBox(_res, "multiMonitorChckBox", 20, defVisStyleBackCol, "Multi Monitor Mode", new Point(10, 40), new Size(133, 19), margin: new Padding(10, 3, 3, 3));
            spanMonitorsChckBox    = new BaseCheckBox(_res, "spanMonitorsChckBox", 21, defVisStyleBackCol, "Span Monitors Mode", new Point(10, 65), new Size(141, 19), margin: new Padding(10, 3, 3, 3));
            rdpCredsHelpBtn        = new BaseButton(_res, "rdpCredsHelpBtn", 16, visStyleBackColor: defVisStyleBackCol, point: new Point(174, 458), margin: new Padding(174, 55, 3, 3), size: new Size(40, 23));
            recheckConnBtn         = new BaseButton(_res, "recheckConnBtn", 9, visStyleBackColor: defVisStyleBackCol, point: new Point(33, 228), size: new Size(120, 23), text: "Recheck Connection");
            editCrntBtn            = new BaseButton(_res, "editCrntBtn", 6, visStyleBackColor: defVisStyleBackCol, point: new Point(33, 190), size: new Size(75, 23), text: "Edit");
            delCrntBtn             = new BaseButton(_res, "delCrntBtn", 5, visStyleBackColor: defVisStyleBackCol, point: new Point(33, 161), size: new Size(75, 23), text: "Delete");
            connectCrntBtn         = new BaseButton(_res, "connectCrntBtn", 4, visStyleBackColor: defVisStyleBackCol, point: new Point(33, 129), size: new Size(75, 23), text: "Connect To");
            refreshRdpsBtn         = new BaseButton(_res, "refreshRdpBtn", 3, visStyleBackColor: defVisStyleBackCol, point: new Point(237, 57), size: new Size(60, 23), text: "Refresh");
            saveNUpdtBtn           = new BaseButton(_res, "saveNUpdtBtn", visStyleBackColor: defVisStyleBackCol, point: new Point(19, 10), margin: new Padding(19, 10, 3, 3), size: new Size(110, 23), text: "Save / Update");
            saveToRdpFileBtn       = new BaseButton(_res, "saveToRdpFileBtn", 5, visStyleBackColor: defVisStyleBackCol, point: new Point(19, 46), margin: new Padding(19, 10, 3, 3), size: new Size(110, 23), text: "Save as .RDP");
            saveToXmlBtn           = new BaseButton(_res, "saveToXmlBtn", 4, visStyleBackColor: defVisStyleBackCol, point: new Point(19, 82), margin: new Padding(19, 10, 3, 3), size: new Size(110, 23), text: "Save as .XML");
            connGivenBtn           = new BaseButton(_res, "connGivenBtn", 2, visStyleBackColor: defVisStyleBackCol, point: new Point(19, 118), margin: new Padding(19, 10, 3, 3), size: new Size(110, 23), text: "Quick Connect");
            resetBtn               = new BaseButton(_res, "resetBtn", 1, visStyleBackColor: defVisStyleBackCol, point: new Point(19, 154), margin: new Padding(19, 10, 3, 3), size: new Size(110, 23), text: "Reset To Defaults");
            screenSettingsHelpBtn  = new BaseButton(_res, "screenSettingsHelpBtn", 3, visStyleBackColor: defVisStyleBackCol, point: new Point(88, 185), margin: new Padding(88, 5, 3, 3), size: new Size(40, 23), text: "Help!");
            isMstcRunningImgBox    = new BasePicBox(_res, "isMstcRunningImgBox", 7, new Point(191, 161), new Size(106, 90));
            savedRdpsResults       = new BaseComboBox(_res, "savedRdpsResults", 2, new Point(33, 59), new Size(181, 21));
            onlyRdpFilesRdio       = new BaseRadioButton(_res, "onlyRdpFilesRdio", text: "Only .RDP Files", autoSize: true, point: new Point(173, 25), size: new Size(125, 21), tabStop: true, visualStyleCol: true);
            #endregion

            #region Panels
            currentRdpsPnl = new BaseFlowPanel(_res, "currentRdpsPnl", 3, new Control[] { recheckConnBtn, connStatusLbl, isMstcRunningImgBox, editCrntBtn, delCrntBtn, connectCrntBtn, refreshRdpsBtn, savedRdpsResults, savedRdpsLbl, saveToRdpFileBtn, onlyRdpFilesRdio },
                                               new Point(276, 12), new Size(327, 264), borderStyle: BorderStyle.Fixed3D);
            screenSettingsHolderPnl = new BaseFlowPanel(_res, "screenSettingsHolderPnl", 4, new Control[] { rdpButtonsPnl, screenSettingsPnl }, new Point(276, 285), new Size(328, 225), borderStyle: BorderStyle.Fixed3D);
            connectionSettingsPnl   = new BaseFlowPanel(_res, "connectionSettingsPnl", controls: new Control[] { connLbl, connTxtBox, addressLbl, addressTxtBox, portLbl, portTxtBox, gatewayLbl, gatewayTxtBox, useGatewayChckBox, asAdminChckBox, remGuardChckBox, restrictedAdminChckBox, rdpCredsHelpBtn },
                                                        point: new Point(12, 12), size: new Size(244, 498), borderStyle: BorderStyle.Fixed3D, flow: FlowDirection.TopDown);
            rdpButtonsPnl     = new BaseFlowPanel(_res, "rdpButtonsPnl", 1, new Control[] { saveNUpdtBtn, saveToRdpFileBtn, saveToXmlBtn, connGivenBtn, resetBtn, screenSettingsHelpBtn }, new Point(173, 3), new Size(148, 215));
            screenSettingsPnl = new BaseFlowPanel(_res, "screenSettingsPnl", controls: new Control[] { fullScreenChckBox, multiMonitorChckBox, spanMonitorsChckBox, screenWidthLbl, screenWidthTxtBox, screenHeightLbl, screenHeightTxtBox }, point: new Point(3, 3), size: new Size(164, 215));
            #endregion

            ((System.ComponentModel.ISupportInitialize)(isMstcRunningImgBox)).BeginInit();
            SuspendLayout();
            InitRdp();
        }
示例#3
0
 /// <summary>
 /// 検出エリアの変更イベント
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void DetectAreaRadio_CheckedChanged(object sender, EventArgs e)
 {
     try
     {
         BaseRadioButton radio = (BaseRadioButton)sender;
         if (radio.Checked)
         {
             SetExecuteMode();
         }
     }
     catch (Exception ex)
     {
         throw Program.ThrowException(ex);
     }
 }
示例#4
0
 /// <summary>
 /// FilterRadioのチェック変更イベント
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void FilterRadio_CheckedChanged(object sender, EventArgs e)
 {
     try
     {
         BaseRadioButton radio = (BaseRadioButton)sender;
         if (radio.Checked)
         {
             CreateChart();
         }
     }
     catch (Exception ex)
     {
         throw Program.ThrowException(ex);
     }
 }
示例#5
0
 /// <summary>
 /// ImageRadioのチェック変更イベント
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void ImageRadioButton_CheckedChanged(object sender, EventArgs e)
 {
     try
     {
         BaseRadioButton radio = (BaseRadioButton)sender;
         if (!radio.Checked)
         {
             return;
         }
         ChangeImage();
     }
     catch (Exception ex)
     {
         throw Program.ThrowException(ex);
     }
 }
示例#6
0
 /// <summary>
 /// 待機Radioのチェック後変更イベント
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void WaitRadio_CheckedChanged(object sender, EventArgs e)
 {
     try
     {
         BaseRadioButton radio = (BaseRadioButton)sender;
         if (!radio.Checked)
         {
             return;
         }
         ExitCodeTitleLbl.Visible = radio.Equals(WaitRadio);
         ExitCodeUpDown.Visible   = radio.Equals(WaitRadio);
     }
     catch (Exception ex)
     {
         throw Program.ThrowException(ex);
     }
 }
示例#7
0
 /// <summary>
 /// フォーマットRadioのチェック変更イベント
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void FormatRadio_CheckedChanged(object sender, EventArgs e)
 {
     try
     {
         BaseRadioButton radio = (BaseRadioButton)sender;
         if (!radio.Checked)
         {
             return;
         }
         CustomInputTitleLbl.Enabled = radio.Equals(FormatCustomRadio);
         CustomInputTextBox.Enabled  = radio.Equals(FormatCustomRadio);
         if (!CustomInputTextBox.Enabled)
         {
             CustomInputTextBox.Text = "";
         }
     }
     catch (Exception ex)
     {
         throw Program.ThrowException(ex);
     }
 }
示例#8
0
 /// <summary>
 /// ファイルフォルダ実行処理の選択変更イベント
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void ActionRadio_CheckedChanged(object sender, EventArgs e)
 {
     try
     {
         BaseRadioButton radio = (BaseRadioButton)sender;
         if (!radio.Checked)
         {
             return;
         }
         FileFolderPath1TitleLbl.Visible = false;
         FileFolderPath1TextBox.Visible  = false;
         FileFolderOpen1Button.Visible   = false;
         FileFolderPath2TitleLbl.Visible = false;
         FileFolderPath2TextBox.Visible  = false;
         FileFolderOpen2Button.Visible   = false;
         VariableTitleLbl.Visible        = false;
         VariableButton.Visible          = false;
         TimeoutTitleLbl.Visible         = false;
         TimeoutNumericUpDown.Visible    = false;
         ZipPasswordTextBox.Visible      = false;
         ZipPasswordTitleLbl.Visible     = false;
         if (FileActionRadio.Checked)
         {
             if (FileFolderDetectRadio.Checked)
             {
                 FileFolderPath1TitleLbl.Text    = "検出ファイル";
                 FileFolderPath1TitleLbl.Visible = true;
                 FileFolderPath1TextBox.Visible  = true;
                 FileFolderOpen1Button.Visible   = true;
                 TimeoutTitleLbl.Visible         = true;
                 TimeoutNumericUpDown.Visible    = true;
             }
             if (FileFolderCreateRadio.Checked)
             {
                 FileFolderPath1TitleLbl.Text    = "作成ファイル";
                 FileFolderPath1TitleLbl.Visible = true;
                 FileFolderPath1TextBox.Visible  = true;
                 FileFolderOpen1Button.Visible   = true;
             }
             if (FileFolderRemoveRadio.Checked)
             {
                 FileFolderPath1TitleLbl.Text    = "削除ファイル";
                 FileFolderPath1TitleLbl.Visible = true;
                 FileFolderPath1TextBox.Visible  = true;
                 FileFolderOpen1Button.Visible   = true;
             }
             if (FileFolderMoveRadio.Checked)
             {
                 FileFolderPath1TitleLbl.Text    = "移動元ファイルパス";
                 FileFolderPath1TitleLbl.Visible = true;
                 FileFolderPath1TextBox.Visible  = true;
                 FileFolderOpen1Button.Visible   = true;
                 FileFolderPath2TitleLbl.Text    = "移動先ファイルパス";
                 FileFolderPath2TitleLbl.Visible = true;
                 FileFolderPath2TextBox.Visible  = true;
                 FileFolderOpen2Button.Visible   = true;
             }
             if (FileFolderCopyRadio.Checked)
             {
                 FileFolderPath1TitleLbl.Text    = "コピー元ファイルパス";
                 FileFolderPath1TitleLbl.Visible = true;
                 FileFolderPath1TextBox.Visible  = true;
                 FileFolderOpen1Button.Visible   = true;
                 FileFolderPath2TitleLbl.Text    = "コピー先ファイルパス";
                 FileFolderPath2TitleLbl.Visible = true;
                 FileFolderPath2TextBox.Visible  = true;
                 FileFolderOpen2Button.Visible   = true;
             }
             if (FileFolderSaveUdateRadio.Checked)
             {
                 FileFolderPath1TitleLbl.Text    = "更新日ファイル";
                 FileFolderPath1TitleLbl.Visible = true;
                 FileFolderPath1TextBox.Visible  = true;
                 FileFolderOpen1Button.Visible   = true;
                 VariableTitleLbl.Visible        = true;
                 VariableButton.Visible          = true;
             }
             if (FileFolderZipArchiveRadio.Checked)
             {
                 ZipPasswordTextBox.Visible      = true;
                 ZipPasswordTitleLbl.Visible     = true;
                 FileFolderPath1TitleLbl.Text    = "圧縮元ファイルパス";
                 FileFolderPath1TitleLbl.Visible = true;
                 FileFolderPath1TextBox.Visible  = true;
                 FileFolderOpen1Button.Visible   = true;
                 FileFolderPath2TitleLbl.Text    = "圧縮先ファイルパス";
                 FileFolderPath2TitleLbl.Visible = true;
                 FileFolderPath2TextBox.Visible  = true;
                 FileFolderOpen2Button.Visible   = true;
             }
             if (FileFolderZipUnArchiveRadio.Checked)
             {
                 ZipPasswordTextBox.Visible      = true;
                 ZipPasswordTitleLbl.Visible     = true;
                 FileFolderPath1TitleLbl.Text    = "解凍元ファイルパス";
                 FileFolderPath1TitleLbl.Visible = true;
                 FileFolderPath1TextBox.Visible  = true;
                 FileFolderOpen1Button.Visible   = true;
                 FileFolderPath2TitleLbl.Text    = "解凍先ファイルパス";
                 FileFolderPath2TitleLbl.Visible = true;
                 FileFolderPath2TextBox.Visible  = true;
                 FileFolderOpen2Button.Visible   = true;
             }
         }
         if (FolderActionRadio.Checked)
         {
             if (FileFolderDetectRadio.Checked)
             {
                 FileFolderPath1TitleLbl.Text    = "検出フォルダ";
                 FileFolderPath1TitleLbl.Visible = true;
                 FileFolderPath1TextBox.Visible  = true;
                 FileFolderOpen1Button.Visible   = true;
                 TimeoutTitleLbl.Visible         = true;
                 TimeoutNumericUpDown.Visible    = true;
             }
             if (FileFolderCreateRadio.Checked)
             {
                 FileFolderPath1TitleLbl.Text    = "作成フォルダ";
                 FileFolderPath1TitleLbl.Visible = true;
                 FileFolderPath1TextBox.Visible  = true;
                 FileFolderOpen1Button.Visible   = true;
             }
             if (FileFolderRemoveRadio.Checked)
             {
                 FileFolderPath1TitleLbl.Text    = "削除フォルダ";
                 FileFolderPath1TitleLbl.Visible = true;
                 FileFolderPath1TextBox.Visible  = true;
                 FileFolderOpen1Button.Visible   = true;
             }
             if (FileFolderMoveRadio.Checked)
             {
                 FileFolderPath1TitleLbl.Text    = "移動元フォルダパス";
                 FileFolderPath1TitleLbl.Visible = true;
                 FileFolderPath1TextBox.Visible  = true;
                 FileFolderOpen1Button.Visible   = true;
                 FileFolderPath2TitleLbl.Text    = "移動先フォルダパス";
                 FileFolderPath2TitleLbl.Visible = true;
                 FileFolderPath2TextBox.Visible  = true;
                 FileFolderOpen2Button.Visible   = true;
             }
             if (FileFolderCopyRadio.Checked)
             {
                 FileFolderPath1TitleLbl.Text    = "コピー元フォルダパス";
                 FileFolderPath1TitleLbl.Visible = true;
                 FileFolderPath1TextBox.Visible  = true;
                 FileFolderOpen1Button.Visible   = true;
                 FileFolderPath2TitleLbl.Text    = "コピー先フォルダパス";
                 FileFolderPath2TitleLbl.Visible = true;
                 FileFolderPath2TextBox.Visible  = true;
                 FileFolderOpen2Button.Visible   = true;
             }
             if (FileFolderSaveUdateRadio.Checked)
             {
                 FileFolderPath1TitleLbl.Text    = "更新日フォルダ";
                 FileFolderPath1TitleLbl.Visible = true;
                 FileFolderPath1TextBox.Visible  = true;
                 FileFolderOpen1Button.Visible   = true;
                 VariableTitleLbl.Visible        = true;
                 VariableButton.Visible          = true;
             }
             if (FileFolderZipArchiveRadio.Checked)
             {
                 ZipPasswordTextBox.Visible      = true;
                 ZipPasswordTitleLbl.Visible     = true;
                 FileFolderPath1TitleLbl.Text    = "圧縮元フォルダパス";
                 FileFolderPath1TitleLbl.Visible = true;
                 FileFolderPath1TextBox.Visible  = true;
                 FileFolderOpen1Button.Visible   = true;
                 FileFolderPath2TitleLbl.Text    = "圧縮先フォルダパス";
                 FileFolderPath2TitleLbl.Visible = true;
                 FileFolderPath2TextBox.Visible  = true;
                 FileFolderOpen2Button.Visible   = true;
             }
             if (FileFolderZipUnArchiveRadio.Checked)
             {
                 ZipPasswordTextBox.Visible      = true;
                 ZipPasswordTitleLbl.Visible     = true;
                 FileFolderPath1TitleLbl.Text    = "解凍元フォルダパス";
                 FileFolderPath1TitleLbl.Visible = true;
                 FileFolderPath1TextBox.Visible  = true;
                 FileFolderOpen1Button.Visible   = true;
                 FileFolderPath2TitleLbl.Text    = "解凍先フォルダパス";
                 FileFolderPath2TitleLbl.Visible = true;
                 FileFolderPath2TextBox.Visible  = true;
                 FileFolderOpen2Button.Visible   = true;
             }
         }
     }
     catch (Exception ex)
     {
         throw Program.ThrowException(ex);
     }
 }