コード例 #1
0
ファイル: FormFeeScheds.cs プロジェクト: steev90/opendental
        private void gridMain_CellDoubleClick(object sender, ODGridClickEventArgs e)
        {
            FormFeeSchedEdit FormF = new FormFeeSchedEdit();

            FormF.FeeSchedCur = FeeSchedC.ListLong[e.Row];
            FormF.ShowDialog();
            FillGrid();
            changed = true;
            for (int i = 0; i < FeeSchedsForType.Count; i++)
            {
                if (FormF.FeeSchedCur.FeeSchedNum == FeeSchedsForType[i].FeeSchedNum)
                {
                    gridMain.SetSelected(i, true);
                }
            }
        }
コード例 #2
0
ファイル: FormFeeScheds.cs プロジェクト: steev90/opendental
        private void butAdd_Click(object sender, System.EventArgs e)
        {
            FormFeeSchedEdit FormF = new FormFeeSchedEdit();

            FormF.FeeSchedCur           = new FeeSched();
            FormF.FeeSchedCur.IsNew     = true;
            FormF.FeeSchedCur.ItemOrder = FeeSchedC.ListLong.Count;
            if (listType.SelectedIndex > 0)
            {
                FormF.FeeSchedCur.FeeSchedType = (FeeScheduleType)(listType.SelectedIndex - 1);
            }
            FormF.ShowDialog();
            FillGrid();
            changed = true;
            for (int i = 0; i < FeeSchedsForType.Count; i++)
            {
                if (FormF.FeeSchedCur.FeeSchedNum == FeeSchedsForType[i].FeeSchedNum)
                {
                    gridMain.SetSelected(i, true);
                }
            }
        }
コード例 #3
0
ファイル: FormFeeScheds.cs プロジェクト: ChemBrain/OpenDental
        private void gridMain_CellDoubleClick(object sender, ODGridClickEventArgs e)
        {
            if (_isSelectionMode)
            {
                SelectedFeeSchedNum = ((FeeSched)gridMain.ListGridRows[e.Row].Tag).FeeSchedNum;
                DialogResult        = DialogResult.OK;
                Close();
                return;
            }
            FormFeeSchedEdit FormF = new FormFeeSchedEdit();

            FormF.FeeSchedCur   = _listFeeSchedsForType[e.Row];
            FormF.ListFeeScheds = _listFeeScheds;
            FormF.ShowDialog();
            FillGrid();
            for (int i = 0; i < _listFeeSchedsForType.Count; i++)
            {
                if (FormF.FeeSchedCur.FeeSchedNum == _listFeeSchedsForType[i].FeeSchedNum)
                {
                    gridMain.SetSelected(i, true);
                }
            }
        }
コード例 #4
0
		private void gridMain_CellDoubleClick(object sender,ODGridClickEventArgs e) {
			FormFeeSchedEdit FormF=new FormFeeSchedEdit();
			FormF.FeeSchedCur=FeeSchedC.ListLong[e.Row];
			FormF.ShowDialog();
			FillGrid();
			changed=true;
			for(int i=0;i<FeeSchedsForType.Count;i++){
				if(FormF.FeeSchedCur.FeeSchedNum==FeeSchedsForType[i].FeeSchedNum){
					gridMain.SetSelected(i,true);
				}
			}
		}
コード例 #5
0
		private void butAdd_Click(object sender, System.EventArgs e) {
			FormFeeSchedEdit FormF=new FormFeeSchedEdit();
			FormF.FeeSchedCur=new FeeSched();
			FormF.FeeSchedCur.IsNew=true;
			FormF.FeeSchedCur.ItemOrder=FeeSchedC.ListLong.Count;
			if(listType.SelectedIndex>0){
				FormF.FeeSchedCur.FeeSchedType=(FeeScheduleType)(listType.SelectedIndex-1);
			}
			FormF.ShowDialog();
			FillGrid();
			changed=true;
			for(int i=0;i<FeeSchedsForType.Count;i++){
				if(FormF.FeeSchedCur.FeeSchedNum==FeeSchedsForType[i].FeeSchedNum){
					gridMain.SetSelected(i,true);
				}
			}
		}