コード例 #1
0
        private void CustomEnable()
        {
            if (CboSoukoType.Enabled)
            {
                if (CboSoukoType.SelectedValue.Equals("5"))
                {
                    ScSoukoMakerCD.Enabled = true;
                    ScSoukoMakerCD.Focus();
                }
                else
                {
                    ScSoukoMakerCD.Clear();
                    ScSoukoMakerCD.Enabled = false;
                }

                if (CboSoukoType.SelectedValue.Equals("8"))
                {
                    TxtHikiateOrder.Text    = string.Empty;
                    TxtHikiateOrder.Enabled = false;
                }
                else
                {
                    TxtHikiateOrder.Enabled = true;
                }
            }
        }
コード例 #2
0
        private bool MakerCheck()
        {
            if (CboSoukoType.SelectedValue.Equals("5"))
            {
                if (!RequireCheck(new Control[] { ScSoukoMakerCD.TxtCode }))
                {
                    return(false);
                }

                if (!ScSoukoMakerCD.IsExists(2))
                {
                    mtsbl.ShowMessage("E101");
                    ScSoukoMakerCD.Focus();
                    return(false);
                }
            }

            return(true);
        }