public void Show()
        {
            PrepareTaskSelector();

            if (_taskSelectorPopup == null)
            {
                _taskSelectorPopup = new PopupService();
                _taskSelectorPopup.Child = _taskSelector;
                _taskSelectorPopup.Closed += new EventHandler(_taskSelectorPopup_Closed);
            }

            _taskSelectorPopup.Show();
            _taskSelector.btnChoosePhoto.Focus();
        }
 private void GetCategoriesFromDatabase()
 {
     try
     {
         using (var ctx = new ServerContext())
         {
             this.AllCategories    = new ObservableCollection <Category>(ctx.Category.ToList());
             this.AllSubCategories = new ObservableCollection <Standardprice>(ctx.Standardprices.ToList());
         }
     }
     catch (System.Data.DataException)
     {
         PopupService.PopupMessage(Application.Current.FindResource("CouldNotConnectToDatabase").ToString(), Application.Current.FindResource("Error").ToString());
     }
 }
Exemplo n.º 3
0
 private void AskVoucherCreationConfirmation()
 {
     PopupService.DisplayQuestion("Envoi d'un bon d'achat",
                                  "Etes-vous certain(e) de vouloir envoyer un bon d'achat par mail ?",
                                  new QuestionActionButton
     {
         Caption       = "Oui",
         ClickCallback = async() => await CreateVoucherAsync()
                         //ClickCallback =() => CreateVoucherAsync()
     },
                                  new QuestionActionButton
     {
         Caption = "Non"
     });
 }
        public void AddProduct()
        {
            Product product = new Product(this.ProductName, this.SelectedSubCategory.Parent_id, this.IsChecked, this.ProductDesc);

            if (product.isUnique == false)
            {
                product.quantity = this.AmountOfProducts;
            }
            else
            {
                product.quantity = 1;
            }

            if (this.Weeks > 0)
            {
                product.expiredate = product.date.Value.AddDays(this.Weeks * 7);
            }
            else
            {
                product.expiredate = null;
            }

            if (Image != null)
            {
                product.image = this.imageToByteArray(Image);
            }
            if (this.Price.Equals(0.0) == true)
            {
                product.price = this.SelectedSubCategory.standardprice;
            }
            else
            {
                product.price = this.Price;
            }
            try
            {
                using (var ctx = new ServerContext())
                {
                    ctx.Products.Add(product);
                    ctx.SaveChanges();
                    MessageBox.Show("Assigned ID: " + product.id, "Success!");
                }
            }
            catch (System.Data.DataException)
            {
                PopupService.PopupMessage(Application.Current.FindResource("CouldNotConnectToDatabase").ToString(), Application.Current.FindResource("Error").ToString());
            }
        }
        private void SaveCommandExecuted()
        {
            IsBusy = true;

            Properties.Settings.Default.IncOpeningOption      = IncOpening;
            Properties.Settings.Default.IncJoinersOption      = IncJoiners;
            Properties.Settings.Default.IncLeaversOption      = IncLeavers;
            Properties.Settings.Default.IncTransfersInOption  = IncTransfersIn;
            Properties.Settings.Default.IncTransfersOutOption = IncTransfersOut;
            Properties.Settings.Default.IncClosingOption      = IncClosing;

            Properties.Settings.Default.Save();

            IsBusy = false;
            PopupService.ShowMessage(Properties.Resources.MESSAGE_SETTINGS_SAVED, MessageType.Successful);
        }
 private void GetDatabaseData()
 {
     try
     {
         using (var ctx = new ServerContext())
         {
             this.AllCategories   = new List <Category>(ctx.Category.ToList());
             this.AllSoldProducts = new List <SoldProduct>(ctx.Soldproducts.ToList());
             this.AllProducts     = new List <Product>(ctx.Products.ToList());
         }
     }
     catch (System.Data.DataException)
     {
         PopupService.PopupMessage(Application.Current.FindResource("CouldNotConnectToDatabase").ToString(), Application.Current.FindResource("Error").ToString());
     }
 }
Exemplo n.º 7
0
 public void AddSoldProductsToDatabase(List <SoldProduct> soldproducts)
 {
     try
     {
         using (var ctx = new ServerContext())
         {
             //save all products as products sold.
             ctx.Soldproducts.AddRange(soldproducts);
             ctx.SaveChanges();
         }
     }
     catch (System.Data.DataException)
     {
         PopupService.PopupMessage(Application.Current.FindResource("CouldNotConnectToDatabase").ToString(), Application.Current.FindResource("Error").ToString());
     }
 }
