Example #1
0
        private void leAccount_EditValueChanged(object sender, DevExpress.Xpf.Editors.EditValueChangedEventArgs e)
        {
            string id      = Convert.ToString(e.NewValue);
            var    debtors = api.CompanyEntity.GetCache(typeof(Uniconta.DataModel.Debtor));

            SetFieldFromDebtor((Uniconta.DataModel.Debtor)debtors?.Get(id));
        }
Example #2
0
        private void OnEditValueChanged_Theme(object sender, DevExpress.Xpf.Editors.EditValueChangedEventArgs e)
        {
            // This is the magic that sets the theme for the entire application!

            ThemeManager.ApplicationThemeName = ((Theme)e.NewValue).Name;
            //ThemeManager.SetTheme(this, ((Theme)e.NewValue).Name);
        }
Example #3
0
 private void TrackBarEdit_EditValueChanged(object sender, DevExpress.Xpf.Editors.EditValueChangedEventArgs e)
 {
     if (modifyPopup.IsOpen)
     {
         data.modify(hit.species, hit.nPos, hit.dValue + (double)e.NewValue);
     }
 }
Example #4
0
        private void cbeSourceFile_EditValueChanged(object sender, DevExpress.Xpf.Editors.EditValueChangedEventArgs e)
        {
#if TRACE
            long startTicks = Log.PRESENTATION("Enter", LOG_APPNAME);
#endif
            try
            {
                var s = (ComboBoxEdit)sender;

                if (s.SelectedItems.Count() == 1)
                {
                    XElement sourceFileElement = (XElement)s.SelectedItem;
                    string   filePath          = GetFilePath(sourceFileElement);
                    teSourceFile.Text = teSourcePath.Text + filePath;
                }
                else
                {
                    teSourceFile.Clear();
                }
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.ToString());
            }
#if TRACE
            Log.PRESENTATION("End", LOG_APPNAME, startTicks);
#endif
        }
Example #5
0
 private void txtRecherche_TextChanged(object sender, DevExpress.Xpf.Editors.EditValueChangedEventArgs e)
 {
     try
     {
         TextEdit        t      = (TextEdit)sender;
         string          filter = t.Text;
         ICollectionView cv     = CollectionViewSource.GetDefaultView(PatientDataGrid.ItemsSource);
         if (filter == "")
         {
             cv.Filter = null;
         }
         else
         {
             cv.Filter = o =>
             {
                 SVC.Depense p = o as SVC.Depense;
                 if (t.Name == "txtId")
                 {
                     return(p.Id == Convert.ToInt32(filter));
                 }
                 return(p.RubriqueComptable.ToUpper().Contains(filter.ToUpper()));
             };
         }
     }
     catch (Exception ex)
     {
         MessageBoxResult resultc10 = Xceed.Wpf.Toolkit.MessageBox.Show(ex.Message, Medicus.Properties.Resources.SiteWeb, MessageBoxButton.OK, MessageBoxImage.Error);
     }
 }
Example #6
0
 private void MarginValueChanged(object sender, DevExpress.Xpf.Editors.EditValueChangedEventArgs e)
 {
     //if (_contentPanel.Children.Count > 0)
     //{
     //    if (LicenseTemplete != null)
     //    {
     //        TextEdit txtedit = sender as TextEdit;
     //        double marginvalue = double.Parse(txtedit.EditValue.ToString());
     //        string type = txtedit.Tag.ToString();
     //        switch (type)
     //        {
     //            case "Top":
     //            case "Bottom":
     //                if (marginvalue > LicenseTemplete.Height)
     //                {
     //                    MessageBox.Show("");
     //                }
     //                break;
     //            case "Left":
     //            case "Right":
     //                if (marginvalue > LicenseTemplete.Width)
     //                {
     //                    MessageBox.Show("");
     //                }
     //                break;
     //        }
     //    }
     //}
 }
