Beispiel #1
0
 public Sbzt()
 {
     InitializeComponent();
     mBjsz = new Sbsz_Bjsz();
     mBjsz.SaveEvent += mBjsz_SaveEvent;
     mXtsz = new Sbsz_Xtsz();
     mXtsz.SaveEvent += mXtsz_SaveEvent;
     mXtcs = new Sbsz_Xtcq();
     mHfccsz = new Sbsz_Hfccsz();
     windowsUIView1.AddDocument(mBjsz);
     windowsUIView1.AddDocument(mXtsz);
     windowsUIView1.AddDocument(mXtcs);
     windowsUIView1.AddDocument(mHfccsz);
     pageGroup1.Properties.ShowPageHeaders = DevExpress.Utils.DefaultBoolean.False;
     windowsUIView1.NavigationBarsShowing += new NavigationBarsCancelEventHandler(onShowingNavigationBars);
     windowsUIView1.PageGroupProperties.SwitchDocumentAnimationMode = TransitionAnimation.VerticalSlide;
 }
Beispiel #2
0
 public Sbzt()
 {
     InitializeComponent();
     mBjsz            = new Sbsz_Bjsz();
     mBjsz.SaveEvent += mBjsz_SaveEvent;
     mXtsz            = new Sbsz_Xtsz();
     mXtsz.SaveEvent += mXtsz_SaveEvent;
     mXtcs            = new Sbsz_Xtcq();
     mHfccsz          = new Sbsz_Hfccsz();
     windowsUIView1.AddDocument(mBjsz);
     windowsUIView1.AddDocument(mXtsz);
     windowsUIView1.AddDocument(mXtcs);
     windowsUIView1.AddDocument(mHfccsz);
     pageGroup1.Properties.ShowPageHeaders = DevExpress.Utils.DefaultBoolean.False;
     windowsUIView1.NavigationBarsShowing += new NavigationBarsCancelEventHandler(onShowingNavigationBars);
     windowsUIView1.PageGroupProperties.SwitchDocumentAnimationMode = TransitionAnimation.VerticalSlide;
 }
Beispiel #3
0
        void mBjsz_SaveEvent(object sender, Sbsz_Bjsz.SaveEventArgs e)
        {
            bool isExit = false;
            for (int i = 0; i < mDeviceList.Count; i++)
            {
                if (mDeviceList[i].mId == e.mSbztEntity.mId)
                {
                    mDeviceList[i] = e.mSbztEntity;
                    save(mDeviceList);
                    isExit = true;

                }
            }
            if (!isExit)
            {
                mDeviceList.Add(e.mSbztEntity);
            }
        }