Exemplo n.º 8
0
        private async void FetchHomeTimeline(object obj)
        {
            if (HomeTimelineCommand.CanExecute(obj) == false)
            {
                return;
            }

            try
            {
                IsGettingTimeline = true;

                await PopupService.Flash(Application.Current.MainWindow, "タイムライン取得中");

                var tweets = (await Client.FetchHomeTimeline()).Select(tweet => new TweetControlViewModel(tweet));

                if (tweets.Max(t => t?.Id) == TweetList.Max(t => t?.Id))
                {
                    return;
                }

                var excepts        = Enumerable.Except(tweets.Select(t => t.Id), TweetList.Select(t => t.Id));
                var orderedExcepts = tweets.Where(t => excepts.Contains(t.Id)).OrderBy(t => t.Id);

                foreach (var content in orderedExcepts)
                {
                    content.SetProfileAndMediaSource();
                    Dispatcher.Invoke(() => TweetList.Insert(0, content));
                }
            }
            catch (AggregateException err)
            {
                foreach (var ie in err.InnerExceptions)
                {
                    throw ie;
                }
            }
            catch (CoreTweet.TwitterException err)
            {
                Debug.WriteLine(err);
                MessageBox.Show("Twitter API 取得制限に達しました。\r\n15分間の利用が制限されています。");
            }
            finally
            {
                IsGettingTimeline = false;
                await PopupService.Flash(Application.Current.MainWindow, "タイムライン取得完了");
            }
        }
Exemplo n.º 9
0
        /// <summary>
        /// Show the splash screen
        /// </summary>
        /// <param name="splashScreen">
        /// The splash screen.
        /// </param>
        /// <param name="splashFactory">
        /// The splash screen factory.
        /// </param>
        /// <param name="windowLogic">
        /// The window logic.
        /// </param>
        public void Show(
            SplashScreen splashScreen,
            Func <SplashScreen, UserControl> splashFactory,
            WindowLogic windowLogic)
        {
            if (splashFactory == null)
            {
                return;
            }

            var splash = splashFactory(splashScreen);

            var service = new PopupService();

            this.popup = service.Show(PopupService.PopupSize.FullScreen, splash);
            windowLogic.ActivateWindow(ActivateWindowSources.SplashScreen, this);
        }
        public MainWindowVM(INavigationService navigationService, PopupService twitterPopup)
        {
            _navigationService = navigationService;
            _twitterPopup      = twitterPopup;

            _mediaElement = new MediaElement();
            _mediaElement.LoadedBehavior   = MediaState.Manual;
            _mediaElement.UnloadedBehavior = MediaState.Stop;
            _mediaElement.MediaOpened     += new RoutedEventHandler(MediaOpened);
            _mediaElement.MediaEnded      += new RoutedEventHandler(MediaEnded);

            _mediaTimer.Interval = TimeSpan.FromMilliseconds(100);
            _mediaTimer.Tick    += new EventHandler(UpdateMediaPosition);
            _mediaTimer.Start();

            OnNavigatePlaylists(null);
        }
Exemplo n.º 11
0
 private void SaveSellers()
 {
     try
     {
         string filename = PPCConfigurationManager.CardSellersPath;
         using (XmlTextWriter writer = new XmlTextWriter(filename, Encoding.UTF8))
         {
             writer.Formatting = Formatting.Indented;
             DataContractSerializer serializer = new DataContractSerializer(typeof(CardSellers));
             serializer.WriteObject(writer, _cardSellers);
         }
     }
     catch (Exception ex)
     {
         Logger.Exception("Error saving card sellers file", ex);
         PopupService.DisplayError("Error saving card sellers file", ex);
     }
 }
 public void AddCategory()
 {
     try
     {
         using (var ctx = new ServerContext())
         {
             this.CreatedCategory.name = this.CategoryName;
             ctx.Category.Add(this.CreatedCategory);
             ctx.SaveChanges();
         }
         AllCategories.Add(CreatedCategory);
         this.CreatedCategory = new Category();
     }
     catch (System.Data.DataException)
     {
         PopupService.PopupMessage(Application.Current.FindResource("CouldNotConnectToDatabase").ToString(), Application.Current.FindResource("Error").ToString());
     }
 }
