示例#1
0
        private async Task FillCmbSmsAsync()
        {
            try
            {
                var list = await SmsPanelsBussines.GetAllAsync();

                defBindingSource.DataSource = list.Where(q => q.Status).ToSortableBindingList();
            }
            catch (Exception ex)
            {
                WebErrorLog.ErrorInstence.StartErrorLog(ex);
            }
        }
示例#2
0
        private async Task LoadDataAsync(string search = "")
        {
            try
            {
                var list = await SmsPanelsBussines.GetAllAsync(search);

                Invoke(new MethodInvoker(() => pnlBindingSource.DataSource =
                                             list.Where(q => q.Status == _st).OrderBy(q => q.Name).ToSortableBindingList()));
            }
            catch (Exception ex)
            {
                WebErrorLog.ErrorInstence.StartErrorLog(ex);
            }
        }
示例#3
0
        private async Task LoadPanelsAsync()
        {
            try
            {
                var list = await SmsPanelsBussines.GetAllAsync();

                panelBindingSource.DataSource = list.Where(q => q.Status).ToList();



                var def = Guid.Parse(Settings.Classes.Payamak.DefaultPanelGuid);
                if (def != Guid.Empty)
                {
                    cmbPanel.SelectedValue = def;
                }
            }
            catch (Exception ex)
            {
                WebErrorLog.ErrorInstence.StartErrorLog(ex);
            }
        }