private void btnAdd_Click(object sender, RoutedEventArgs e)
        {
            CFrmAccidentRecordManager vehicleInfo = new CFrmAccidentRecordManager(FormTypes.New);
            EntityBrowser             browser     = new EntityBrowser(vehicleInfo);

            browser.MinWidth         = 500;
            browser.MinHeight        = 300;
            browser.ReloadDataEvent += new EntityBrowser.refreshGridView(browser_ReloadDataEvent);
            browser.Show <string>(DialogMode.Default, Common.ParentLayoutRoot, "", (result) => { }, true);
        }
        void BtnView_Click(object sender, RoutedEventArgs e)
        {
            ObservableCollection<T_OA_ACCIDENTRECORD> selectItems = GetSelectList();
            if (selectItems != null)
            {
                CFrmAccidentRecordManager vehicleInfo = new CFrmAccidentRecordManager(FormTypes.Browse);
                vehicleInfo.AccidentInfo = selectItems[0];
                EntityBrowser browser = new EntityBrowser(vehicleInfo);
                browser.FormType = FormTypes.Browse;
                browser.MinWidth = 500;
                browser.MinHeight = 300;

                browser.ReloadDataEvent += new EntityBrowser.refreshGridView(browser_ReloadDataEvent);
                browser.Show<string>(DialogMode.Default, Common.ParentLayoutRoot, "", (result) => { }, true);
            }
            else
            {
                ComfirmWindow.ConfirmationBox(Utility.GetResourceStr("CONFIRMINFO"), Utility.GetResourceStr("SELECTERROR", "VIEW"), Utility.GetResourceStr("CONFIRMBUTTON"));
            }
        }
        void BtnView_Click(object sender, RoutedEventArgs e)
        {
            ObservableCollection <T_OA_ACCIDENTRECORD> selectItems = GetSelectList();

            if (selectItems != null)
            {
                CFrmAccidentRecordManager vehicleInfo = new CFrmAccidentRecordManager(FormTypes.Browse);
                vehicleInfo.AccidentInfo = selectItems[0];
                EntityBrowser browser = new EntityBrowser(vehicleInfo);
                browser.FormType  = FormTypes.Browse;
                browser.MinWidth  = 500;
                browser.MinHeight = 300;

                browser.ReloadDataEvent += new EntityBrowser.refreshGridView(browser_ReloadDataEvent);
                browser.Show <string>(DialogMode.Default, Common.ParentLayoutRoot, "", (result) => { }, true);
            }
            else
            {
                ComfirmWindow.ConfirmationBox(Utility.GetResourceStr("CONFIRMINFO"), Utility.GetResourceStr("SELECTERROR", "VIEW"), Utility.GetResourceStr("CONFIRMBUTTON"));
            }
        }
 private void btnAdd_Click(object sender, RoutedEventArgs e)
 {
     CFrmAccidentRecordManager vehicleInfo = new CFrmAccidentRecordManager(FormTypes.New);
     EntityBrowser browser = new EntityBrowser(vehicleInfo);
     browser.MinWidth = 500;
     browser.MinHeight = 300;
     browser.ReloadDataEvent += new EntityBrowser.refreshGridView(browser_ReloadDataEvent);
     browser.Show<string>(DialogMode.Default, Common.ParentLayoutRoot, "", (result) => { }, true);
 }