Exemplo n.º 13
0
        /// @param localDirector
        ///     The local director owner of the Controller
        /// @param view
        ///     The view of the scene
        /// @param cameraController
        ///     The camera controller
        ///
        public MapNodeController(LocalDirector localDirector, MapNodeView view)
            : base(localDirector, view)
        {
            m_audioService = GlobalDirector.Service <AudioService>();
            m_popupService = GlobalDirector.Service <PopupService>();
            m_levelService = GlobalDirector.Service <LevelService>();

            MapNodeView = view;
            LevelModel  = m_levelService.GetLevelModel(MapNodeView.LevelIndex);
            MapNodeView.SetName(MapNodeView.LevelIndex.ToString());

            m_fsm.RegisterStateCallback(k_stateInit, EnterStateInit, null, null);
            m_fsm.RegisterStateCallback(k_stateIdle, EnterStateIdle, null, ExitStateIdle);
            m_fsm.RegisterStateCallback(k_stateLocked, EnterStateLocked, null, ExitStateLocked);
            m_fsm.RegisterStateCallback(k_stateUnlock, null, null, ExitStateUnlock);
            m_fsm.RegisterStateCallback(k_stateDone, EnterStateDone, null, ExitStateDone);
            m_fsm.ExecuteAction(k_actionNext);
        }
Exemplo n.º 14
0
 public void DeleteBackupFiles(string savePath)
 {
     // Move backup files into save folder
     try
     {
         string backupPath = CardSellerViewModel.Path;
         foreach (string file in Directory.EnumerateFiles(backupPath))
         {
             string saveFilename = savePath + "cards_" + Path.GetFileName(file);
             File.Move(file, saveFilename);
         }
     }
     catch (Exception ex)
     {
         Logger.Exception("Error", ex);
         PopupService.DisplayError("Error", ex);
     }
 }
        /// <summary>
        /// It is used to position the <see cref="RadRadialMenu"/> and initiate menu position logic.
        /// </summary>
        protected internal virtual void AttachToTargetElement()
        {
            if (this.Owner == null)
            {
                return;
            }

            var menu = RadRadialContextMenu.GetMenu(this.Owner);

            if (menu != null && (PopupService.CurrentAttachedMenu != menu ||
                                 (PopupService.CurrentAttachedMenu != null && PopupService.CurrentAttachedMenu.TargetElement != this.Owner)))
            {
                menu.model.actionService.PushAction(
                    new DelegateAction(() =>
                {
                    if (menu.TargetElement != null)
                    {
                        var behavior = RadRadialContextMenu.GetBehavior(menu.TargetElement);

                        if (behavior != null)
                        {
                            behavior.DetachFromTargetElement();
                        }
                        else
                        {
                            this.DetachFromTargetElement();
                        }
                    }

                    menu.TargetElement = this.Owner;

                    PopupService.Attach(menu);

                    if (menu.DesiredSize.Height == 0 || menu.DesiredSize.Width == 0)
                    {
                        menu.LayoutUpdated += this.Owner_LayoutUpdated;
                    }
                    else
                    {
                        this.PositionMenu(menu);
                    }
                }));
            }
        }
        protected override void OnCreate(Bundle bundle)
        {
            base.OnCreate(bundle);
            PopupService.Init();

            AndroidEnvironment.UnhandledExceptionRaiser += HandleAndroidException;

            Forms.Init(this, bundle);

            //XXX: Must initialize the UAS first on a main thread before anything can use it
            UserAgentService.Init();
            PullToRefreshLayoutRenderer.Init();
            CachedImageRenderer.Init();
            ImageService.Instance.Initialize(new Configuration
            {
                HttpClient                   = RestService.Instance.Client,
                FadeAnimationEnabled         = false,
                FadeAnimationForCachedImages = false,
                BitmapOptimizations          = false,
                TransformPlaceholders        = false
            });

            var downloadCache = ImageService.Instance.Config.DownloadCache as DownloadCache;

            if (downloadCache != null)
            {
                downloadCache.DelayBetweenRetry = TimeSpan.FromSeconds(0);
            }
            else
            {
                Logger.Log("WARNING: Unable to cast FFImageLoading DownloadCache!");
            }


            var app = new App();

            LoadApplication(app);
            app.Activate();
            if ((int)Build.VERSION.SdkInt >= 21)
            {
                ActionBar.SetIcon(new ColorDrawable(Resources.GetColor(Android.Resource.Color.Transparent)));
            }
        }
