コード例 #1
0
ファイル: frmMain.cs プロジェクト: szerem1/WaterMark
        private void chkSameOutputFolder_CheckedChanged(object sender, System.EventArgs e)
        {
            if (chkSameOutputFolder.Checked == true)
            {
                chkSameOutputFolder.Text  = "Katalog wyjœciowy taki sam jak wejsciowy";
                chkSameOutputFolder.Width = 306;
                chkSameOutputFolder.SendToBack();

                txtOutputFolder.Text    = txtWorkingFolder.Text;
                txtOutputFolder.Enabled = false;
                cmdBrowse3.Enabled      = false;
                txtSuffix.Visible       = true;
                lblSuffix1.Visible      = true;
                lblSuffix2.Visible      = true;
            }
            else
            {
                chkSameOutputFolder.Text  = "U¿yj katalogu wyjœciowego i zachowaj tê sam¹ nazwê pliku(ów)";
                chkSameOutputFolder.Width = cmdMake.Width;
                chkSameOutputFolder.BringToFront();

                txtOutputFolder.Text    = regOutputFolder;
                txtOutputFolder.Enabled = true;
                cmdBrowse3.Enabled      = true;
                txtSuffix.Visible       = false;
                lblSuffix1.Visible      = false;
                lblSuffix2.Visible      = false;
            }
        }