Example #7
0
 private void EditValueChanges(object sender, DevExpress.Xpf.Editors.EditValueChangedEventArgs e)
 {
     if (typeof(BitmapImage) == e.NewValue.GetType())
     {
         PropertiesViewModel vm = this.DataContext as PropertiesViewModel;
         vm.SelectedRelation.PhotoURI = vm.SaveNewImage(e.NewValue as BitmapImage);
     }
 }
        private void trackBarEdit_EditValueChanged(object sender, DevExpress.Xpf.Editors.EditValueChangedEventArgs e)
        {
            LayoutPanel parentLayoutPanel = (LayoutPanel)(((FrameworkElement)((TrackBarEdit)sender).Parent).Parent);
            int         parentIndex       = programsTitleList.IndexOf(parentLayoutPanel.Caption.ToString());

            brightnesses[parentIndex] = Convert.ToByte(e.NewValue);
            //MessageBox.Show(e.NewValue.ToString());
        }
 private void cmbCountry_EditValueChanged(object sender, DevExpress.Xpf.Editors.EditValueChangedEventArgs e)
 {
     if (cmbCountry.SelectedIndex >= 0)
     {
         CompanySetupPage.BindStandardCompany(cmbStandardCompany, editrow.Country);
         CompanySetupPage.SetCountry(cmbCountry, cmbStandardCompany, editrow, true);
     }
 }
        private void leAccount_EditValueChanged(object sender, DevExpress.Xpf.Editors.EditValueChangedEventArgs e)
        {
            string id      = Convert.ToString(e.NewValue);
            var    debtors = api.CompanyEntity.GetCache(typeof(Debtor));

            if (debtors != null && Contact == null)
            {
                SetValuesFromMaster((Debtor)debtors.Get(id));
            }
        }
Example #11
0
        //protected void PostDataToCSV(TableView tableView)
        //{
        //    var dlg = new Microsoft.Win32.SaveFileDialog();
        //    dlg.FileName = "ServersDataGrid";
        //    dlg.DefaultExt = ".xls";
        //    dlg.Filter = "CSV Documents (*.csv)|*.csv";

        //    Nullable<bool> result = dlg.ShowDialog();

        //    if (result == true)
        //    {
        //        tableView.ExportToCsv(dlg.FileName);
        //    }

        //    //Common.ApplicationDataSet.Instances.WriteXml(outputFile);
        //}

        //protected void PostDataToXLSX(TableView tableView)
        //{
        //    var dlg = new Microsoft.Win32.SaveFileDialog();
        //    dlg.FileName = "ServersDataGrid";
        //    dlg.DefaultExt = ".xlsx";
        //    dlg.Filter = "XLSX Documents (*.xlsx)|*.xlsx";

        //    Nullable<bool> result = dlg.ShowDialog();

        //    if (result == true)
        //    {
        //        tableView.ExportToXlsx(dlg.FileName);
        //    }

        //    //Common.ApplicationDataSet.Instances.WriteXml(outputFile);
        //}

        //protected void PostDataToXLS(TableView tableView)
        //{
        //    var dlg = new Microsoft.Win32.SaveFileDialog();
        //    dlg.FileName = "ServersDataGrid";
        //    dlg.DefaultExt = ".xls";
        //    dlg.Filter = "XLS Documents (*.xls)|*.xls";

        //    Nullable<bool> result = dlg.ShowDialog();

        //    if (result == true)
        //    {
        //        tableView.ExportToXls(dlg.FileName);
        //    }

        //    //Common.ApplicationDataSet.Instances.WriteXml(outputFile);
        //}

        private void RowTemplateComboBox_SelectionChanged(object sender, DevExpress.Xpf.Editors.EditValueChangedEventArgs e)
        {
            ListBoxEdit lbe = (ListBoxEdit)sender;

            TableView   tableView   = null;
            GridControl gridControl = null;

            var vtrootUserControl = VNC.Core.Xaml.PhysicalTree.FindAncestor <UserControl>((DependencyObject)sender);

            if (vtrootUserControl != null)
            {
                gridControl = (GridControl)vtrootUserControl.FindName("dataGrid");
                tableView   = (TableView)vtrootUserControl.FindName("tableView");
            }
            else
            {
                var vtrootWindow = VNC.Core.Xaml.PhysicalTree.FindAncestor <DXWindow>((DependencyObject)sender);

                gridControl = (GridControl)vtrootWindow.FindName("dataGrid");
                tableView   = (TableView)vtrootWindow.FindName("tableView");
            }

            switch (lbe.SelectedItem.ToString())
            {
            case "Tooltip":
                // This uses the resources from the usercontrol/window.
                //var  tmplt =  (DataTemplate)vtrootUserControl.Resources["rowTooltipDetailTemplate"];
                var tmplt = (DataTemplate)Application.PrismApp.Current.Resources["rowTooltipDetailTemplate"];
                //var tmplt = (DataTemplate)Application.Current.Resources["rowTooltipDetailTemplate"];
                tableView.DataRowTemplate = tmplt;
                break;

            case "SelectedRowDetails":
                //tableView.DataRowTemplate = (DataTemplate)Resources["rowSelectedDetailTemplate"];
                // This uses the Application scope resources.
                var tmplt1 = (DataTemplate)Application.PrismApp.Current.Resources["rowSelectedDetailTemplate"];
                //var tmplt1 = (DataTemplate)Application.Current.Resources["rowSelectedDetailTemplate"];
                tableView.DataRowTemplate = tmplt1;
                break;

            case "RowDetails":
                // This uses FindResource.
                var tmplt2 = (DataTemplate)vtrootUserControl.FindResource("rowDetailTemplate");
                tableView.DataRowTemplate = tmplt2;
                break;

            case "None":
                tableView.ClearValue(DevExpress.Xpf.Grid.TableView.DataRowTemplateProperty);
                break;

            default:
                break;
            }
        }