Exemplo n.º 17
0
        private void OnLoginRequested()
        {
            var loginSuccessfully = AccessService.Current.User != null;

            Application.Current.Dispatcher.BeginInvoke(new Action(() =>
            {
                if (loginSuccessfully)
                {
                    PopupService.ShowMessage(Resources.MESSAGE_LOGIN_SUCCESSFULLY, MessageType.Successful);

                    var mainWindow = (MainWindow)Application.Current.MainWindow;
                    mainWindow.ViewModel.NavigateToWorkspaceView();
                }
                else
                {
                    PopupService.ShowMessage(Resources.MESSAGE_LOGIN_FAILED, MessageType.Failed);
                    IsBusy = false;
                }
            }));
        }
Exemplo n.º 18
0
        public MasterPage(bool goToSearch = false)
        {
            this.InitializeComponent();

            NavigationServiceBase.Init(this.MainFrame);
            NotificationService.Init(this.NotificationDisplay);
            MsgBoxService.Init(this.MessageBoxDisplay);
            PopupService.Init(this.PopupDisplay);


            if (goToSearch)
            {
                //this.MainFrame.Navigate(typeof(SearchResultsView));
                NavigationService.Navigate("SearchResultsView");
            }
            else
            {
                NavigationService.Navigate("SplashScreenView");
            }
        }
Exemplo n.º 19
0
 private void LoadSellers()
 {
     try
     {
         string filename = PPCConfigurationManager.CardSellersPath;
         if (File.Exists(filename))
         {
             using (XmlTextReader reader = new XmlTextReader(filename))
             {
                 DataContractSerializer serializer = new DataContractSerializer(typeof(CardSellers));
                 _cardSellers = (CardSellers)serializer.ReadObject(reader);
             }
         }
     }
     catch (Exception ex)
     {
         Logger.Exception("Error loading card sellers file", ex);
         PopupService.DisplayError("Error loading card sellers file", ex);
     }
 }
        private void RemoveSubCategory()
        {
            try
            {
                using (var ctx = new ServerContext())
                {
                    List <Standardprice> subCategoryList = ctx.Standardprices.Where(x => x.id.CompareTo(SelectedSubCategory.id) == 0).ToList();
                    Standardprice        subCategory     = subCategoryList.First();

                    ctx.Standardprices.Remove(subCategory);
                    ctx.SaveChanges();
                }
                this.AllSubCategories.Remove(this.SelectedSubCategory);
                this.ShownSubCategories.Remove(this.SelectedSubCategory);
            }
            catch (System.Data.DataException)
            {
                PopupService.PopupMessage(Application.Current.FindResource("CouldNotConnectToDatabase").ToString(), Application.Current.FindResource("Error").ToString());
            }
        }
Exemplo n.º 21
0
        /// @param localDirector
        ///     The local director owner of the Controller
        /// @param view
        ///     The view of the scene
        /// @param cameraController
        ///     The camera controller
        ///
        public LevelController(LocalDirector localDirector, LevelView view)
            : base(localDirector, view, SceneIdentifiers.k_map)
        {
            m_view = view;

            m_tileFactory      = localDirector.GetFactory <TileFactory>();
            m_levelService     = GlobalDirector.Service <LevelService>();
            m_popupService     = GlobalDirector.Service <PopupService>();
            m_objectiveService = localDirector.GetService <ObjectiveService>();

            m_audioService.PlayMusicFadeCross(AudioIdentifiers.k_musicLevel);

            m_fsm.RegisterStateCallback(k_stateInit, EnterStateInit, null, null);
            m_fsm.RegisterStateCallback(k_stateLoad, EnterStateLoad, null, null);
            m_fsm.RegisterStateCallback(k_stateIdle, EnterStateIdle, null, ExitStateIdle);
            m_fsm.RegisterStateCallback(k_stateShuffle, EnterStateShuffle, null, null);
            m_fsm.RegisterStateCallback(k_stateResolve, EnterStateResolve, null, ExitStateResolve);
            m_fsm.RegisterStateCallback(k_stateWin, EnterStateWin, null, null);
            m_fsm.RegisterStateCallback(k_stateLose, EnterStateLose, null, null);
            m_fsm.ExecuteAction(k_actionNext);
        }
