コード例 #1
0
ファイル: CaptureTag.cs プロジェクト: ziontaron/CAP_INVSYS
        public f_CaptureTag(ref Inventory_System_API IE)
        {
            InitializeComponent();
            x = IE;
            cb_InvEvent.Items.AddRange(_LoadEvents().ToArray());
            l_EventStatus.Text = "";
            if (x.UserProfile.Contains("Admin"))
            {
                cb_EditCountQty.Visible = true;
            }
            else
            {
                cb_EditCountQty.Visible = false;
            }

            STK.AddRange(x.LoadAllSTK().ToArray());
            tb_STK.AutoCompleteMode         = AutoCompleteMode.Suggest;
            tb_STK.AutoCompleteSource       = AutoCompleteSource.CustomSource;
            tb_STK.AutoCompleteCustomSource = STK;

            BIN.AddRange(x.LoadAllBIN().ToArray());
            tb_BIN.AutoCompleteMode         = AutoCompleteMode.Suggest;
            tb_BIN.AutoCompleteSource       = AutoCompleteSource.CustomSource;
            tb_BIN.AutoCompleteCustomSource = BIN;
        }