示例#1
0
        private void timer1_Tick(object sender, EventArgs e)
        {
            searchIntervel++;

            if (searchIntervel == 2)
            {
                if (searchMode == 1)
                {
                    searchIntervel = 0;
                    searchMode     = 0;
                    searchBhikku.setOriginalImage(searchBhikku.bInfo.BhikkuType, searchBhikku.bInfo.ChangeType, false, false);
                    timer1.Enabled = false;
                    searchBhikku   = null;
                }
                else if (searchMode == 2)
                {
                    searchIntervel = 0;
                    searchMode     = 0;
                    timer1.Enabled = false;
                    searchAsapuwa.SetFinalizedsettings();

                    searchAsapuwa = null;
                }
            }
        }
示例#2
0
        private void panel1_DragDrop(object sender, DragEventArgs e)
        {
            e.Effect = DragDropEffects.Copy;
            ChangeListItemBhikku lbl = (ChangeListItemBhikku)e.Data.GetData(typeof(ChangeListItemBhikku));

            //lbl.DoDrag();

            MessageBox.Show(lbl.Text);
        }
示例#3
0
        internal void LoadForm(ChangeList changeList, List <ChangeListBhikku> list)
        {
            finalizedAsp      = changeList.FinalizedAsapu;;
            this.AddedHistry  = changeList.AddedHistry;
            this.ChangeListID = changeList.ID;
            this.FromDate     = changeList.FromDate;
            this.ToDate       = changeList.Todate;

            this.Show();


            Dictionary <int, ChangeListItemAsapuwa> addedAsapu = new Dictionary <int, ChangeListItemAsapuwa>();

            foreach (ChangeListBhikku ListBhikku in list)
            {
                // load bhikku
                if (BhikkuDict.ContainsKey(ListBhikku.BhikkuID) && AsapuDict.ContainsKey(ListBhikku.AsapuwaID))
                {
                    ChangeListItemBhikku cb = BhikkuDict[ListBhikku.BhikkuID];
                    cb.ChanageListID    = ListBhikku.ID;
                    cb.bInfo.Post       = ListBhikku.Post;
                    cb.bInfo.ChangeType = ListBhikku.ChangeType;
                    cb.setOriginalImage(cb.bInfo.BhikkuType, cb.bInfo.ChangeType, false, false);
                    AsapuDict[ListBhikku.AsapuwaID].AddBhikku(cb);

                    if (cb.bInfo.IsUpasampanna)
                    {
                        upasampadaChangeCount++;
                    }
                    else
                    {
                        samaneraChangeCount++;
                    }
                }

                setSummaryCounts();
            }

            foreach (int aspID in finalizedAsp)
            {
                if (AsapuDict.ContainsKey(aspID))
                {
                    AsapuDict[aspID].isFinalize = true;
                    AsapuDict[aspID].SetFinalizedsettings();
                }
            }

            ShoallasapuwaPanel();
        }
示例#4
0
        private void nameOfAssumedAtRobinCombo_SelectedValueChanged(object sender, EventArgs e)
        {
            if (nameOfAssumedAtRobinCombo.SelectedValue != null && nameOfAssumedAtRobinCombo.SelectedValue is Int32)
            {
                int selectedIndex = (int)nameOfAssumedAtRobinCombo.SelectedValue;

                if (BhikkuDict.ContainsKey(selectedIndex))
                {
                    searchMode   = 1;
                    searchBhikku = BhikkuDict[selectedIndex];
                    searchBhikku.Select();
                    timer1.Enabled = true;
                    searchBhikku.setOriginalImage(searchBhikku.bInfo.BhikkuType, searchBhikku.bInfo.ChangeType, true, false);
                }
            }
        }