Пример #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="EditNodeForm"/> class. 
 /// </summary>
 /// <param name="provider">
 /// The provider. 
 /// </param>
 /// <param name="oldVertexId">
 /// The old vertex id. 
 /// </param>
 public EditNodeForm(Provider.Provider provider, string oldVertexId)
 {
     this.InitializeComponent();
     this.provider = provider;
     this.oldVertexId = oldVertexId;
     this.FillForm();
 }
Пример #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="BatchProcess"/> class.
 /// </summary>
 /// <param name="provider">
 /// The provider.
 /// </param>
 public BatchProcess(Provider.Provider provider)
 {
     this.InitializeComponent();
     this.PrepareDialog();
     this.InitializeEditBox();
     this.provider = provider;
     this.IsAdd = false;
 }
Пример #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="AddTree"/> class.
 /// </summary>
 /// <param name="provider">
 /// The provider. 
 /// </param>
 /// <param name="fromFile">
 /// The from file. 
 /// </param>
 public AddTree(Provider.Provider provider, bool fromFile)
 {
     this.InitializeComponent();
     this.InitializeAdd();
     this.provider = provider;
     this.fromFile = fromFile;
     this.FillTrees();
     this.SetTitleLabel();
 }
Пример #4
0
        private void Search_Click(object sender, RoutedEventArgs e)
        {
            Provider.Provider provider = Provider.Provider.GetProviderByName(Utils.Settings.provider);

            foreach (Window window in Application.Current.Windows)
            {
                if (window.GetType() == typeof(MainWindow))
                {
                    (window as MainWindow).MainContentControl.Content = new AnimeListView(provider.Search(aniname.Text));
                }
            }
        }
Пример #5
0
        public DataAccessLayer(SourceType dataType, string targetFile)
        {
            if (string.IsNullOrWhiteSpace(nameof(targetFile)))
            {
                throw new ArgumentException(nameof(targetFile));
            }

            _provider       = new Provider.Provider();
            _dataType       = dataType;
            _targetFile     = targetFile;
            _libraryDataSet = _provider.GetAllData(dataType, targetFile);
        }
Пример #6
0
        private void Button_Click(object sender, RoutedEventArgs e)
        {
            Item item = (Item)this.animes.SelectedItem;

            Provider.Provider provider = Provider.Provider.GetProviderByName(Settings.provider);

            foreach (Window window in Application.Current.Windows)
            {
                if (window.GetType() == typeof(MainWindow))
                {
                    (window as MainWindow).MainContentControl.Content = new DownloadView(provider.GetEpisodes(
                                                                                             new Anime(item.Title, item.URL, item.Id)));
                }
            }
        }
Пример #7
0
        //public Provider.ProviderAffiliation ProviderAffilation { get { return application.ProviderAffiliationGet (providerAffiliationId, true); } }

        //public Provider.Provider PcpAffiliateProvider { get { return ((ProviderAffilation != null) ? ProviderAffilation.AffiliateProvider : null); } }

        #endregion


        #region Property Data Binding Callbacks

        private void PcpProviderGetCompleted(Object sender, Server.Application.ProviderGetCompletedEventArgs e)
        {
            serverRequests.Remove("PcpProvider");

            GlobalProgressBarHide("PcpProvider");

            if ((!e.Cancelled) && (e.Error == null) && (e.Result != null))
            {
                pcpProvider = new Provider.Provider(Application, e.Result);

                NotifyPropertyChanged("Name");

                NotifyPropertyChanged("PcpProvider");
            }

            return;
        }
Пример #8
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Create"/> class.
 /// </summary>
 /// <param name="provider">
 /// The provider.
 /// </param>
 /// <param name="mode">
 /// The mode.
 /// </param>
 /// <param name="graphMode">
 /// The graph mode.
 /// </param>
 public Create(Provider.Provider provider, int mode, int graphMode)
 {
     this.InitializeComponent();
     this.provider = provider;
     this.Mode = mode;
     this.GraphMode = graphMode;
     this.FillSelectedTreeComboBox();
     switch (this.GraphMode)
     {
         case 0:
             // do nothing
             break;
         case 1:
             this.InitializeTreeView();
             break;
         case 2:
             this.InitializeGraph();
             break;
         case 3:
             this.InitializeGleeGraph();
             break;
     }
 }
Пример #9
0
 /// <summary>
 /// Initializes a new instance of the <see cref="GraphSummary"/> class. 
 /// </summary>
 /// <param name="provider">
 /// The provider.
 /// </param>
 public GraphSummary(Provider.Provider provider)
 {
     this.InitializeComponent();
     this.provider = provider;
     this.PrepareDialog();
 }
Пример #10
0
 /// <summary>
 /// Initializes a new instance of the <see cref="OpenDialog"/> class.
 /// </summary>
 /// <param name="provider">
 /// The provider.
 /// </param>
 /// <param name="multiselect">
 /// The multiselect.
 /// </param>
 public OpenDialog(Provider.Provider provider, bool multiselect)
 {
     this.InitializeComponent();
     this.provider = provider;
     this.multiselect = multiselect;
 }
Пример #11
0
 /// <summary>
 /// Initializes a new instance of the <see cref="OpenDialog"/> class.
 /// </summary>
 /// <param name="provider">
 /// The provider.
 /// </param>
 public OpenDialog(Provider.Provider provider)
 {
     this.InitializeComponent();
     this.provider = provider;
     this.multiselect = false;
 }
Пример #12
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ResultsSet"/> class.
 /// </summary>
 /// <param name="provider">
 /// The provider.
 /// </param>
 public ResultsSet(Provider.Provider provider)
 {
     this.InitializeComponent();
     this.provider = provider;
     this.dataGridViewResultsSet.ColumnHeadersBorderStyle = ProperColumnHeadersBorderStyle;
 }
Пример #13
0
 /// <summary>
 /// Initializes a new instance of the <see cref="AddEdgeForm"/> class.
 /// </summary>
 /// <param name="provider">
 /// The provider.
 /// </param>
 public AddEdgeForm(Provider.Provider provider)
 {
     this.InitializeComponent();
     this.provider = provider;
     this.FillSourceVertexIdComboBox();
 }
Пример #14
0
 /// <summary>
 /// Initializes a new instance of the <see cref="AddTree"/> class.
 /// </summary>
 /// <param name="provider">
 /// The provider. 
 /// </param>
 /// <param name="fromFile">
 /// The from file. 
 /// </param>
 /// <param name="mode">
 /// The mode. 
 /// </param>
 /// <param name="group">
 /// The group. 
 /// </param>
 public AddTree(Provider.Provider provider, bool fromFile, int mode, bool group)
 {
     this.InitializeComponent();
     this.provider = provider;
     this.fromFile = fromFile;
     this.mode = mode;
     this.@group = @group;
     this.FillTrees();
     this.SetTitleLabel();
 }