Exemplo n.º 1
0
        /// <summary>
        /// 버튼 클릭 이벤트
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void btnBroadText1_MouseDown(object sender, MouseEventArgs e)
        {
            NCasButton       ncasBtn   = sender as NCasButton;
            List <BroadText> broadText = (List <BroadText>)ncasBtn.Tag;

            if (ncasBtn.CheckedValue)
            {
                this.selectBtn = ncasBtn;
                this.selectDisasterLabel.Text = ncasBtn.Text;
                this.selectDetailDisasterComboBox.Items.Clear();
                this.broadTextBox1.Text = string.Empty;
                this.broadTextBox2.Text = string.Empty;
                this.ClearCheckAllButton();
                ncasBtn.CheckedValue = true;

                foreach (BroadText text in broadText)
                {
                    this.selectDetailDisasterComboBox.Items.Add(text.Title);
                }
            }
            else
            {
                this.selectBtn = new NCasButton();
                this.selectDisasterLabel.Text = string.Empty;
                this.selectDetailDisasterComboBox.Items.Clear();
                this.broadTextBox1.Text = string.Empty;
                this.broadTextBox2.Text = string.Empty;
            }
        }
Exemplo n.º 2
0
        /// <summary>
        /// 생성자
        /// </summary>
        /// <param name="orderview"></param>
        /// <param name="type">1-단말그룹, 2-시군그룹</param>
        public OrderGroupEditForm(OrderView19201080 orderview, byte type, NCasButton button)
            : this()
        {
            if (type == 2)
            {
                this.isTerm = false;
            }

            this.provInfo   = orderview.ProvInfo;
            this.ncasButton = button;
            this.Init();
        }
Exemplo n.º 3
0
        /// <summary>
        /// Top 메뉴 클릭 이벤트
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void btnOrderMenu_MouseDown(object sender, MouseEventArgs e)
        {
            NCasButton btnSelect      = sender as NCasButton;
            ViewKind   selectViewKind = (ViewKind)btnSelect.Tag;

            btnOrderMenu.CheckedValue       = false;
            btnOrderResultMenu.CheckedValue = false;
            btnDevMonMenu.CheckedValue      = false;

            if (selectViewKind == this.currentViewKind)
            {
                if (btnSelect.CheckedValue == false)
                {
                    btnSelect.CheckedValue = true;
                }

                return;
            }

            this.OpenView(selectViewKind);
            this.currentViewKind = selectViewKind;
        }