Example #12
0
 private void slider_EditValueChanged(object sender, DevExpress.Xpf.Editors.EditValueChangedEventArgs e)
 {
     if (signalCheckEdit.IsChecked == true)
     {
         panel_burst_signal_list.Visibility = System.Windows.Visibility.Visible;
     }
     else
     {
         panel_burst_signal_list.Visibility = System.Windows.Visibility.Collapsed;
     }
 }
 void OnViewChanged(object sender, DevExpress.Xpf.Editors.EditValueChangedEventArgs e)
 {
     if (viewsListBox.SelectedIndex == 0)
     {
         grid.View = (GridViewBase)FindResource("columnView");
     }
     if (viewsListBox.SelectedIndex == 1)
     {
         grid.View = (GridViewBase)FindResource("cardView");
     }
     UpdateShowFilterPanelMode();
 }
Example #14
0
 void viewsListBox_SelectionChanged(object sender, DevExpress.Xpf.Editors.EditValueChangedEventArgs e)
 {
     if (viewsListBox.SelectedIndex == 0)
     {
         grid.View = (GridViewBase)FindResource("columnView");
     }
     if (viewsListBox.SelectedIndex == 1)
     {
         grid.View = (GridViewBase)FindResource("cardView");
     }
     UpdateEditorButtonShowMode();
     UpdateEditorShowMode();
 }
Example #15
0
 private void TemplatesListBox_EditValueChanged(object sender, DevExpress.Xpf.Editors.EditValueChangedEventArgs e)
 {
     if (Stages != null && e.NewValue != null)
     {
         var sortIndex = Stages.Max(x => x.SortIndex) ?? 1;
         var template  = (KeyValuePair <int, string>)e.NewValue;
         var newStage  = new ProjectStageTile((EStageTemplate)template.Key, ++sortIndex);
         newStage.Project = _originalProject;
         Stages.Add(newStage);
         FocusedStage = newStage;
         StageTemplatesPopup.ClosePopup();
     }
 }
        private void TextEdit_EditValueChanged(object sender, DevExpress.Xpf.Editors.EditValueChangedEventArgs e)
        {
            double   d;
            TextEdit tbox = sender as TextEdit;

            if (double.TryParse(tbox.Text, out d))
            {
                _oldValue = tbox.Text;
            }
            else
            {
                tbox.Text = _oldValue.ToString();
            }
        }
        private void printStyleChooser_SelectionChanged(object sender, DevExpress.Xpf.Editors.EditValueChangedEventArgs e)
        {
            if (cardView == null)
            {
                return;
            }
            switch (printStyleChooser.SelectedIndex)
            {
            case 0: cardView.Style = (Style)Resources["DefaultCardViewPrintStyle"];
                break;

            case 1: cardView.Style = (Style)Resources["UniformCardSizePrintStyle"];
                break;
            }
        }
        private async void TxtDelZipCode_EditValueChanged(object sender, DevExpress.Xpf.Editors.EditValueChangedEventArgs e)
        {
            var s = sender as TextEditor;

            if (s != null && s.IsLoaded)
            {
                var deliveryCountry = editrow.DeliveryCountry ?? editrow.Country;
                var city            = await UtilDisplay.GetCityName(s.Text, deliveryCountry);

                if (city != null)
                {
                    editrow.DeliveryCity = city;
                }
            }
        }
 void OnEditValueChanged(object sender, DevExpress.Xpf.Editors.EditValueChangedEventArgs e)
 {
     UnsubscribeCheckBoxEvents();
     try
     {
         Command command = CreateCommand();
         if (command != null)
         {
             command.Execute();
         }
     }
     finally
     {
         SubscribeCheckBoxEvents();
     }
 }