Exemplo n.º 22
0
    private async Task RefreshAsync()
    {
        try
        {
            PopupService.DisplayLoader("Restoration");
            await ChallengesApi.ImportChallengeAsync(new() { GeoGuessrId = Challenge.GeoGuessrId, OverrideData = true });

            ApiResponse <ChallengeDetailDto> response = await ChallengesApi.GetAsync(Challenge.Id);

            Challenge = response.Content !;
        }
        catch (ApiException e)
        {
            ToastService.DisplayToast(e.Content ?? "Echec de l'opération", null, ToastType.Error, "challenge-refresh", true);
        }
        finally
        {
            PopupService.HidePopup();
            StateHasChanged();
        }
    }
 //help method for RemoveCategory
 private void RemoveSubCategories()
 {
     try
     {
         using (var ctx = new ServerContext())
         {
             List <Standardprice> subCategoryList = ctx.Standardprices.Where(x => x.Parent_id.CompareTo(SelectedCategory.id) == 0).ToList();
             foreach (Standardprice subcategory in subCategoryList)
             {
                 Standardprice tmp = new Standardprice();
                 tmp = subcategory;
                 ctx.Standardprices.Remove(tmp);
                 ctx.SaveChanges();
             }
         }
     }
     catch (System.Data.DataException)
     {
         PopupService.PopupMessage(Application.Current.FindResource("CouldNotConnectToDatabase").ToString(), Application.Current.FindResource("Error").ToString());
     }
 }
Exemplo n.º 24
0
        public void Reload()
        {
            string path = CardSellerViewModel.Path;

            if (Directory.Exists(path))
            {
                foreach (string filename in Directory.EnumerateFiles(path, "*.xml", SearchOption.TopDirectoryOnly))
                {
                    try
                    {
                        CardSellerViewModel seller = new CardSellerViewModel(filename);
                        Sellers.Add(seller);
                    }
                    catch (Exception ex)
                    {
                        Logger.Exception($"Error while loading {filename ?? "??"} seller", ex);
                        PopupService.DisplayError($"Error while loading {filename ?? "??"} seller", ex);
                    }
                }
            }
        }
Exemplo n.º 25
0
        private async void FetchNextHomeTimeLine(object obj)
        {
            if (!NextHomeTimelineCommand.CanExecute(obj))
            {
                return;
            }

            try
            {
                IsGettingTimeline = true;

                await PopupService.Flash(Application.Current.MainWindow, "タイムライン取得中");

                var maxid  = TweetList.Min(tweet => tweet.Id) - 1;
                var tweets = (await Client.FetchHomeTimeline(maxid: maxid)).Select(tweet => new TweetControlViewModel(tweet));

                foreach (var content in tweets)
                {
                    content.SetProfileAndMediaSource();
                    Dispatch <TweetControlViewModel>(TweetList.Add)(content);
                }
            }
            catch (AggregateException err)
            {
                foreach (var ie in err.InnerExceptions)
                {
                    throw ie;
                }
            }
            catch (CoreTweet.TwitterException err)
            {
                Debug.WriteLine(err);
                MessageBox.Show("Twitter API 取得制限に達しました。\r\n15分間の利用が制限されています。");
            }
            finally
            {
                IsGettingTimeline = false;
                await PopupService.Flash(Application.Current.MainWindow, "タイムライン取得完了");
            }
        }
Exemplo n.º 26
0
 public void RemoveProductsInBasketFromDatabase(List <List <Product> > productlist)
 {
     try
     {
         using (var ctx = new ServerContext())
         {
             //Remove from inventory
             foreach (List <Product> k in productlist)
             {
                 foreach (Product x in k)
                 {
                     foreach (Product y in ctx.Products.ToList())
                     {
                         if (x.id == y.id)
                         {
                             if (x.isUnique == true)
                             {
                                 ctx.Products.Remove(y);
                             }
                             else if (y.quantity <= 1)
                             {
                                 ctx.Products.Remove(y);
                             }
                             else
                             {
                                 y.quantity--;
                             }
                         }
                     }
                 }
             }
             ctx.SaveChanges();
             ClearAllProductsFromBasket();
         }
     }
     catch (System.Data.DataException)
     {
         PopupService.PopupMessage(Application.Current.FindResource("CouldNotConnectToDatabase").ToString(), Application.Current.FindResource("Error").ToString());
     }
 }
Exemplo n.º 27
0
// properties *are* initialized within the constructor. However by a method call, which is not correctly recognized by the code analyzer yet.
#pragma warning disable CS8618 // warning about uninitialized non-nullable properties
        public MainViewModel(IViewProvider viewProvider)
