Exemplo n.º 1
0
        public SynchronizeFeedsWizard(FeedSourceType selectedFeedSource)
        {
            //
            // Required for Windows Form Designer support
            //
            InitializeComponent();

            this.Icon = Properties.Resources.Add;

            // form location management:
            _windowSerializer = new WindowSerializer(this);
            _windowSerializer.SaveOnlyLocation  = true;
            _windowSerializer.SaveNoWindowState = true;

            // to get notified, if the inet connection state changes:
            _internetService = IoC.Resolve <IInternetService>();
            if (_internetService != null)
            {
                _internetService.InternetConnectionStateChange += OnInternetServiceInternetConnectionStateChange;
                //radioFacebookReview.Enabled = _internetService.InternetAccessAllowed && !_internetService.InternetConnectionOffline;
            }

            this.wizard.SelectedPage = this.pageStartImport;

            if (selectedFeedSource != FeedSourceType.DirectAccess && selectedFeedSource != FeedSourceType.Unknown)
            {
                this.SelectedFeedSource = selectedFeedSource;
            }
        }
Exemplo n.º 2
0
        /// <summary>
        /// Creates a new <see cref="FrmMain"/> instance.
        /// </summary>
        public FrmMain()
        {
            //
            // Required for Windows Form Designer support
            //
            InitializeComponent();

            //
            // TODO: Add any constructor code after InitializeComponent call
            //
            windowSerializer = new WindowSerializer(this);
        }
Exemplo n.º 3
0
        public MainForm(string[] args)
        {
            // Save command-line arguments for later use.
            _commandLineArgs = args;

            WindowSerializer windowSerializer = new WindowSerializer(this);

            //
            // Required for Windows Form Designer support
            //
            InitializeComponent();

            Images = new DirectoryImageCollection();
            Navigator = new ImageNavigator();

            LoadPreference();
        }
Exemplo n.º 4
0
        /// <summary>
        /// Creates a new <see cref="FrmMain"/> instance.
        /// </summary>
        public FrmMain()
        {
            //
            // Required for Windows Form Designer support
            //
            InitializeComponent();

            //
            // TODO: Add any constructor code after InitializeComponent call
            //
            windowSerializer = new WindowSerializer(this);
        }
Exemplo n.º 5
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.components = new System.ComponentModel.Container();
     System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(DialogBase));
     this.btnSubmit        = new System.Windows.Forms.Button();
     this.btnCancel        = new System.Windows.Forms.Button();
     this.horizontalEdge   = new RssBandit.WinGui.Controls.Line();
     this.toolTip          = new System.Windows.Forms.ToolTip(this.components);
     this.windowSerializer = new RssBandit.WinGui.Controls.WindowSerializer();
     this.errorProvider    = new System.Windows.Forms.ErrorProvider();
     this.helpProvider     = new System.Windows.Forms.HelpProvider();
     this.SuspendLayout();
     //
     // btnSubmit
     //
     this.btnSubmit.Anchor       = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.btnSubmit.DialogResult = System.Windows.Forms.DialogResult.OK;
     this.btnSubmit.FlatStyle    = System.Windows.Forms.FlatStyle.System;
     this.btnSubmit.ImeMode      = System.Windows.Forms.ImeMode.NoControl;
     this.btnSubmit.Location     = new System.Drawing.Point(185, 218);
     this.btnSubmit.Name         = "btnSubmit";
     this.btnSubmit.Size         = new System.Drawing.Size(90, 25);
     this.btnSubmit.TabIndex     = 100;
     this.btnSubmit.Text         = "OK";
     //
     // btnCancel
     //
     this.btnCancel.Anchor           = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.btnCancel.CausesValidation = false;
     this.btnCancel.DialogResult     = System.Windows.Forms.DialogResult.Cancel;
     this.btnCancel.FlatStyle        = System.Windows.Forms.FlatStyle.System;
     this.btnCancel.ImeMode          = System.Windows.Forms.ImeMode.NoControl;
     this.btnCancel.Location         = new System.Drawing.Point(285, 218);
     this.btnCancel.Name             = "btnCancel";
     this.btnCancel.Size             = new System.Drawing.Size(90, 25);
     this.btnCancel.TabIndex         = 101;
     this.btnCancel.Text             = "Cancel";
     //
     // horizontalEdge
     //
     this.horizontalEdge.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)
                                                                        | System.Windows.Forms.AnchorStyles.Right)));
     this.horizontalEdge.Beveled     = true;
     this.horizontalEdge.Highlight   = System.Drawing.SystemColors.ControlLightLight;
     this.horizontalEdge.ImeMode     = System.Windows.Forms.ImeMode.NoControl;
     this.horizontalEdge.Location    = new System.Drawing.Point(-1, 206);
     this.horizontalEdge.Name        = "horizontalEdge";
     this.horizontalEdge.Orientation = System.Windows.Forms.Orientation.Horizontal;
     this.horizontalEdge.Shadow      = System.Drawing.SystemColors.ControlDark;
     this.horizontalEdge.Size        = new System.Drawing.Size(397, 2);
     this.horizontalEdge.TabIndex    = 7;
     this.horizontalEdge.TabStop     = false;
     //
     // windowSerializer
     //
     this.windowSerializer.Form = this;
     this.windowSerializer.SaveNoWindowState = true;
     //
     // errorProvider
     //
     this.errorProvider.ContainerControl = this;
     //
     // helpProvider
     //
     this.helpProvider.HelpNamespace = "BanditHelp.chm";
     //
     // DialogBase
     //
     this.AcceptButton      = this.btnSubmit;
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 14);
     this.CancelButton      = this.btnCancel;
     this.ClientSize        = new System.Drawing.Size(387, 251);
     this.Controls.Add(this.horizontalEdge);
     this.Controls.Add(this.btnCancel);
     this.Controls.Add(this.btnSubmit);
     this.Font          = new System.Drawing.Font("Tahoma", 8.25F);
     this.Icon          = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
     this.MaximizeBox   = false;
     this.MinimizeBox   = false;
     this.Name          = "DialogBase";
     this.ShowInTaskbar = false;
     this.SizeGripStyle = System.Windows.Forms.SizeGripStyle.Hide;
     this.ResumeLayout(false);
 }