Example #20
0
        private void cbeProjectFile_EditValueChanged(object sender, DevExpress.Xpf.Editors.EditValueChangedEventArgs e)
        {
#if TRACE
            long startTicks = Log.PRESENTATION("Enter", LOG_APPNAME);
#endif
            try
            {
                var s = (ComboBoxEdit)sender;

                if (s.SelectedItems.Count() == 1)
                {
                    XElement project = (XElement)s.SelectedItem;;

                    cbeSourceFile.Items.Clear();
                    cbeSourceFile.Clear();
                    cbeSourceFile.ItemsSource = project.Elements("SourceFile");

                    string fileName   = project.Attribute("FileName").Value;
                    string folderPath = project.Attribute("FolderPath").Value;
                    string sourcePath = teRepositoryPath.Text + "\\" + folderPath;

                    teSourcePath.Text = sourcePath + "\\";

                    // Set ProjectFile path or clear if no project file.
                    // This is typical if web site with only a solution file.

                    teProjectFile.Text = fileName != "" ? sourcePath + "\\" + fileName : "";
                }
                else
                {
                    // Have selected multiple project files, so clear out controls that affect GetFilesToProcess()

                    cbeSourceFile.Items.Clear();
                    cbeSourceFile.Clear();
                    teProjectFile.Clear();
                    teSourcePath.Clear();
                    teSourceFile.Clear();
                }
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.ToString());
            }
#if TRACE
            Log.PRESENTATION("End", LOG_APPNAME, startTicks);
#endif
        }
Example #21
0
        private void imageEdit1_EditValueChanged(object sender, DevExpress.Xpf.Editors.EditValueChangedEventArgs e)
        {
            SaveFileDialog dlg    = new SaveFileDialog();
            ImageEdit      editor = (ImageEdit)sender;

            if (editor.Source != null && editor.Source is BitmapImage)
            {
                BitmapImage bi     = (BitmapImage)editor.Source;
                Stream      stream = bi.StreamSource as Stream;
                if (stream is FileStream)
                {
                    System.Windows.MessageBox.Show(((FileStream)stream).Name);
                }
                //if (stream != null)
                //    System.Windows.MessageBox.Show(stream.Name);
            }
        }
Example #22
0
        private void leAccount_EditValueChanged(object sender, DevExpress.Xpf.Editors.EditValueChangedEventArgs e)
        {
            string debAcc = Convert.ToString(e.OldValue);
            string id     = Convert.ToString(e.NewValue);

            if (id != editrow._DCAccount ||
                editrow.RowId == 0 ||
                (!string.IsNullOrEmpty(debAcc) && debAcc != id) ||
                ((LoadedRow as DCOrder)?._DCAccount != id))
            {
                if (leAccount.IsEnabled)
                {
                    editrow.Installation = null;
                    SetFieldFromDebtor(editrow, (Uniconta.DataModel.Debtor)api.GetCache(typeof(Uniconta.DataModel.Debtor))?.Get(id));
                }
            }
        }
Example #23
0
        private void comb_EditValueChanged(object sender, DevExpress.Xpf.Editors.EditValueChangedEventArgs e)
        {
            List <object> listitem = (sender as ComboBoxEdit).EditValue as List <object>;

            if (listitem == null)
            {
                return;
            }
            for (int i = 0; i < listitem.Count(); i++)
            {
                if (listitem[i].GetType() == typeof(DevExpress.Xpf.Editors.SelectAllItem))
                {
                    listitem.RemoveAt(i);
                }
            }
            string str        = (sender as ComboBoxEdit).Tag.ToString();
            var    TraceValue = EditTraceValuelist.Find(x => x.DisplayName == str);

            if (TraceValue != null)
            {
                TraceValue.EditValuelist.Clear();
                foreach (var item in listitem)
                {
                    TraceValue.EditValuelist.Add(item);
                }
            }
            else
            {
                TraceEditValue editValue = new TraceEditValue()
                {
                    DisplayName = str
                };
                EditTraceValuelist.Add(editValue);
                foreach (var item in listitem)
                {
                    editValue.EditValuelist.Add(item);
                }
            }
        }