#pragma warning restore CS8618
        {
            var pathResolver = new PathResolver();

            _fileWatch = new FileWatchDistributedNotificationReceiver(pathResolver);
            _trayIcon  = new TrayIconHandle();
            _trayIcon.ExitRequested       += TrayIconOnExitRequested;
            _trayIcon.ShowWindowRequested += TrayIconOnShowWindowRequested;
            var dispatcher = new WpfDispatcher();

            _coreSetup = new CoreSetup(pathResolver, _fileWatch, dispatcher);
            _coreSetup.PipelineUpdated += CoreSetup_PipelineUpdated;
            _coreSetup.DistributedNotificationReceived += CoreSetup_DistributedNotificationReceived;
            _configurationApplication = new ConfigurationApplication(_coreSetup.Configuration);
            _configurationApplication.ApplyChanges();
            GlobalErrorLogTarget.ErrorOccured += GlobalErrorLog_ErrorOccurred;
            _popupService   = new PopupService(this, viewProvider);
            _windowSettings = new WindowSettings(pathResolver.WindowSettingsFilePath);
            _updateUrls     = new UpdateUrls();
            Initialize();
        }
Exemplo n.º 28
0
 private void Save()
 {
     try
     {
         List <Player> players = Players.Select(x => new Player
         {
             DCINumber   = x.DCINumber,
             FirstName   = x.FirstName,
             LastName    = x.LastName,
             MiddleName  = x.MiddleName,
             CountryCode = x.CountryCode,
             IsJudge     = x.IsJudge
         }).ToList();
         PlayersDb.Save(PPCConfigurationManager.PlayersPath, players);
         Load(false); //TODO crappy workaround to reset row.IsNewItem
     }
     catch (Exception ex)
     {
         Logger.Exception("Error while saving player file", ex);
         PopupService.DisplayError("Error while saving player file", ex);
     }
 }
Exemplo n.º 29
0
        private async Task <T> GetAsync <T>(Uri uri)
        {
            using (var client = new HttpClient())
            {
                var response = await client.GetAsync(uri);

                var json = await response.Content.ReadAsStringAsync();

                if (response.IsSuccessStatusCode)
                {
                    T result = JsonConvert.DeserializeObject <T>(json);
                    return(result);
                }
                else
                {
                    PopupService p = new PopupService();
                    p.GetDefaultNotification("Loading data failed. Try again later.", "Network error");
                }

                return(default(T));
            }
        }
Exemplo n.º 30
0
        void Delete()
        {
            PopupAlertModel model = new()
            {
                Title           = "USUWANIE",
                ContentAsString = "<p>Czy na pewno chcesz usunąć?</br> Uwaga, tej operacji nie można cofnąć!</p>",
                Buttons         = new List <PopupButton>
                {
                    new PopupButton
                    {
                        Content = "Tak",
                        OnClick = (sender, args) => DeleteUser(currentEmployee)
                    },

                    new PopupButton
                    {
                        Content = "Nie"
                    }
                }
            };

            PopupService.AddPopupModelToStack(model);
        }

        void DeleteUser(EmployeeModel employee)
        {
            EmployeeService.DeleteEmployee(employee.ID.ToString());
        }

        void MenuOnAppearingHandler(MenuAppearingEventArgs e)
        {
            currentEmployee = e.Data as EmployeeModel;
            if (currentEmployee is null)
            {
                e.PreventShow = true;
            }
        }
    }
Exemplo n.º 31
0
        private void SaveCommandExecuted()
        {
            IsBusy = true;

            Properties.Settings.Default.IncResignDate              = IncResignDate;
            Properties.Settings.Default.IncLeavingDate             = IncLeavingDate;
            Properties.Settings.Default.IncMembershipNumberLeavers = IncMembershipNumberLeavers;
            Properties.Settings.Default.IncMemberNameLeavers       = IncMemberNameLeavers;
            Properties.Settings.Default.IncCategoryNameLeavers     = IncCategoryNameLeavers;
            Properties.Settings.Default.IncReason                = IncReason;
            Properties.Settings.Default.IncNotes                 = IncNotes;
            Properties.Settings.Default.IncLinkedMembers         = IncLinkedMembers;
            Properties.Settings.Default.IncMembershipStart       = IncMembershipStart;
            Properties.Settings.Default.IncMembershipEnd         = IncMembershipEnd;
            Properties.Settings.Default.IncContractPeriodLeavers = IncContractPeriodLeavers;
            Properties.Settings.Default.IncLastDDMonth           = IncLastDDMonth;

            Properties.Settings.Default.Save();

            IsBusy = false;

            PopupService.ShowMessage(Properties.Resources.MESSAGE_SETTINGS_SAVED, MessageType.Successful);
        }