private void ModifyPool(string obj)
        {
            var poolSettingWindow = new PoolForm();
            var poolVM            = new PoolFormViewModel()
            {
                Pool = new PoolSettingsXmlUI()
                {
                    CoinType         = SelectedPool.CoinType,
                    FailOverPriority = SelectedPool.FailOverPriority,
                    IsCPUPool        = SelectedPool.IsCPUPool,
                    IsGPUPool        = SelectedPool.IsGPUPool,
                    IsFailOver       = SelectedPool.IsFailOver,
                    IsMain           = SelectedPool.IsMain,
                    IsRemoveable     = SelectedPool.IsRemoveable,
                    Password         = SelectedPool.Password,
                    Port             = SelectedPool.Port,
                    URL       = SelectedPool.URL,
                    Username  = SelectedPool.Username,
                    Algorithm = SelectedPool.Algorithm,
                    Name      = string.IsNullOrEmpty(SelectedPool.Name) ? SelectedPool.URL : SelectedPool.Name,
                    Website   = SelectedPool.Website
                },
            };

            poolVM.UpdatePoolList = SavePools;
            poolVM.UpdateCoinType();
            poolVM.SelectedAlgo           = Algorithms.Where(x => x.ID == Utils.MigrateAlgorithm(SelectedPool.Algorithm)).FirstOrDefault();
            poolSettingWindow.DataContext = poolVM;
            poolSettingWindow.ShowDialog();
        }
        private void AddPool(string obj)
        {
            var poolSettingWindow = new PoolForm();
            var poolVM            = new PoolFormViewModel()
            {
                Pool = new PoolSettingsXmlUI()
                {
                    IsRemoveable = true, IsGPUPool = true, IsCPUPool = true, CoinType = CoinTypes.OTHER
                }
            };

            poolVM.AddPool = AddPool;
            poolVM.UpdateCoinType();
            poolSettingWindow.DataContext = poolVM;
            poolSettingWindow.ShowDialog();
        }