Example #24
0
        /// <summary>
        /// 달력 컨트롤 변경 이벤트
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private async void DeWrkPlanWmd_EditValueChanged(object sender, DevExpress.Xpf.Editors.EditValueChangedEventArgs e)
        {
            var       strWrkPlanYmd = this.BaseClass.GetCalendarValue(this.deWrkPlanWmd); // 출고일자
            DataTable dtComboData   = await Utility.HelperClass.GetSP_OPT_QPS_DATA_SET_LIST_INQ(strWrkPlanYmd);

            // 조회 데이터가 없는 경우 구문을 리턴한다.
            if (dtComboData.Rows.Count == 0)
            {
                this.cboDataSetID.ItemsSource = ConvertDataTableToList.DataTableToList <ComboBoxInfo>(dtComboData);
                return;
            }

            // 콤보박스 설정을 위해 컬럼명을 변경한다.
            dtComboData = this.BaseClass.ModifyComboBoxColumnHeaderName(dtComboData);

            // DATA 그룹 데이터가 1개 컬럼으로 조회되기 때문에 콤보박스 설정을 위해 컬럼을 추가 생성한 후 데이터를 복사한다.
            dtComboData.Columns.Add("NAME", typeof(string));
            for (int i = 0; i < dtComboData.Rows.Count; i++)
            {
                dtComboData.Rows[i]["NAME"] = dtComboData.Rows[i]["CODE"].ToString();
            }

            this.cboDataSetID.ItemsSource = ConvertDataTableToList.DataTableToList <ComboBoxInfo>(dtComboData);
        }
Example #25
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void editform_ValueChanged(object sender, DevExpress.Xpf.Editors.EditValueChangedEventArgs e)
        {
            RelationshipViewModel vm = this.DataContext as RelationshipViewModel;

            // The only control that can be updated is the photo.  Therefore, if the value is
            // null, than the user cleared the image without replacing it with a new image.  In
            // this case, we ignore the cancel and retain the existing picture.
            if (null == e.NewValue)
            {
                e.Handled = true;
                return;
            }

            //// When the ImageEdit control's value changes, we update the Photo property value of the relationship
            //// and encode the Image property value which is bound to the ImageEdit control.
            //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
            //// NOTE: I found that just checking the byte array length of the Relationship.Photo without first encoding
            ////       the Relationship.Photo into a BitmapImage will always return different lengths.
            ////       So the workaround for this is to first convert the Relationship.Photo to a bitmap, then convert both
            ////       the existing (Photo) with the value from the ImageEdit control (e.Value) back to byte[].
            if (typeof(BitmapImage) == e.NewValue.GetType())
            {
                BitmapImage oldImage = Helper.ArrayToBitmapImage(vm.Relationship.Photo.ToArray());

                byte[] newPhoto = Helper.BitmapImageToArray(e.NewValue as BitmapImage);
                byte[] oldPhoto = Helper.BitmapImageToArray(oldImage);

                if (newPhoto.Count() != oldPhoto.Count())
                {
                    // TO-DO: These properties should be set in the ViewModel, not here.....
                    vm.Relationship.Photo = newPhoto;
                    vm.Relationship.Image = e.NewValue as BitmapImage;
                }
            }
            e.Handled = true;
        }
Example #26
0
        private void cbeSolutionFile_EditValueChanged(object sender, DevExpress.Xpf.Editors.EditValueChangedEventArgs e)
        {
#if TRACE
            long startTicks = Log.PRESENTATION("Enter", LOG_APPNAME);
#endif
            try
            {
                var s = (ComboBoxEdit)sender;

                if (s.SelectedItems.Count() == 1)
                {
                    XElement solution = (XElement)s.SelectedItem;

                    cbeSourceFile.Items.Clear();
                    cbeSourceFile.Clear();
                    cbeSourceFile.ItemsSource = null;

                    cbeProjectFile.Items.Clear();
                    cbeProjectFile.Clear();
                    cbeProjectFile.ItemsSource = solution.Elements("Project");

                    string fileName   = solution.Attribute("FileName").Value;
                    string folderPath = solution.Attribute("FolderPath").Value;

                    teSolutionFile.Text = teRepositoryPath.Text + "\\" + folderPath + "\\" + fileName;
                    teSourcePath.Text   = teRepositoryPath.Text + "\\" + folderPath + "\\";
                }
                else
                {
                    // Have selected multiple solution files, so clear out controls that affect GetFilesToProc()

                    List <XElement> projectElements = new List <XElement>();

                    foreach (XElement solutionElement in cbeSolutionFile.SelectedItems)
                    {
                        foreach (XElement projectElement in solutionElement.Elements("Project"))
                        {
                            projectElements.Add(projectElement);
                        }
                    }

                    cbeProjectFile.Items.Clear();
                    cbeProjectFile.Clear();
                    cbeProjectFile.ItemsSource = projectElements;
                    teProjectFile.Clear();

                    cbeSourceFile.Items.Clear();
                    cbeSourceFile.Clear();
                    cbeSourceFile.ItemsSource = null;
                    teSourceFile.Clear();

                    teSourcePath.Clear();   // not sure if this should be cleared.
                }
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.ToString());
            }
#if TRACE
            Log.PRESENTATION("End", LOG_APPNAME, startTicks);
#endif
        }
 void OnShowFilterPanelModeChanged(object sender, DevExpress.Xpf.Editors.EditValueChangedEventArgs e)
 {
     UpdateShowFilterPanelMode();
 }
Example #28
0
 private void RE_EditValueChanged(object sender, DevExpress.Xpf.Editors.EditValueChangedEventArgs e)
 {
     model.numMasters[4] = (byte)((SpinEdit)sender).Value;
     this.pb4.Maximum    = (byte)((SpinEdit)sender).Value;
 }
        private async void TxtCVR_EditValueChanged(object sender, DevExpress.Xpf.Editors.EditValueChangedEventArgs e)
        {
            var s = sender as TextEditor;

            if (s != null && s.IsLoaded)
            {
                var cvr = s.Text;
                if (cvr == null || cvr.Length < 5)
                {
                    return;
                }

                var allIsLetter = cvr?.All(x => char.IsLetter(x));

                if (allIsLetter.HasValue && allIsLetter.Value == true)
                {
                    return;
                }

                CompanyInfo ci = null;
                try
                {
#if !SILVERLIGHT
                    ci = await CVR.CheckCountry(cvr, editrow.Country);
#else
                    var lookupApi = new Uniconta.API.System.UtilityAPI(api);
                    ci = await lookupApi.LookupCVR(cvr, editrow.Country);
#endif
                }
                catch (Exception ex)
                {
                    UnicontaMessageBox.Show(ex);
                    return;
                }

                if (!onlyRunOnce)
                {
                    if (ci == null)
                    {
                        return;
                    }

                    if (!string.IsNullOrWhiteSpace(ci?.life?.name))
                    {
                        var address = ci.address;
                        if (address != null)
                        {
                            onlyRunOnce = true;
                            if (editrow._Address1 == null)
                            {
                                editrow.Address1 = address.CompleteStreet;
                                editrow.Address2 = address.ZipCity;
                                editrow.Country  = address.Country;
                            }
                            else
                            {
                                var result = UnicontaMessageBox.Show(Uniconta.ClientTools.Localization.lookup("UpdateAddress"), Uniconta.ClientTools.Localization.lookup("Information"), UnicontaMessageBox.YesNo);
                                if (result != UnicontaMessageBox.Yes)
                                {
                                    return;
                                }
                                {
                                    editrow.Address1 = address.CompleteStreet;
                                    editrow.Address2 = address.ZipCity;
                                    editrow.Country  = address.Country;
                                }
                            }
                        }

                        if (string.IsNullOrWhiteSpace(editrow._Name))
                        {
                            editrow._Name = ci.life.name;
                        }
                        if (!string.IsNullOrEmpty(ci.contact?.phone))
                        {
                            editrow.Phone = ci.contact.phone;
                        }
                        if (!string.IsNullOrEmpty(ci.contact?.www))
                        {
                            editrow.Www = ci.contact.www;
                        }
                    }
                }
                else
                {
                    onlyRunOnce = false;
                }
            }
        }
 /// <summary>
 /// 달력 컨트롤 변경 이벤트
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void DeWrkPlanWmd_EditValueChanged(object sender, DevExpress.Xpf.Editors.EditValueChangedEventArgs e)
 {
     this.InitComboBoxInfo();
 }