Пример #1
0
		public GettingThirdPointFor2PointCalibration(WizardControl container, string pageDescription, Vector3 probeStartPosition, string instructionsText, ProbePosition probePosition)
			: base(pageDescription, instructionsText)
		{
			this.probeStartPosition = probeStartPosition;
			this.probePosition = probePosition;
			this.container = container;
		}
Пример #2
0
		/// <summary>
		/// Fires the CloseFromNextEvent
		/// </summary>
		/// <param name="wiz">Sender</param>
		public int OnCloseFromNext(WizardControl wiz)
		{	
			//Event args thinks that the next pgae will be the one before this one
			PageEventArgs e = new PageEventArgs(wiz.PageIndex +1, wiz.Pages);
			//Tell anybody who listens
			if (CloseFromNext != null)
				CloseFromNext(wiz, e);
			//And then tell whomever called me what the prefered page is
			return e.PageIndex;
		}
		public LevelWizard3Point(LevelWizardBase.RuningState runningState)
			: base(500, 370, 9)
		{
			string printLevelWizardTitle = LocalizedString.Get("MatterControl");
			string printLevelWizardTitleFull = LocalizedString.Get("Print Leveling Wizard");
			Title = string.Format("{0} - {1}", printLevelWizardTitle, printLevelWizardTitleFull);
			List<ProbePosition> probePositions = new List<ProbePosition>(3);
			probePositions.Add(new ProbePosition());
			probePositions.Add(new ProbePosition());
			probePositions.Add(new ProbePosition());

			printLevelWizard = new WizardControl();
			AddChild(printLevelWizard);

			if (runningState == LevelWizardBase.RuningState.InitialStartupCalibration)
			{
				string requiredPageInstructions = "{0}\n\n{1}".FormatWith(requiredPageInstructions1, requiredPageInstructions2);
				printLevelWizard.AddPage(new FirstPageInstructions(initialPrinterSetupStepText, requiredPageInstructions));
			}

			string pageOneInstructions = string.Format("{0}\n\n\t• {1}\n\t• {2}\n\t• {3}\n\n{4}\n\n{5}\n\n{6}", pageOneInstructionsTextOne, pageOneInstructionsTextTwo, pageOneInstructionsTextThree, pageOneInstructionsTextFour, pageOneInstructionsText5, pageOneInstructionsText6, pageOneInstructionsText7);
			printLevelWizard.AddPage(new FirstPageInstructions(pageOneStepText, pageOneInstructions));

			string homingPageInstructions = string.Format("{0}:\n\n\t• {1}\n\n{2}", homingPageInstructionsTextOne, homingPageInstructionsTextTwo, homingPageInstructionsTextThree);
			printLevelWizard.AddPage(new HomePrinterPage(homingPageStepText, homingPageInstructions));

			string positionLabel = LocalizedString.Get("Position");
			string lowPrecisionLabel = LocalizedString.Get("Low Precision");
			string medPrecisionLabel = LocalizedString.Get("Medium Precision");
			string highPrecisionLabel = LocalizedString.Get("High Precision");

			bool allowLessThanZero = ActiveSliceSettings.Instance.GetValue<bool>(SettingsKey.z_can_be_negative);

			Vector2 probeBackCenter = LevelWizardBase.GetPrintLevelPositionToSample(0);
			printLevelWizard.AddPage(new GetCoarseBedHeight(printLevelWizard, new Vector3(probeBackCenter, 10), string.Format("{0} {1} 1 - {2}", GetStepString(), positionLabel, lowPrecisionLabel), probePositions, 0, allowLessThanZero));
			printLevelWizard.AddPage(new GetFineBedHeight(string.Format("{0} {1} 1 - {2}", GetStepString(), positionLabel, medPrecisionLabel), probePositions, 0, allowLessThanZero));
			printLevelWizard.AddPage(new GetUltraFineBedHeight(string.Format("{0} {1} 1 - {2}", GetStepString(), positionLabel, highPrecisionLabel), probePositions, 0, allowLessThanZero));

			Vector2 probeFrontLeft = LevelWizardBase.GetPrintLevelPositionToSample(1);
			printLevelWizard.AddPage(new GetCoarseBedHeight(printLevelWizard, new Vector3(probeFrontLeft, 10), string.Format("{0} {1} 2 - {2}", GetStepString(), positionLabel, lowPrecisionLabel), probePositions, 1, allowLessThanZero));
			printLevelWizard.AddPage(new GetFineBedHeight(string.Format("{0} {1} 2 - {2}", GetStepString(), positionLabel, medPrecisionLabel), probePositions, 1, allowLessThanZero));
			printLevelWizard.AddPage(new GetUltraFineBedHeight(string.Format("{0} {1} 2 - {2}", GetStepString(), positionLabel, highPrecisionLabel), probePositions, 1, allowLessThanZero));

			Vector2 probeFrontRight = LevelWizardBase.GetPrintLevelPositionToSample(2);
			printLevelWizard.AddPage(new GetCoarseBedHeight(printLevelWizard, new Vector3(probeFrontRight, 10), string.Format("{0} {1} 3 - {2}", GetStepString(), positionLabel, lowPrecisionLabel), probePositions, 2, allowLessThanZero));
			printLevelWizard.AddPage(new GetFineBedHeight(string.Format("{0} {1} 3 - {2}", GetStepString(), positionLabel, medPrecisionLabel), probePositions,2, allowLessThanZero));
			printLevelWizard.AddPage(new GetUltraFineBedHeight(string.Format("{0} {1} 3 - {2}", GetStepString(), positionLabel, highPrecisionLabel), probePositions,2, allowLessThanZero));

			string doneInstructions = string.Format("{0}\n\n\t• {1}\n\n{2}", doneInstructionsText, doneInstructionsTextTwo, doneInstructionsTextThree);
			printLevelWizard.AddPage(new LastPage3PointInstructions("Done".Localize(), doneInstructions, probePositions));
		}
Пример #4
0
		public LevelWizard2Point(LevelWizardBase.RuningState runningState)
			: base(500, 370, 6)
		{
			string printLevelWizardTitle = LocalizedString.Get("MatterControl");
			string printLevelWizardTitleFull = LocalizedString.Get("Print Leveling Wizard");
			Title = string.Format("{0} - {1}", printLevelWizardTitle, printLevelWizardTitleFull);
			ProbePosition[] probePositions = new ProbePosition[5];
			probePositions[0] = new ProbePosition();
			probePositions[1] = new ProbePosition();
			probePositions[2] = new ProbePosition();
			probePositions[3] = new ProbePosition();
			probePositions[4] = new ProbePosition();

			printLevelWizard = new WizardControl();
			AddChild(printLevelWizard);

			if (runningState == LevelWizardBase.RuningState.InitialStartupCalibration)
			{
				string requiredPageInstructions = "{0}\n\n{1}".FormatWith(requiredPageInstructions1, requiredPageInstructions2);
				printLevelWizard.AddPage(new FirstPageInstructions(initialPrinterSetupStepText, requiredPageInstructions));
			}

			string pageOneInstructions = string.Format("{0}\n\n\t• {1}\n\t• {2}\n\t• {3}\n\n{4}\n\n{5}\n\n{6}", pageOneInstructionsTextOne, pageOneInstructionsTextTwo, pageOneInstructionsTextThree, pageOneInstructionsTextFour, pageOneInstructionsText5, pageOneInstructionsText6, pageOneInstructionsText7);
			printLevelWizard.AddPage(new FirstPageInstructions(pageOneStepText, pageOneInstructions));

			string homingPageInstructions = string.Format("{0}:\n\n\t• {1}\n\n{2}", homingPageInstructionsTextOne, homingPageInstructionsTextTwo, homingPageInstructionsTextThree);
			printLevelWizard.AddPage(new HomePrinterPage(homingPageStepText, homingPageInstructions));

			string positionLabelTwo = LocalizedString.Get("Position");
			string lowPrecisionTwoLabel = LocalizedString.Get("Low Precision");
			string medPrecisionTwoLabel = LocalizedString.Get("Medium Precision");
			string highPrecisionTwoLabel = LocalizedString.Get("High Precision");
			printLevelWizard.AddPage(new GetCoarseBedHeightProbeFirst(printLevelWizard, new Vector3(probeFrontLeft, probeStartZHeight), string.Format("{0} {1} 2 - {2}", GetStepString(), positionLabelTwo, lowPrecisionTwoLabel), probePositions[0], probePositions[1], true));
			printLevelWizard.AddPage(new GetFineBedHeight(string.Format("{0} {1} 2 - {2}", GetStepString(), positionLabelTwo, medPrecisionTwoLabel), probePositions[0], true));
			printLevelWizard.AddPage(new GetUltraFineBedHeight(string.Format("{0} {1} 2 - {2}", GetStepString(), positionLabelTwo, highPrecisionTwoLabel), probePositions[0], true));

			string positionLabelThree = LocalizedString.Get("Position");
			string lowPrecisionLabelThree = LocalizedString.Get("Low Precision");
			string medPrecisionLabelThree = LocalizedString.Get("Medium Precision");
			string highPrecisionLabelThree = LocalizedString.Get("High Precision");
			printLevelWizard.AddPage(new GetCoarseBedHeightProbeFirst(printLevelWizard, new Vector3(probeFrontRight, probeStartZHeight), string.Format("{0} {1} 3 - {2}", GetStepString(), positionLabelThree, lowPrecisionLabelThree), probePositions[2], probePositions[3], true));
			printLevelWizard.AddPage(new GetFineBedHeight(string.Format("{0} {1} 3 - {2}", GetStepString(), positionLabelThree, medPrecisionLabelThree), probePositions[2], true));
			printLevelWizard.AddPage(new GetUltraFineBedHeight(string.Format("{0} {1} 3 - {2}", GetStepString(), positionLabelThree, highPrecisionLabelThree), probePositions[2], true));

			string retrievingFinalPosition = "Getting the third point.";
			printLevelWizard.AddPage(new GettingThirdPointFor2PointCalibration(printLevelWizard, "Collecting Data", new Vector3(probeBackLeft, probeStartZHeight), retrievingFinalPosition, probePositions[4]));

			string doneInstructions = string.Format("{0}\n\n\t• {1}\n\n{2}", doneInstructionsText, doneInstructionsTextTwo, doneInstructionsTextThree);
			printLevelWizard.AddPage(new LastPage2PointInstructions("Done".Localize(), doneInstructions, probePositions));
		}
		public LevelWizard7PointRadial(LevelWizardBase.RuningState runningState)
			: base(500, 370, 21)
		{
			bool allowLessThanZero = ActiveSliceSettings.Instance.GetActiveValue("z_can_be_negative") == "1";
			string printLevelWizardTitle = LocalizedString.Get("MatterControl");
			string printLevelWizardTitleFull = LocalizedString.Get("Print Leveling Wizard");
			Title = string.Format("{0} - {1}", printLevelWizardTitle, printLevelWizardTitleFull);
			ProbePosition[] probePositions = new ProbePosition[7];
			probePositions[0] = new ProbePosition();
			probePositions[1] = new ProbePosition();
			probePositions[2] = new ProbePosition();
			probePositions[3] = new ProbePosition();
			probePositions[4] = new ProbePosition();
			probePositions[5] = new ProbePosition();
			probePositions[6] = new ProbePosition();

			printLevelWizard = new WizardControl();
			AddChild(printLevelWizard);

			if (runningState == LevelWizardBase.RuningState.InitialStartupCalibration)
			{
				string requiredPageInstructions = "{0}\n\n{1}".FormatWith(requiredPageInstructions1, requiredPageInstructions2);
				printLevelWizard.AddPage(new FirstPageInstructions(initialPrinterSetupStepText, requiredPageInstructions));
			}

			string pageOneInstructions = string.Format("{0}\n\n\t• {1}\n\t• {2}\n\t• {3}\n\n{4}\n\n{5}\n\n{6}", pageOneInstructionsTextOne, pageOneInstructionsTextTwo, pageOneInstructionsTextThree, pageOneInstructionsTextFour, pageOneInstructionsText5, pageOneInstructionsText6, pageOneInstructionsText7);
			printLevelWizard.AddPage(new FirstPageInstructions(pageOneStepText, pageOneInstructions));

			string homingPageInstructions = string.Format("{0}:\n\n\t• {1}\n\n{2}", homingPageInstructionsTextOne, homingPageInstructionsTextTwo, homingPageInstructionsTextThree);
			printLevelWizard.AddPage(new HomePrinterPage(homingPageStepText, homingPageInstructions));

			string positionLabel = LocalizedString.Get("Position");
			string lowPrecisionLabel = LocalizedString.Get("Low Precision");
			string medPrecisionLabel = LocalizedString.Get("Medium Precision");
			string highPrecisionLabel = LocalizedString.Get("High Precision");

			double bedRadius = Math.Min(ActiveSliceSettings.Instance.BedSize.x, ActiveSliceSettings.Instance.BedSize.y) / 2;

			double startProbeHeight = 5;
			for (int i = 0; i < 7; i++)
			{
				Vector2 probePosition = GetPrintLevelPositionToSample(i, bedRadius);
				printLevelWizard.AddPage(new GetCoarseBedHeight(printLevelWizard, new Vector3(probePosition, startProbeHeight), string.Format("{0} {1} {2} - {3}", GetStepString(), positionLabel, i + 1, lowPrecisionLabel), probePositions[i], allowLessThanZero));
				printLevelWizard.AddPage(new GetFineBedHeight(string.Format("{0} {1} {2} - {3}", GetStepString(), positionLabel, i + 1, medPrecisionLabel), probePositions[i], allowLessThanZero));
				printLevelWizard.AddPage(new GetUltraFineBedHeight(string.Format("{0} {1} {2} - {3}", GetStepString(), positionLabel, i + 1, highPrecisionLabel), probePositions[i], allowLessThanZero));
			}

			string doneInstructions = string.Format("{0}\n\n\t• {1}\n\n{2}", doneInstructionsText, doneInstructionsTextTwo, doneInstructionsTextThree);
			printLevelWizard.AddPage(new LastPageRadialInstructions("Done".Localize(), doneInstructions, probePositions));
		}
Пример #6
0
        public override object EditValue(ITypeDescriptorContext context, IServiceProvider provider, object value)
        {
            GenericCollection <WizardStep> steps = (GenericCollection <WizardStep>)value;
            WizardControl owner     = (WizardControl)steps.Owner;
            IDesignerHost container = (IDesignerHost)context.Container;
            int           count     = steps.Count;
            object        obj2      = base.EditValue(context, provider, value);

            if (steps.Count >= count)
            {
                return(obj2);
            }
            SelectWizard(owner, container);
            return(obj2);
        }
        /// <summary>
        /// EnableButtons sets the values on the buttons based
        /// on the results of finding the hardware.
        /// </summary>
        /// <param name="wizard">The Wizard on which to enable buttons</param>
        private void EnableButtons(WizardControl wizard)
        {
            //Enable the Back button always
            this.BackEnabled = true;

            //If the labels have been filled with real values,
            //enable the Next button
            if (this.MirrorName != Strings.DeviceNotFound &&
                this.PotentiostatName != Strings.DeviceNotFound &&
                this.LaserName != Strings.DeviceNotFound)
            {
                this.NextEnabled = true;
            }

            //Set the focus on the WizardPage
            this._view.Focus();
        }
Пример #8
0
        ///<summary>
        ///Initializes the designer with the specified component.
        ///</summary>
        ///
        ///<param name="component">The <see cref="T:System.ComponentModel.IComponent"></see> to associate with the designer. </param>
        public override void Initialize(IComponent component)
        {
            base.Initialize(component);
            this.AutoResizeHandles = true;
            ISelectionService service = (ISelectionService)this.GetService(typeof(ISelectionService));

            if (service != null)
            {
                service.SelectionChanged += this.OnSelectionChanged;
            }
            WizardControl control = (WizardControl)this.Control;

            this.wizardDesignerActionList = new WizardDesignerActionList(control);
            this.actionListCollection.Add(this.wizardDesignerActionList);
            control.CurrentStepIndexChanged += this.CurrentStepIndexChanged;
            control.WizardSteps.Inserted    += this.RefreshComponent;
        }
Пример #9
0
        /// <summary>
        /// CheckPotentiostat looks for the type of
        /// potentiostat in the background thread.
        /// </summary>
        /// <param name="parameter">The View that is being modified</param>
        private void CheckPotentiostat(Object parameter)
        {
            //Unpack the Parameters
            WizardControl wizard = parameter as WizardControl;

            //Set the button Enable states
            wizard.Dispatcher.Invoke(new SetButtonsEnabledDelegate(this.SetButtonsEnabled), false);

            //Set the Cursor on the WizardControl
            wizard.Dispatcher.Invoke(new ChangeCursorDelegate(this.ChangeCursor), Cursors.Wait);

            //Create the Hardware objects
            IPotentiostat potstat = SHArKClassFactory.CreateIPotentiostat();

            //If the Potentiostat could be created, check the
            //Name and see if it is a SHArK box.  Otherwise,
            //popup an error message.
            if (potstat != null)
            {
                //Set the Visibility on the TextBlock if this is
                //a SHArK box
                if (potstat.Name.ToUpper().IndexOf("SHARK") > 0)
                {
                    wizard.Dispatcher.Invoke(new SetTextBlockVisibilityDelegate(this.SetTextBlockVisibility), Visibility.Visible);
                }

                //Set the MaxCurrentValue property in the NewSpectrumInfo
                this.NewSpectrumInfo.MaxCurrentValue = potstat.MaximumCurrent;

                //Clean up the potentiostat
                potstat.Dispose();
            }
            else
            {
                wizard.Dispatcher.Invoke(new ShowErrorDelegate(this.ShowError), Strings.DeviceNotFound);
            }

            //Set the Cursor on the WizardControl
            wizard.Dispatcher.Invoke(new ChangeCursorDelegate(this.ChangeCursor), Cursors.Arrow);

            //Enable the buttons as necessary
            wizard.Dispatcher.Invoke(new SetButtonsEnabledDelegate(this.SetButtonsEnabled), true);

            //Set the flag that the Hardware has been searched for
            this._hardwareSearched = true;
        }
Пример #10
0
        /// <summary>
        /// view_Selected spins off a thread to get the Potentiostat
        /// type and show a message if necessary.
        /// </summary>
        /// <param name="sender">The WizardPage that is being selected</param>
        /// <param name="e">The EventArgs sent by the System</param>
        void view_Selected(object sender, RoutedEventArgs e)
        {
            //If the potentiostat has already been found,
            //don't do it again
            if (this._hardwareSearched == true)
            {
                return;
            }

            //Get the Wizard from the UnityContainer
            WizardControl wizard = this._unity.Resolve <WizardControl>(Strings.NewSpectrumWizardName);

            //Start a thread to do the processing
            ParameterizedThreadStart pts = new ParameterizedThreadStart(this.CheckPotentiostat);
            Thread t = new Thread(pts);

            t.Start(wizard);
        }
        /// <summary>
        /// view_Selected starts a thread that finds the installed
        /// hardware and displays it to the user.
        /// </summary>
        /// <param name="sender">The WizardPage that is Selected</param>
        /// <param name="e">The EventArgs sent by the System</param>
        void view_Selected(object sender, System.Windows.RoutedEventArgs e)
        {
            //If the Page has already been shown once, do not
            //search for the Hardware again
            if (this._hardwareSearched == true)
            {
                return;
            }

            //Get the WizardControl from the UnityContainer
            WizardControl wizard = this._unity.Resolve <WizardControl>(Strings.HardwareWizardName);

            //Start a thread to do the processing
            ParameterizedThreadStart pts = new ParameterizedThreadStart(this.FindHardware);
            Thread t = new Thread(pts);

            t.Start(wizard);
        }
Пример #12
0
 private void SetupControl(WizardControl p)
 {
     if (myParent != null)
     {
         var pages = myParent.Pages;
         pages.ItemAdded   -= pages_Changed;
         pages.ItemChanged -= pages_Changed;
         pages.ItemDeleted -= pages_Changed;
     }
     myParent = p;
     if (myParent != null)
     {
         var pages = myParent.Pages;
         pages.ItemAdded   += pages_Changed;
         pages.ItemChanged += pages_Changed;
         pages.ItemDeleted += pages_Changed;
     }
     Refresh();
 }
Пример #13
0
        private void OnSelectionChanged(object sender, EventArgs e)
        {
            ISelectionService service = (ISelectionService)this.GetService(typeof(ISelectionService));

            if (service == null)
            {
                return;
            }
            this.isSelected = false;
            ICollection selectedComponents = service.GetSelectedComponents();

            if (selectedComponents == null)
            {
                return;
            }
            WizardControl control    = (WizardControl)this.Control;
            IEnumerator   enumerator = selectedComponents.GetEnumerator();

            if (enumerator == null)
            {
                return;
            }
            try
            {
                while (enumerator.MoveNext())
                {
                    object current = enumerator.Current;
                    if (current == control)
                    {
                        this.isSelected = true;
                        break;
                    }
                }
            }
            finally
            {
                IDisposable disposable = enumerator as IDisposable;
                if (disposable != null)
                {
                    disposable.Dispose();
                }
            }
        }
Пример #14
0
        internal void InsertPageIntoWizard(bool add)
        {
            IDesignerHost           h   = this.DesignerHost;
            IComponentChangeService c   = this.ComponentChangeService;
            WizardControl           wiz = this.Control as WizardControl;

            if (h == null || c == null)
            {
                throw new ArgumentNullException("Both IDesignerHost and IComponentChangeService arguments cannot be null.");
            }

            DesignerTransaction dt = null;

            try
            {
                dt = h.CreateTransaction("Insert Wizard Page");
                WizardPage       page   = (WizardPage)h.CreateComponent(typeof(WizardPage));
                MemberDescriptor member = TypeDescriptor.GetProperties(wiz)["Pages"];
                base.RaiseComponentChanging(member);
                //c.OnComponentChanging(wiz, null);

                //Add a new page to the collection
                if (wiz.Pages.Count == 0 || add)
                {
                    wiz.Pages.Add(page);
                }
                else
                {
                    wiz.Pages.Insert(wiz.SelectedPageIndex, page);
                }

                //c.OnComponentChanged(wiz, null, null, null);
                base.RaiseComponentChanged(member, null, null);
            }
            finally
            {
                if (dt != null)
                {
                    dt.Commit();
                }
            }
            RefreshDesigner();
        }
Пример #15
0
        private async void wcServerSettings_SelectedPageChanged(object sender, EventArgs e)
        {
            WizardControl wc = (sender as WizardControl);

            if (wc != null)
            {
                switch (wc.SelectedPage.Name)
                {
                case "wpSqlServerSettings":
                    await PopulateSqlServers();

                    break;

                case "wpMySqlSettings":
                    await PopulateMySqlServers();

                    break;
                }
            }
        }
Пример #16
0
        ///<summary>
        ///Called when a drag-and-drop operation enters the control designer view.
        ///</summary>
        ///
        ///<param name="de">A <see cref="T:System.Windows.Forms.DragEventArgs"></see> that provides data for the event. </param>
        protected override void OnDragEnter(DragEventArgs de)
        {
            WizardControl control = (WizardControl)this.Control;

            if (control.WizardSteps.Count <= 0)
            {
                base.OnDragEnter(de);
                return;
            }
            WizardStep step            = control.WizardSteps[control.CurrentStepIndex];
            Point      pt              = step.PointToClient(new Point(de.X, de.Y));
            Rectangle  clientRectangle = step.ClientRectangle;

            if (!clientRectangle.Contains(pt))
            {
                base.OnDragEnter(de);
                return;
            }
            this.GetWizardStepDesigner(step).OnDragEnterInternal(de);
            this.forwardOnDrag = true;
        }
Пример #17
0
        ///<summary>
        ///Called when a drag-and-drop object is dragged over the control designer view.
        ///</summary>
        ///
        ///<param name="de">A <see cref="T:System.Windows.Forms.DragEventArgs"></see> that provides data for the event. </param>
        protected override void OnDragOver(DragEventArgs de)
        {
            WizardControl control = this.Control as WizardControl;

            if (control == null || control.WizardSteps.Count <= 0)
            {
                de.Effect = DragDropEffects.None;
                return;
            }
            WizardStep         step = control.WizardSteps[control.CurrentStepIndex];
            Point              pt   = step.PointToClient(new Point(de.X, de.Y));
            WizardStepDesigner wizardStepDesigner = this.GetWizardStepDesigner(step);
            Rectangle          clientRectangle    = step.ClientRectangle;

            if (!clientRectangle.Contains(pt))
            {
                if (!this.forwardOnDrag)
                {
                    de.Effect = DragDropEffects.None;
                    return;
                }
                this.forwardOnDrag = false;
                wizardStepDesigner.OnDragLeaveInternal(EventArgs.Empty);
                base.OnDragEnter(de);
                return;
            }
            else
            {
                if (!this.forwardOnDrag)
                {
                    base.OnDragLeave(EventArgs.Empty);
                    wizardStepDesigner.OnDragEnterInternal(de);
                    this.forwardOnDrag = true;
                    return;
                }
                wizardStepDesigner.OnDragOverInternal(de);
                return;
            }
        }
Пример #18
0
        public void ShowWizardDialog(IDataObject selected)
        {
            if (selected == null)
            {
                return;
            }

            var title = "Мастер создания элемента по шаблону";

            if (selected.Type.IsProject)
            {
                title = "Мастер создания структуры по шаблону";
            }

            //Создадим контейнер для сбора информации о выбранных параметрах
            _creationInfo = new CreationInfo
            {
                Parent = selected,
            };

            var view = new WizardControl();

            FillWizardPages(view);

            var dialog = new PureWindow
            {
                Content = view,
                Title   = title,
                WindowStartupLocation = WindowStartupLocation.CenterScreen,
                Width         = 800,
                Height        = 600,
                ShowInTaskbar = true,
                Uid           = "ProjectCloneWizardWindow"
            };

            dialog.Closing += DialogOnClosing;
            dialog.Show();
        }
Пример #19
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(WizardDialog));
     this.wizardControl = new Crownwood.Magic.Controls.WizardControl();
     this.SuspendLayout();
     //
     // wizardControl
     //
     this.wizardControl.Dock                       = System.Windows.Forms.DockStyle.Fill;
     this.wizardControl.Name                       = "wizardControl";
     this.wizardControl.Picture                    = ((System.Drawing.Bitmap)(resources.GetObject("wizardControl.Picture")));
     this.wizardControl.SelectedIndex              = -1;
     this.wizardControl.Size                       = new System.Drawing.Size(416, 285);
     this.wizardControl.TabIndex                   = 0;
     this.wizardControl.CancelClick               += new System.EventHandler(this.OnCancelClick);
     this.wizardControl.CloseClick                += new System.EventHandler(this.OnCloseClick);
     this.wizardControl.NextClick                 += new System.ComponentModel.CancelEventHandler(this.OnNextClick);
     this.wizardControl.FinishClick               += new System.EventHandler(this.OnFinishClick);
     this.wizardControl.WizardPageEnter           += new Crownwood.Magic.Controls.WizardControl.WizardPageHandler(this.OnWizardPageEnter);
     this.wizardControl.BackClick                 += new System.ComponentModel.CancelEventHandler(this.OnBackClick);
     this.wizardControl.HelpClick                 += new System.EventHandler(this.OnHelpClick);
     this.wizardControl.WizardPageLeave           += new Crownwood.Magic.Controls.WizardControl.WizardPageHandler(this.OnWizardPageLeave);
     this.wizardControl.WizardCaptionTitleChanged += new System.EventHandler(this.OnWizardCaptionTitleChanged);
     this.wizardControl.SelectionChanged          += new System.EventHandler(this.OnSelectionChanged);
     this.wizardControl.UpdateClick               += new System.EventHandler(this.OnUpdateClick);
     //
     // WizardDialog
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.ClientSize        = new System.Drawing.Size(416, 285);
     this.Controls.AddRange(new System.Windows.Forms.Control[] {
         this.wizardControl
     });
     this.Name = "WizardDialog";
     this.Text = "Wizard Dialog";
     this.ResumeLayout(false);
 }
Пример #20
0
        private WizardStepDesigner GetDesigner()
        {
            WizardControl      control   = this.Control as WizardControl;
            WizardStep         component = null;
            IDesignerHost      service   = null;
            WizardStepDesigner designer  = null;

            if (control != null && control.WizardSteps.Count >= 0)
            {
                component = control.WizardSteps[control.CurrentStepIndex];
                service   = (IDesignerHost)this.GetService(typeof(IDesignerHost));
                designer  = null;
            }
            if (service == null)
            {
                return(designer);
            }
            if (component == null)
            {
                return(designer);
            }
            designer = (WizardStepDesigner)service.GetDesigner(component);
            return(designer);
        }
 public MyWizardViewInfo(WizardControl control)
     : base(control)
 {
 }
Пример #22
0
        public void OpenDialogAddTRanslusentElementToLibrary(TranslusentElement selectedTranslusentElement)
        {
            if (selectedTranslusentElement != null)
                if (selectedTranslusentElement.U > 0)
                {

                    //new SectionLibrariesView()
                    //               {
                    //                   ViewModel = new SectionLibrariesListAddSectionViewModel() { U = selectedTranslusentElement.U }
                    //               }

                    var sharedViewModel = new SectionLibrariesListAddSectionViewModel() { U = selectedTranslusentElement.U };
                    var wizard = new WizardControl();
                    wizard.manager.Add(new WizardStep() { Content = new SectionLibrariesView() { ViewModel = sharedViewModel }, StepIndex = 1, StepHeaderText = "Επιλεξτε Βιβλιοθήκη", StepName = "LibrarySelectionStep" });
                    wizard.manager.Add(new WizardStep() { Content = new SectionNameView() { DataContext = sharedViewModel }, StepIndex = 2, StepHeaderText = "Επιλεξτε Ονομα Διατομής", StepName = "SectionSelectionStep" });

                    var window = OpenWindow(wizard);
                }
        }
Пример #23
0
 public GetCoarseBedHeight(WizardControl container, Vector3 probeStartPosition, string pageDescription, List <ProbePosition> probePositions, int probePositionsBeingEditedIndex)
     : base(pageDescription, setZHeightCoarseInstruction1, setZHeightCoarseInstruction2, 1, probePositions, probePositionsBeingEditedIndex)
 {
     this.container          = container;
     this.probeStartPosition = probeStartPosition;
 }
Пример #24
0
        public static void ChangeCaptionButtonWizardControl(string parent_name, string language, WizardControl wizard_control)
        {
            string result = CaptionEngine.GetControlCaption(parent_name, wizard_control.Name, BaseConstant.WIZARD_CONTROL, language);

            wizard_control.Text = CaptionEngine.GetControlCaption(parent_name, wizard_control.Name, BaseConstant.CONTROL_TEXT, language);
            try
            {
                string[] arr = result.Split('|');
                wizard_control.NextText     = arr[0] + ">";
                wizard_control.CancelText   = arr[1];
                wizard_control.FinishText   = arr[2];
                wizard_control.PreviousText = "<" + arr[3];
            }
            catch
            {
                wizard_control.NextText     = "Next >";
                wizard_control.CancelText   = "Cancel";
                wizard_control.FinishText   = "Finish";
                wizard_control.PreviousText = "< Back";
            }
        }
Пример #25
0
 public void SetControlState(WizardControl control, bool enabled)
 {
     this.controlState[control.ToString()] = enabled;
 }
        void createItem_Click(object sender, EventArgs e)
        {
            ToolStripMenuItem item = (ToolStripMenuItem)sender;
            Type componentType     = (Type)item.Tag;

            PlatformComponent component = null;

            bool showPropertiesForm = ComponentManagementAttribute.GetTypeAttribute(componentType).RequestPreStartSetup;

            if (ComponentManagementAttribute.GetTypeAttribute(componentType).IsMandatory)
            {// Mandatory components we do not create, only show / hide.
                component = _platform.GetFirstComponentByType(componentType);
                component.UISerializationInfo.AddValue("componentVisible", true);

                platform_ActiveComponentAddedEvent(component, false);
                return;
            }

            if (componentType.IsSubclassOf(typeof(Expert)))
            {
                component          = new LocalExpertHost(UserFriendlyNameAttribute.GetTypeAttributeName(componentType), componentType);
                showPropertiesForm = showPropertiesForm || ComponentManagementAttribute.GetTypeAttribute(typeof(LocalExpertHost)).RequestPreStartSetup;
            }
            else if (componentType.IsSubclassOf(typeof(WizardControl)))
            {// Wizards are run in Hosting forms.
                ConstructorInfo info = componentType.GetConstructor(new Type[] { typeof(Platform) });

                if (info != null)
                {
                    WizardControl wizardControl = (WizardControl)info.Invoke(new object[] { _platform });
                    HostingForm   hostingForm   = new HostingForm(UserFriendlyNameAttribute.GetTypeAttributeName(componentType), wizardControl);
                    hostingForm.Icon = Resources.magic_wand1;
                    hostingForm.Show();
                    return;
                }
            }
            else if (componentType.IsSubclassOf(typeof(CommonBaseControl)))
            {// Tester/editor etc. controls have no components, they are standalone UI components.
                ConstructorInfo info = componentType.GetConstructor(new Type[] { });
                // If failed to find orderInfo, just fall trough to failed to create component (which remains null).
                if (info != null)
                {// Since this is a UI only component, just create and return.
                    CommonBaseControl testerControl = (CommonBaseControl)info.Invoke(new object[] { });
                    /*tabControl.SelectedTab = */ AddComponentControl(testerControl, true);

                    return;
                }
            }
            else
            {
                ConstructorInfo info = componentType.GetConstructor(new Type[] { });
                if (info != null)
                {
                    component = (PlatformComponent)info.Invoke(new object[] { });
                }
            }

            // ...
            if (component == null)
            {
                MessageBox.Show("Failed to create component.", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
                return;
            }

            // Set settings for component.
            if (component.SetInitialState(_platform.Settings) == false)
            {
                MessageBox.Show("Component failed to initialize from initial state.", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
                return;
            }


            if (showPropertiesForm)
            {
                // Show properties for the user to configure.
                PropertiesForm form = new PropertiesForm("Properties", component);
                if (form.ShowDialog() != DialogResult.OK)
                {
                    return;
                }
            }

            // Register to platform.
            _platform.RegisterComponent(component);
        }
Пример #27
0
        public LevelWizard3Point(LevelWizardBase.RuningState runningState)
            : base(500, 370, 9)
        {
            string printLevelWizardTitle     = "MatterControl".Localize();
            string printLevelWizardTitleFull = "Print Leveling Wizard".Localize();

            Title = string.Format("{0} - {1}", printLevelWizardTitle, printLevelWizardTitleFull);
            List <ProbePosition> probePositions = new List <ProbePosition>(3);

            probePositions.Add(new ProbePosition());
            probePositions.Add(new ProbePosition());
            probePositions.Add(new ProbePosition());

            printLevelWizard = new WizardControl();
            AddChild(printLevelWizard);

            if (runningState == LevelWizardBase.RuningState.InitialStartupCalibration)
            {
                string requiredPageInstructions = "{0}\n\n{1}".FormatWith(requiredPageInstructions1, requiredPageInstructions2);
                printLevelWizard.AddPage(new FirstPageInstructions(initialPrinterSetupStepText, requiredPageInstructions));
            }

            string pageOneInstructions = string.Format("{0}\n\n\t• {1}\n\t• {2}\n\t• {3}\n\n{4}\n\n{5}\n\n{6}", pageOneInstructionsTextOne, pageOneInstructionsTextTwo, pageOneInstructionsTextThree, pageOneInstructionsTextFour, pageOneInstructionsText5, pageOneInstructionsText6, pageOneInstructionsText7);

            printLevelWizard.AddPage(new FirstPageInstructions(pageOneStepText, pageOneInstructions));

            string homingPageInstructions = string.Format("{0}:\n\n\t• {1}\n\n{2}", homingPageInstructionsTextOne, homingPageInstructionsTextTwo, homingPageInstructionsTextThree);

            printLevelWizard.AddPage(new HomePrinterPage(homingPageStepText, homingPageInstructions));

            string positionLabel      = "Position".Localize();
            string lowPrecisionLabel  = "Low Precision".Localize();
            string medPrecisionLabel  = "Medium Precision".Localize();
            string highPrecisionLabel = "High Precision".Localize();

            bool allowLessThanZero = ActiveSliceSettings.Instance.GetValue <bool>(SettingsKey.z_can_be_negative);

            double startProbeHeight = ActiveSliceSettings.Instance.GetValue <double>(SettingsKey.print_leveling_probe_start);

            Vector2 probeBackCenter = LevelWizardBase.GetPrintLevelPositionToSample(0);

            printLevelWizard.AddPage(new GetCoarseBedHeight(printLevelWizard, new Vector3(probeBackCenter, startProbeHeight), string.Format("{0} {1} 1 - {2}", GetStepString(), positionLabel, lowPrecisionLabel), probePositions, 0, allowLessThanZero));
            printLevelWizard.AddPage(new GetFineBedHeight(string.Format("{0} {1} 1 - {2}", GetStepString(), positionLabel, medPrecisionLabel), probePositions, 0, allowLessThanZero));
            printLevelWizard.AddPage(new GetUltraFineBedHeight(string.Format("{0} {1} 1 - {2}", GetStepString(), positionLabel, highPrecisionLabel), probePositions, 0, allowLessThanZero));

            Vector2 probeFrontLeft = LevelWizardBase.GetPrintLevelPositionToSample(1);

            printLevelWizard.AddPage(new GetCoarseBedHeight(printLevelWizard, new Vector3(probeFrontLeft, startProbeHeight), string.Format("{0} {1} 2 - {2}", GetStepString(), positionLabel, lowPrecisionLabel), probePositions, 1, allowLessThanZero));
            printLevelWizard.AddPage(new GetFineBedHeight(string.Format("{0} {1} 2 - {2}", GetStepString(), positionLabel, medPrecisionLabel), probePositions, 1, allowLessThanZero));
            printLevelWizard.AddPage(new GetUltraFineBedHeight(string.Format("{0} {1} 2 - {2}", GetStepString(), positionLabel, highPrecisionLabel), probePositions, 1, allowLessThanZero));

            Vector2 probeFrontRight = LevelWizardBase.GetPrintLevelPositionToSample(2);

            printLevelWizard.AddPage(new GetCoarseBedHeight(printLevelWizard, new Vector3(probeFrontRight, startProbeHeight), string.Format("{0} {1} 3 - {2}", GetStepString(), positionLabel, lowPrecisionLabel), probePositions, 2, allowLessThanZero));
            printLevelWizard.AddPage(new GetFineBedHeight(string.Format("{0} {1} 3 - {2}", GetStepString(), positionLabel, medPrecisionLabel), probePositions, 2, allowLessThanZero));
            printLevelWizard.AddPage(new GetUltraFineBedHeight(string.Format("{0} {1} 3 - {2}", GetStepString(), positionLabel, highPrecisionLabel), probePositions, 2, allowLessThanZero));

            string doneInstructions = string.Format("{0}\n\n\t• {1}\n\n{2}", doneInstructionsText, doneInstructionsTextTwo, doneInstructionsTextThree);

            printLevelWizard.AddPage(new LastPage3PointInstructions("Done".Localize(), doneInstructions, probePositions));
        }
Пример #28
0
		public GetCoarseBedHeightProbeFirst(WizardControl container, Vector3 probeStartPosition, string pageDescription, ProbePosition whereToWriteProbePosition, ProbePosition whereToWriteSamplePosition, bool allowLessThan0)
			: base(container, probeStartPosition, pageDescription, whereToWriteProbePosition, allowLessThan0)
		{
			this.whereToWriteSamplePosition = whereToWriteSamplePosition;
		}
Пример #29
0
 public bool GetControlState(WizardControl control)
 {
     return(this.controlState[control.ToString()]);
 }
Пример #30
0
 public GetCoarseBedHeightProbeFirst(WizardControl container, Vector3 probeStartPosition, string pageDescription, ProbePosition whereToWriteProbePosition, ProbePosition whereToWriteSamplePosition, bool allowLessThan0)
     : base(container, probeStartPosition, pageDescription, whereToWriteProbePosition, allowLessThan0)
 {
     this.whereToWriteSamplePosition = whereToWriteSamplePosition;
 }
Пример #31
0
        private void InitializeComponent()
        {
            SerializableAppearanceObject appearance = new SerializableAppearanceObject();
            ComponentResourceManager     manager    = new ComponentResourceManager(typeof(xfmBaseImport));
            SerializableAppearanceObject obj3       = new SerializableAppearanceObject();
            StyleFormatCondition         condition  = new StyleFormatCondition();

            this.colStatus             = new GridColumn();
            this.wcImport              = new WizardControl();
            this.cheIsUpdate           = new CheckEdit();
            this.lcSheet               = new LayoutControl();
            this.cboSheet              = new ComboBoxEdit();
            this.layoutControlGroup1   = new LayoutControlGroup();
            this.layoutControlItem1    = new LayoutControlItem();
            this.wpSelectFile          = new WelcomeWizardPage();
            this.lbLinkFile            = new LabelControl();
            this.lbLinkFileDecription  = new LabelControl();
            this.txtFilePath           = new ButtonEdit();
            this.lbFilePathDescription = new LabelControl();
            this.wpProcessPage         = new DevExpress.XtraWizard.WizardPage();
            this.lbDataRow             = new LabelControl();
            this.lbProgressDescription = new LabelControl();
            this.mqProgress            = new MarqueeProgressBarControl();
            this.wpFinish              = new CompletionWizardPage();
            this.gcMessage             = new GridControl();
            this.gbMessage             = new GridView();
            this.colMessage            = new GridColumn();
            this.lbFix = new LinkLabel();
            this.lbFinishDescription = new LabelControl();
            this.lbMessage           = new LabelControl();
            this.wpSelectField       = new DevExpress.XtraWizard.WizardPage();
            this.gcList         = new GridControl();
            this.gbList         = new GridView();
            this.colFieldName   = new GridColumn();
            this.colSelectField = new GridColumn();
            this.repSelectField = new RepositoryItemComboBox();
            this.wcImport.BeginInit();
            this.wcImport.SuspendLayout();
            this.cheIsUpdate.Properties.BeginInit();
            this.lcSheet.BeginInit();
            this.lcSheet.SuspendLayout();
            this.cboSheet.Properties.BeginInit();
            this.layoutControlGroup1.BeginInit();
            this.layoutControlItem1.BeginInit();
            this.wpSelectFile.SuspendLayout();
            this.txtFilePath.Properties.BeginInit();
            this.wpProcessPage.SuspendLayout();
            this.mqProgress.Properties.BeginInit();
            this.wpFinish.SuspendLayout();
            this.gcMessage.BeginInit();
            this.gbMessage.BeginInit();
            this.wpSelectField.SuspendLayout();
            this.gcList.BeginInit();
            this.gbList.BeginInit();
            this.repSelectField.BeginInit();
            base.SuspendLayout();
            this.colStatus.Caption   = "Trạng th\x00e1i";
            this.colStatus.FieldName = "Status";
            this.colStatus.Name      = "colStatus";
            this.colStatus.OptionsColumn.AllowEdit = false;
            this.colStatus.OptionsColumn.ReadOnly  = true;
            this.wcImport.CancelText = "Tho\x00e1t";
            this.wcImport.Controls.Add(this.cheIsUpdate);
            this.wcImport.Controls.Add(this.lcSheet);
            this.wcImport.Controls.Add(this.wpSelectFile);
            this.wcImport.Controls.Add(this.wpProcessPage);
            this.wcImport.Controls.Add(this.wpFinish);
            this.wcImport.Controls.Add(this.wpSelectField);
            this.wcImport.FinishText = "&Ho\x00e0n Th\x00e0nh";
            this.wcImport.HelpText   = "&Trợ Gi\x00fap";
            this.wcImport.Name       = "wcImport";
            this.wcImport.NextText   = "&Tiếp Tục >";
            this.wcImport.Pages.AddRange(new BaseWizardPage[] { this.wpSelectFile, this.wpSelectField, this.wpProcessPage, this.wpFinish });
            this.wcImport.PreviousText          = "< &Trở Lại";
            this.wcImport.Text                  = "C\x00e1c bước nhập danh s\x00e1ch * từ tập tin excel";
            this.wcImport.WizardStyle           = WizardStyle.WizardAero;
            this.wcImport.SelectedPageChanged  += new WizardPageChangedEventHandler(this.wcImport_SelectedPageChanged);
            this.wcImport.NextClick            += new WizardCommandButtonClickEventHandler(this.wcImport_NextClick);
            this.cheIsUpdate.Location           = new Point(0x26, 0x131);
            this.cheIsUpdate.Name               = "cheIsUpdate";
            this.cheIsUpdate.Properties.Caption = "Cập nhật nếu tồn tại";
            this.cheIsUpdate.Size               = new Size(0x105, 0x13);
            this.cheIsUpdate.TabIndex           = 15;
            this.cheIsUpdate.Visible            = false;
            this.lcSheet.Controls.Add(this.cboSheet);
            this.lcSheet.Location  = new Point(0x138, 0x3a);
            this.lcSheet.Name      = "lcSheet";
            this.lcSheet.Root      = this.layoutControlGroup1;
            this.lcSheet.Size      = new Size(0x8e, 0x1c);
            this.lcSheet.TabIndex  = 10;
            this.lcSheet.Text      = "layoutControl1";
            this.lcSheet.Click    += new EventHandler(this.layoutControl1_Click);
            this.cboSheet.Location = new Point(0x3d, 2);
            this.cboSheet.Name     = "cboSheet";
            this.cboSheet.Properties.Buttons.AddRange(new EditorButton[] { new EditorButton(ButtonPredefines.Combo) });
            this.cboSheet.Size                                   = new Size(0x4f, 20);
            this.cboSheet.StyleController                        = this.lcSheet;
            this.cboSheet.TabIndex                               = 4;
            this.cboSheet.SelectedIndexChanged                  += new EventHandler(this.cboSheet_SelectedIndexChanged);
            this.layoutControlGroup1.CustomizationFormText       = "layoutControlGroup1";
            this.layoutControlGroup1.EnableIndentsWithoutBorders = DefaultBoolean.True;
            this.layoutControlGroup1.GroupBordersVisible         = false;
            this.layoutControlGroup1.Items.AddRange(new BaseLayoutItem[] { this.layoutControlItem1 });
            this.layoutControlGroup1.Location             = new Point(0, 0);
            this.layoutControlGroup1.Name                 = "layoutControlGroup1";
            this.layoutControlGroup1.Padding              = new DevExpress.XtraLayout.Utils.Padding(0, 0, 0, 0);
            this.layoutControlGroup1.Size                 = new Size(0x8e, 0x1c);
            this.layoutControlGroup1.Spacing              = new DevExpress.XtraLayout.Utils.Padding(0, 0, 0, 0);
            this.layoutControlGroup1.Text                 = "layoutControlGroup1";
            this.layoutControlGroup1.TextVisible          = false;
            this.layoutControlItem1.Control               = this.cboSheet;
            this.layoutControlItem1.CustomizationFormText = "Chọn sheet";
            this.layoutControlItem1.Location              = new Point(0, 0);
            this.layoutControlItem1.Name     = "layoutControlItem1";
            this.layoutControlItem1.Size     = new Size(0x8e, 0x1c);
            this.layoutControlItem1.Text     = "Chọn sheet";
            this.layoutControlItem1.TextSize = new Size(0x37, 13);
            this.wpSelectFile.Controls.Add(this.lbLinkFile);
            this.wpSelectFile.Controls.Add(this.lbLinkFileDecription);
            this.wpSelectFile.Controls.Add(this.txtFilePath);
            this.wpSelectFile.Controls.Add(this.lbFilePathDescription);
            this.wpSelectFile.Name                            = "wpSelectFile";
            this.wpSelectFile.Size                            = new Size(0x1ab, 0xae);
            this.wpSelectFile.Text                            = "Lựa chọn tập tin excel";
            this.lbLinkFile.AllowHtmlString                   = true;
            this.lbLinkFile.Appearance.Font                   = new Font("Tahoma", 8.25f, FontStyle.Underline);
            this.lbLinkFile.Appearance.ForeColor              = Color.Blue;
            this.lbLinkFile.Appearance.Options.UseFont        = true;
            this.lbLinkFile.Appearance.Options.UseForeColor   = true;
            this.lbLinkFile.Appearance.Options.UseTextOptions = true;
            this.lbLinkFile.Appearance.TextOptions.Trimming   = Trimming.EllipsisPath;
            this.lbLinkFile.Appearance.TextOptions.VAlignment = VertAlignment.Top;
            this.lbLinkFile.Appearance.TextOptions.WordWrap   = WordWrap.NoWrap;
            this.lbLinkFile.AutoSizeMode                      = LabelAutoSizeMode.None;
            this.lbLinkFile.Cursor                            = Cursors.Hand;
            this.lbLinkFile.Location                          = new Point(3, 140);
            this.lbLinkFile.Name     = "lbLinkFile";
            this.lbLinkFile.Size     = new Size(0x19d, 0x1f);
            this.lbLinkFile.TabIndex = 15;
            this.lbLinkFile.Text     = @"D:\Project\Source (Winform)\HRM\ERP.PMQLNS.V1600\Vssoft.HumanResource\Bin\Import\*.xls";
            this.lbLinkFile.Click   += new EventHandler(this.lbLinkFile_Click);
            this.lbLinkFileDecription.AllowHtmlString = true;
            this.lbLinkFileDecription.Appearance.Options.UseTextOptions = true;
            this.lbLinkFileDecription.Appearance.TextOptions.WordWrap   = WordWrap.Wrap;
            this.lbLinkFileDecription.AutoSizeMode = LabelAutoSizeMode.None;
            this.lbLinkFileDecription.Location     = new Point(4, 0x6d);
            this.lbLinkFileDecription.Name         = "lbLinkFileDecription";
            this.lbLinkFileDecription.Size         = new Size(410, 0x19);
            this.lbLinkFileDecription.TabIndex     = 15;
            this.lbLinkFileDecription.Text         = "Mở tập tin <b><i>*.xls</i></b> trong thư mục <b>ImportFile</b> tại ổ đĩa c\x00e0i đặt hoặc nhấp v\x00e0o li\x00ean kết sau để xem tập tin mẫu:";
            this.txtFilePath.Location = new Point(3, 0x45);
            this.txtFilePath.Name     = "txtFilePath";
            this.txtFilePath.Properties.Buttons.AddRange(new EditorButton[] { new EditorButton(ButtonPredefines.Undo, "", -1, true, true, false, ImageLocation.MiddleCenter, null, new KeyShortcut(Keys.None), appearance, "Sử dụng tập tin mẫu để nạp dữ liệu", null, null, true), new EditorButton(ButtonPredefines.Glyph, "", -1, true, true, false, ImageLocation.MiddleCenter, (Image)manager.GetObject("txtFilePath.Properties.Buttons"), new KeyShortcut(Keys.None), obj3, "Chọn tập tin để nạp dữ liệu", "Browse", null, true) });
            this.txtFilePath.Size         = new Size(0x19b, 0x16);
            this.txtFilePath.TabIndex     = 14;
            this.txtFilePath.TabStop      = false;
            this.txtFilePath.ButtonClick += new ButtonPressedEventHandler(this.txtFilePath_ButtonClick);
            this.lbFilePathDescription.Appearance.Options.UseTextOptions = true;
            this.lbFilePathDescription.Appearance.TextOptions.WordWrap   = WordWrap.Wrap;
            this.lbFilePathDescription.AutoSizeMode = LabelAutoSizeMode.None;
            this.lbFilePathDescription.Location     = new Point(3, 3);
            this.lbFilePathDescription.Name         = "lbFilePathDescription";
            this.lbFilePathDescription.Size         = new Size(0x19b, 0x2f);
            this.lbFilePathDescription.TabIndex     = 0;
            this.lbFilePathDescription.Text         = "Điều chỉnh tập tin cần import c\x00f3 cấu tr\x00fac c\x00e1c trường dữ liệu giống như tập tin excel mẫu (xem tập tin mẫu theo đường dẫn b\x00ean dưới). Đảm bảo dữ liệu cột m\x00e3 * kh\x00f4ng tr\x00f9ng lấp nhau.";
            this.wpProcessPage.Controls.Add(this.lbDataRow);
            this.wpProcessPage.Controls.Add(this.lbProgressDescription);
            this.wpProcessPage.Controls.Add(this.mqProgress);
            this.wpProcessPage.Name     = "wpProcessPage";
            this.wpProcessPage.Size     = new Size(0x1ab, 0xae);
            this.wpProcessPage.Text     = "Tiến tr\x00ecnh thực hiện việc nạp dữ liệu";
            this.lbDataRow.AutoSizeMode = LabelAutoSizeMode.None;
            this.lbDataRow.Location     = new Point(4, 0x68);
            this.lbDataRow.Name         = "lbDataRow";
            this.lbDataRow.Size         = new Size(0x199, 0x36);
            this.lbDataRow.TabIndex     = 2;
            this.lbProgressDescription.Appearance.Options.UseTextOptions = true;
            this.lbProgressDescription.Appearance.TextOptions.WordWrap   = WordWrap.Wrap;
            this.lbProgressDescription.AutoSizeMode = LabelAutoSizeMode.None;
            this.lbProgressDescription.Location     = new Point(3, 4);
            this.lbProgressDescription.Name         = "lbProgressDescription";
            this.lbProgressDescription.Size         = new Size(0x19b, 0x2e);
            this.lbProgressDescription.TabIndex     = 1;
            this.mqProgress.EditValue = 0;
            this.mqProgress.Location  = new Point(3, 0x4f);
            this.mqProgress.Name      = "mqProgress";
            this.mqProgress.Properties.ProgressViewStyle = ProgressViewStyle.Solid;
            this.mqProgress.Size     = new Size(410, 0x12);
            this.mqProgress.TabIndex = 0;
            this.wpFinish.AllowBack  = false;
            this.wpFinish.Controls.Add(this.gcMessage);
            this.wpFinish.Controls.Add(this.lbFix);
            this.wpFinish.Controls.Add(this.lbFinishDescription);
            this.wpFinish.Controls.Add(this.lbMessage);
            this.wpFinish.Name      = "wpFinish";
            this.wpFinish.Size      = new Size(0x1ab, 0xae);
            this.wpFinish.Text      = "Ho\x00e0n th\x00e0nh";
            this.gcMessage.Location = new Point(0, 0x17);
            this.gcMessage.MainView = this.gbMessage;
            this.gcMessage.Name     = "gcMessage";
            this.gcMessage.Size     = new Size(0x1ab, 110);
            this.gcMessage.TabIndex = 5;
            this.gcMessage.ViewCollection.AddRange(new BaseView[] { this.gbMessage });
            this.gbMessage.Columns.AddRange(new GridColumn[] { this.colMessage, this.colStatus });
            condition.Appearance.ForeColor            = Color.Red;
            condition.Appearance.Options.UseForeColor = true;
            condition.ApplyToRow = true;
            condition.Column     = this.colStatus;
            condition.Condition  = FormatConditionEnum.Equal;
            condition.Value1     = "1";
            this.gbMessage.FormatConditions.AddRange(new StyleFormatCondition[] { condition });
            this.gbMessage.GridControl = this.gcMessage;
            this.gbMessage.Name        = "gbMessage";
            this.gbMessage.OptionsView.EnableAppearanceEvenRow = true;
            this.gbMessage.OptionsView.RowAutoHeight           = true;
            this.gbMessage.OptionsView.ShowColumnHeaders       = false;
            this.gbMessage.OptionsView.ShowGroupPanel          = false;
            this.gbMessage.OptionsView.ShowIndicator           = false;
            this.colMessage.Caption   = "Th\x00f4ng tin";
            this.colMessage.FieldName = "Message";
            this.colMessage.Name      = "colMessage";
            this.colMessage.OptionsColumn.AllowEdit = false;
            this.colMessage.OptionsColumn.ReadOnly  = true;
            this.colMessage.Visible      = true;
            this.colMessage.VisibleIndex = 0;
            this.lbFix.AutoSize          = true;
            this.lbFix.BackColor         = Color.Transparent;
            this.lbFix.Font         = new Font("Tahoma", 9.75f);
            this.lbFix.Location     = new Point(0x16b, 4);
            this.lbFix.Name         = "lbFix";
            this.lbFix.Size         = new Size(0x33, 0x10);
            this.lbFix.TabIndex     = 3;
            this.lbFix.TabStop      = true;
            this.lbFix.Text         = "Sửa Lỗi";
            this.lbFix.Visible      = false;
            this.lbFix.LinkClicked += new LinkLabelLinkClickedEventHandler(this.lbFix_LinkClicked);
            this.lbFinishDescription.Appearance.Options.UseTextOptions = true;
            this.lbFinishDescription.Appearance.TextOptions.WordWrap   = WordWrap.Wrap;
            this.lbFinishDescription.AutoSizeMode = LabelAutoSizeMode.None;
            this.lbFinishDescription.Location     = new Point(3, 0x8b);
            this.lbFinishDescription.Name         = "lbFinishDescription";
            this.lbFinishDescription.Size         = new Size(0x19b, 0x20);
            this.lbFinishDescription.TabIndex     = 2;
            this.lbFinishDescription.Text         = "Qu\x00e1 tr\x00ecnh import dữ liệu * đ\x00e3 ho\x00e0n tất. Nhấn n\x00fat ho\x00e0n th\x00e0nh ph\x00eda b\x00ean dưới để x\x00e1c nhận lại.";
            this.lbMessage.AllowHtmlString        = true;
            this.lbMessage.Location = new Point(3, 5);
            this.lbMessage.Name     = "lbMessage";
            this.lbMessage.Size     = new Size(0xb6, 14);
            this.lbMessage.TabIndex = 0;
            this.lbMessage.Text     = "Th\x00e0nh c\x00f4ng: <color=red>0</color> mẫu tin. Lỗi: <color=red>0</color> mẫu tin.";
            this.wpSelectField.Controls.Add(this.gcList);
            this.wpSelectField.Name = "wpSelectField";
            this.wpSelectField.Size = new Size(0x1ab, 0xae);
            this.wpSelectField.Text = "Gh\x00e9p trường dữ liệu";
            this.gcList.Dock        = DockStyle.Fill;
            this.gcList.Location    = new Point(0, 0);
            this.gcList.MainView    = this.gbList;
            this.gcList.Name        = "gcList";
            this.gcList.RepositoryItems.AddRange(new RepositoryItem[] { this.repSelectField });
            this.gcList.Size     = new Size(0x1ab, 0xae);
            this.gcList.TabIndex = 4;
            this.gcList.ViewCollection.AddRange(new BaseView[] { this.gbList });
            this.gbList.Columns.AddRange(new GridColumn[] { this.colFieldName, this.colSelectField });
            this.gbList.GridControl = this.gcList;
            this.gbList.Name        = "gbList";
            this.gbList.OptionsView.ColumnAutoWidth = false;
            this.gbList.OptionsView.ShowGroupPanel  = false;
            this.gbList.OptionsView.ShowIndicator   = false;
            this.colFieldName.Caption   = "Mặc định";
            this.colFieldName.FieldName = "FieldName";
            this.colFieldName.Name      = "colFieldName";
            this.colFieldName.OptionsColumn.AllowEdit = false;
            this.colFieldName.OptionsColumn.ReadOnly  = true;
            this.colFieldName.Visible        = true;
            this.colFieldName.VisibleIndex   = 0;
            this.colFieldName.Width          = 0x9f;
            this.colSelectField.Caption      = "T\x00f9y chọn";
            this.colSelectField.ColumnEdit   = this.repSelectField;
            this.colSelectField.FieldName    = "SelectField";
            this.colSelectField.Name         = "colSelectField";
            this.colSelectField.Visible      = true;
            this.colSelectField.VisibleIndex = 1;
            this.colSelectField.Width        = 0xc0;
            this.repSelectField.AutoHeight   = false;
            this.repSelectField.Buttons.AddRange(new EditorButton[] { new EditorButton(ButtonPredefines.Combo) });
            this.repSelectField.Name     = "repSelectField";
            this.repSelectField.NullText = "<Vui l\x00f2ng chọn>";
            base.AutoScaleDimensions     = new SizeF(6f, 13f);
            base.AutoScaleMode           = AutoScaleMode.Font;
            base.ClientSize = new Size(0x1e7, 0x150);
            base.Controls.Add(this.wcImport);
            base.MaximizeBox   = false;
            base.MinimizeBox   = false;
            base.Name          = "xfmBaseImport";
            base.ShowIcon      = false;
            base.ShowInTaskbar = false;
            base.StartPosition = FormStartPosition.CenterScreen;
            this.Text          = "Nhập Danh S\x00e1ch * Từ Tập Tin Excel";
            base.Load         += new EventHandler(this.xfmImport_Load);
            this.wcImport.EndInit();
            this.wcImport.ResumeLayout(false);
            this.cheIsUpdate.Properties.EndInit();
            this.lcSheet.EndInit();
            this.lcSheet.ResumeLayout(false);
            this.cboSheet.Properties.EndInit();
            this.layoutControlGroup1.EndInit();
            this.layoutControlItem1.EndInit();
            this.wpSelectFile.ResumeLayout(false);
            this.txtFilePath.Properties.EndInit();
            this.wpProcessPage.ResumeLayout(false);
            this.mqProgress.Properties.EndInit();
            this.wpFinish.ResumeLayout(false);
            this.wpFinish.PerformLayout();
            this.gcMessage.EndInit();
            this.gbMessage.EndInit();
            this.wpSelectField.ResumeLayout(false);
            this.gcList.EndInit();
            this.gbList.EndInit();
            this.repSelectField.EndInit();
            base.ResumeLayout(false);
        }
		public GetCoarseBedHeight(WizardControl container, Vector3 probeStartPosition, string pageDescription, List<ProbePosition> probePositions, int probePositionsBeingEditedIndex)
			: base(pageDescription, setZHeightCoarseInstruction1, setZHeightCoarseInstruction2, 1, probePositions, probePositionsBeingEditedIndex)
		{
			this.container = container;
			this.probeStartPosition = probeStartPosition;
		}
 public MyNextButton(WizardControl wizard)
     : base(wizard)
 {
 }
Пример #34
0
		/// <summary>
		/// Constructor requires the  wizard that owns this collection
		/// </summary>
		/// <param name="parent">Wizard</param>
		public PageCollection(WizardControl parent):base()
		{
			vParent = parent;
		}
 public NoHeaderWizardViewInfo(WizardControl w)
     : base(w)
 {
 }
        public LevelWizardRadialBase(LevelWizardBase.RuningState runningState, int width, int height, int totalSteps, int numberOfRadialSamples)
			: base(width, height, totalSteps)
		{
			pageOneInstructionsTextThree = pageOneInstructionsTextThree.FormatWith(numberOfRadialSamples+1);

            string printLevelWizardTitle = "MatterControl";
            string printLevelWizardTitleFull = "Print Leveling Wizard".Localize();
            Title = string.Format("{0} - {1}", printLevelWizardTitle, printLevelWizardTitleFull);
            List<ProbePosition> probePositions = new List<ProbePosition>(numberOfRadialSamples + 1);
            for (int i = 0; i < numberOfRadialSamples+1; i++)
            {
                probePositions.Add(new ProbePosition());
            }

            printLevelWizard = new WizardControl();
            AddChild(printLevelWizard);

            if (runningState == LevelWizardBase.RuningState.InitialStartupCalibration)
            {
                string requiredPageInstructions = "{0}\n\n{1}".FormatWith(requiredPageInstructions1, requiredPageInstructions2);
                printLevelWizard.AddPage(new FirstPageInstructions(initialPrinterSetupStepText, requiredPageInstructions));
            }

            string pageOneInstructions = string.Format("{0}\n\n\t• {1}\n\t• {2}\n\t• {3}\n\n{4}\n\n{5}\n\n{6}", pageOneInstructionsTextOne, pageOneInstructionsTextTwo, pageOneInstructionsTextThree, pageOneInstructionsTextFour, pageOneInstructionsText5, pageOneInstructionsText6, pageOneInstructionsText7);
            printLevelWizard.AddPage(new FirstPageInstructions(pageOneStepText, pageOneInstructions));

            string homingPageInstructions = string.Format("{0}:\n\n\t• {1}\n\n{2}", homingPageInstructionsTextOne, homingPageInstructionsTextTwo, homingPageInstructionsTextThree);
            printLevelWizard.AddPage(new HomePrinterPage(homingPageStepText, homingPageInstructions));

            string positionLabel = "Position".Localize();
            string lowPrecisionLabel = "Low Precision".Localize();
            string medPrecisionLabel = "Medium Precision".Localize();
			string highPrecisionLabel = "High Precision".Localize();

            double bedRadius = Math.Min(ActiveSliceSettings.Instance.GetValue<Vector2>(SettingsKey.bed_size).x, ActiveSliceSettings.Instance.GetValue<Vector2>(SettingsKey.bed_size).y) / 2;

            double startProbeHeight = 5;
            for (int i = 0; i < numberOfRadialSamples + 1; i++)
            {
                Vector2 probePosition = GetPrintLevelPositionToSample(i, bedRadius);
                printLevelWizard.AddPage(new GetCoarseBedHeight(printLevelWizard, new Vector3(probePosition, startProbeHeight), string.Format("{0} {1} {2} - {3}", GetStepString(), positionLabel, i + 1, lowPrecisionLabel), probePositions, i));
                printLevelWizard.AddPage(new GetFineBedHeight(string.Format("{0} {1} {2} - {3}", GetStepString(), positionLabel, i + 1, medPrecisionLabel), probePositions, i));
                printLevelWizard.AddPage(new GetUltraFineBedHeight(string.Format("{0} {1} {2} - {3}", GetStepString(), positionLabel, i + 1, highPrecisionLabel), probePositions, i));
            }

            string doneInstructions = string.Format("{0}\n\n\t• {1}\n\n{2}", doneInstructionsText, doneInstructionsTextTwo, doneInstructionsTextThree);
            printLevelWizard.AddPage(new LastPageRadialInstructions("Done".Localize(), doneInstructions, probePositions));
        }
Пример #37
0
 public GetCoarseBedHeight(WizardControl container, Vector3 probeStartPosition, string pageDescription, ProbePosition whereToWriteProbePosition, bool allowLessThan0)
     : base(pageDescription, setZHeightCoarseInstruction1, setZHeightCoarseInstruction2, 1, whereToWriteProbePosition, allowLessThan0)
 {
     this.container          = container;
     this.probeStartPosition = probeStartPosition;
 }
Пример #38
0
 public static void ChangeCaptionButtonWizardControl(string parent_name, string language, WizardControl wizard_control)
 {
     string result = CaptionEngine.GetControlCaption(parent_name, wizard_control.Name, BaseConstant.WIZARD_CONTROL, language);
     wizard_control.Text = CaptionEngine.GetControlCaption(parent_name, wizard_control.Name, BaseConstant.CONTROL_TEXT, language);
     try
     {
         string[] arr = result.Split('|');
         wizard_control.NextText = arr[0] + ">";
         wizard_control.CancelText = arr[1];
         wizard_control.FinishText = arr[2];
         wizard_control.PreviousText = "<" + arr[3];
     }
     catch 
     {
         wizard_control.NextText = "Next >";
         wizard_control.CancelText = "Cancel";
         wizard_control.FinishText = "Finish";
         wizard_control.PreviousText = "< Back";
     }
 }
Пример #39
0
 private void InitializeComponent()
 {
     this.wizardControl1         = new WizardControl();
     this.wizardPage1            = new WizardPage();
     this.flowLayoutPanel1       = new FlowLayoutPanel();
     this.button1                = new Button();
     this.label1                 = new Label();
     this.button2                = new Button();
     this.label2                 = new Label();
     this.button4                = new Button();
     this.label3                 = new Label();
     this.button7                = new Button();
     this.label17                = new Label();
     this.wizardPageTumblr       = new WizardPage();
     this.flowLayoutPanel2       = new FlowLayoutPanel();
     this.label4                 = new Label();
     this.button5                = new Button();
     this.button6                = new Button();
     this.wizardPageTumblrBlog   = new WizardPage();
     this.lblErrorTumblrBlog     = new Label();
     this.flowLayoutPanel3       = new FlowLayoutPanel();
     this.label6                 = new Label();
     this.txtTumblrBlogUrl       = new TextBox();
     this.label7                 = new Label();
     this.grpTumblrBlog          = new GroupBox();
     this.flowLayoutPanel7       = new FlowLayoutPanel();
     this.chkTumblrPhotoSets     = new CheckBox();
     this.chkTumblrVideos        = new CheckBox();
     this.wizardPageValidate     = new WizardPage();
     this.flowLayoutPanel8       = new FlowLayoutPanel();
     this.label5                 = new Label();
     this.txtName                = new TextBox();
     this.label14                = new Label();
     this.label15                = new Label();
     this.flowLayoutPanel10      = new FlowLayoutPanel();
     this.txtFolder              = new TextBox();
     this.button3                = new Button();
     this.label16                = new Label();
     this.groupBox1              = new GroupBox();
     this.flowLayoutPanel9       = new FlowLayoutPanel();
     this.chkRenameFiles         = new CheckBox();
     this.wizardPageTumblrTags   = new WizardPage();
     this.flowLayoutPanel4       = new FlowLayoutPanel();
     this.label8                 = new Label();
     this.txtTumblrTag           = new TextBox();
     this.label9                 = new Label();
     this.wizardPage500          = new WizardPage();
     this.flowLayoutPanel5       = new FlowLayoutPanel();
     this.label10                = new Label();
     this.txt500pxUsername       = new TextBox();
     this.label11                = new Label();
     this.groupBox2              = new GroupBox();
     this.flowLayoutPanel11      = new FlowLayoutPanel();
     this.checkBox4              = new CheckBox();
     this.checkBox5              = new CheckBox();
     this.checkBox6              = new CheckBox();
     this.checkBox7              = new CheckBox();
     this.lblError500px          = new Label();
     this.wizardPageInstagram    = new WizardPage();
     this.lblErrorInstragram     = new Label();
     this.lblErrorInstagram      = new Label();
     this.flowLayoutPanel6       = new FlowLayoutPanel();
     this.label12                = new Label();
     this.txtInstagram           = new TextBox();
     this.label13                = new Label();
     this.wizardPageFlickr       = new WizardPage();
     this.flowLayoutPanel12      = new FlowLayoutPanel();
     this.label18                = new Label();
     this.txtFlickr              = new TextBox();
     this.label19                = new Label();
     this.glassExtenderProvider1 = new GlassExtenderProvider();
     ((ISupportInitialize)this.wizardControl1).BeginInit();
     this.wizardPage1.SuspendLayout();
     this.flowLayoutPanel1.SuspendLayout();
     this.wizardPageTumblr.SuspendLayout();
     this.flowLayoutPanel2.SuspendLayout();
     this.wizardPageTumblrBlog.SuspendLayout();
     this.flowLayoutPanel3.SuspendLayout();
     this.grpTumblrBlog.SuspendLayout();
     this.flowLayoutPanel7.SuspendLayout();
     this.wizardPageValidate.SuspendLayout();
     this.flowLayoutPanel8.SuspendLayout();
     this.flowLayoutPanel10.SuspendLayout();
     this.groupBox1.SuspendLayout();
     this.flowLayoutPanel9.SuspendLayout();
     this.wizardPageTumblrTags.SuspendLayout();
     this.flowLayoutPanel4.SuspendLayout();
     this.wizardPage500.SuspendLayout();
     this.flowLayoutPanel5.SuspendLayout();
     this.groupBox2.SuspendLayout();
     this.flowLayoutPanel11.SuspendLayout();
     this.wizardPageInstagram.SuspendLayout();
     this.flowLayoutPanel6.SuspendLayout();
     this.wizardPageFlickr.SuspendLayout();
     this.flowLayoutPanel12.SuspendLayout();
     base.SuspendLayout();
     this.wizardControl1.Location = new Point(0, 0);
     this.wizardControl1.Name     = "wizardControl1";
     this.wizardControl1.Pages.Add(this.wizardPage1);
     this.wizardControl1.Pages.Add(this.wizardPageTumblr);
     this.wizardControl1.Pages.Add(this.wizardPageTumblrBlog);
     this.wizardControl1.Pages.Add(this.wizardPageTumblrTags);
     this.wizardControl1.Pages.Add(this.wizardPage500);
     this.wizardControl1.Pages.Add(this.wizardPageInstagram);
     this.wizardControl1.Pages.Add(this.wizardPageFlickr);
     this.wizardControl1.Pages.Add(this.wizardPageValidate);
     this.wizardControl1.Size     = new System.Drawing.Size(518, 409);
     this.wizardControl1.TabIndex = 0;
     this.wizardControl1.Title    = "Add New Site";
     this.wizardPage1.AllowNext   = false;
     this.wizardPage1.Controls.Add(this.flowLayoutPanel1);
     this.wizardPage1.Name     = "wizardPage1";
     this.wizardPage1.ShowNext = false;
     this.wizardPage1.Size     = new System.Drawing.Size(471, 254);
     this.wizardPage1.TabIndex = 0;
     this.wizardPage1.Text     = "Blog Type";
     this.flowLayoutPanel1.Controls.Add(this.button1);
     this.flowLayoutPanel1.Controls.Add(this.label1);
     this.flowLayoutPanel1.Controls.Add(this.button2);
     this.flowLayoutPanel1.Controls.Add(this.label2);
     this.flowLayoutPanel1.Controls.Add(this.button4);
     this.flowLayoutPanel1.Controls.Add(this.label3);
     this.flowLayoutPanel1.Controls.Add(this.button7);
     this.flowLayoutPanel1.Controls.Add(this.label17);
     this.flowLayoutPanel1.Dock          = DockStyle.Fill;
     this.flowLayoutPanel1.FlowDirection = FlowDirection.TopDown;
     this.flowLayoutPanel1.Location      = new Point(0, 0);
     this.flowLayoutPanel1.Name          = "flowLayoutPanel1";
     this.flowLayoutPanel1.Size          = new System.Drawing.Size(471, 254);
     this.flowLayoutPanel1.TabIndex      = 3;
     this.button1.Location = new Point(3, 15);
     this.button1.Margin   = new System.Windows.Forms.Padding(3, 15, 3, 3);
     this.button1.Name     = "button1";
     this.button1.Size     = new System.Drawing.Size(136, 23);
     this.button1.TabIndex = 0;
     this.button1.Text     = "Tumblr";
     this.button1.UseVisualStyleBackColor = true;
     this.button1.Click   += new EventHandler(this.button1_Click);
     this.label1.AutoSize  = true;
     this.label1.Location  = new Point(3, 41);
     this.label1.Name      = "label1";
     this.label1.Size      = new System.Drawing.Size(246, 15);
     this.label1.TabIndex  = 3;
     this.label1.Text      = "Backup your Tumblr Blog, or explore site tags";
     this.button2.Location = new Point(3, 71);
     this.button2.Margin   = new System.Windows.Forms.Padding(3, 15, 3, 3);
     this.button2.Name     = "button2";
     this.button2.Size     = new System.Drawing.Size(136, 23);
     this.button2.TabIndex = 1;
     this.button2.Text     = "500px";
     this.button2.UseVisualStyleBackColor = true;
     this.button2.Click   += new EventHandler(this.button2_Click);
     this.label2.AutoSize  = true;
     this.label2.Location  = new Point(3, 97);
     this.label2.Name      = "label2";
     this.label2.Size      = new System.Drawing.Size(323, 15);
     this.label2.TabIndex  = 4;
     this.label2.Text      = "Backup your uploads,likes,favorites and commented photos";
     this.button4.Location = new Point(3, 127);
     this.button4.Margin   = new System.Windows.Forms.Padding(3, 15, 3, 3);
     this.button4.Name     = "button4";
     this.button4.Size     = new System.Drawing.Size(136, 23);
     this.button4.TabIndex = 2;
     this.button4.Text     = "Instagram";
     this.button4.UseVisualStyleBackColor = true;
     this.button4.Click   += new EventHandler(this.button4_Click);
     this.label3.AutoSize  = true;
     this.label3.Location  = new Point(3, 153);
     this.label3.Name      = "label3";
     this.label3.Size      = new System.Drawing.Size(174, 15);
     this.label3.TabIndex  = 5;
     this.label3.Text      = "Backup your instagram uploads";
     this.button7.Location = new Point(3, 183);
     this.button7.Margin   = new System.Windows.Forms.Padding(3, 15, 3, 3);
     this.button7.Name     = "button7";
     this.button7.Size     = new System.Drawing.Size(136, 23);
     this.button7.TabIndex = 6;
     this.button7.Text     = "Flickr";
     this.button7.UseVisualStyleBackColor = true;
     this.button7.Click             += new EventHandler(this.button7_Click);
     this.label17.AutoSize           = true;
     this.label17.Location           = new Point(3, 209);
     this.label17.Name               = "label17";
     this.label17.Size               = new System.Drawing.Size(149, 15);
     this.label17.TabIndex           = 7;
     this.label17.Text               = "Backup your Flickr uploads";
     this.wizardPageTumblr.AllowNext = false;
     this.wizardPageTumblr.Controls.Add(this.flowLayoutPanel2);
     this.wizardPageTumblr.Name     = "wizardPageTumblr";
     this.wizardPageTumblr.ShowNext = false;
     this.wizardPageTumblr.Size     = new System.Drawing.Size(471, 254);
     this.wizardPageTumblr.TabIndex = 1;
     this.wizardPageTumblr.Text     = "Tumblr";
     this.flowLayoutPanel2.Controls.Add(this.label4);
     this.flowLayoutPanel2.Controls.Add(this.button5);
     this.flowLayoutPanel2.Controls.Add(this.button6);
     this.flowLayoutPanel2.Dock          = DockStyle.Fill;
     this.flowLayoutPanel2.FlowDirection = FlowDirection.TopDown;
     this.flowLayoutPanel2.Location      = new Point(0, 0);
     this.flowLayoutPanel2.Name          = "flowLayoutPanel2";
     this.flowLayoutPanel2.Size          = new System.Drawing.Size(471, 254);
     this.flowLayoutPanel2.TabIndex      = 0;
     this.label4.AutoSize  = true;
     this.label4.Location  = new Point(3, 0);
     this.label4.Name      = "label4";
     this.label4.Size      = new System.Drawing.Size(248, 15);
     this.label4.TabIndex  = 0;
     this.label4.Text      = "What kind of Tumblr do you wish to Backup ?";
     this.button5.Location = new Point(3, 30);
     this.button5.Margin   = new System.Windows.Forms.Padding(3, 15, 3, 3);
     this.button5.Name     = "button5";
     this.button5.Size     = new System.Drawing.Size(139, 23);
     this.button5.TabIndex = 1;
     this.button5.Text     = "Blog";
     this.button5.UseVisualStyleBackColor = true;
     this.button5.Click   += new EventHandler(this.button5_Click);
     this.button6.Location = new Point(3, 71);
     this.button6.Margin   = new System.Windows.Forms.Padding(3, 15, 3, 3);
     this.button6.Name     = "button6";
     this.button6.Size     = new System.Drawing.Size(139, 23);
     this.button6.TabIndex = 2;
     this.button6.Text     = "Tags";
     this.button6.UseVisualStyleBackColor = true;
     this.button6.Click += new EventHandler(this.button6_Click);
     this.wizardPageTumblrBlog.Controls.Add(this.lblErrorTumblrBlog);
     this.wizardPageTumblrBlog.Controls.Add(this.flowLayoutPanel3);
     this.wizardPageTumblrBlog.Name     = "wizardPageTumblrBlog";
     this.wizardPageTumblrBlog.NextPage = this.wizardPageValidate;
     this.wizardPageTumblrBlog.Size     = new System.Drawing.Size(471, 254);
     this.wizardPageTumblrBlog.TabIndex = 6;
     this.wizardPageTumblrBlog.Text     = "Tumblr Blog";
     this.wizardPageTumblrBlog.Commit  += new EventHandler <WizardPageConfirmEventArgs>(this.wizardPageTumblrBlog_Commit);
     this.lblErrorTumblrBlog.Anchor     = AnchorStyles.Bottom | AnchorStyles.Left;
     this.lblErrorTumblrBlog.AutoSize   = true;
     this.lblErrorTumblrBlog.Location   = new Point(0, 239);
     this.lblErrorTumblrBlog.Name       = "lblErrorTumblrBlog";
     this.lblErrorTumblrBlog.Size       = new System.Drawing.Size(10, 15);
     this.lblErrorTumblrBlog.TabIndex   = 1;
     this.lblErrorTumblrBlog.Text       = " ";
     this.flowLayoutPanel3.Controls.Add(this.label6);
     this.flowLayoutPanel3.Controls.Add(this.txtTumblrBlogUrl);
     this.flowLayoutPanel3.Controls.Add(this.label7);
     this.flowLayoutPanel3.Controls.Add(this.grpTumblrBlog);
     this.flowLayoutPanel3.Dock          = DockStyle.Top;
     this.flowLayoutPanel3.FlowDirection = FlowDirection.TopDown;
     this.flowLayoutPanel3.Location      = new Point(0, 0);
     this.flowLayoutPanel3.Name          = "flowLayoutPanel3";
     this.flowLayoutPanel3.Size          = new System.Drawing.Size(471, 199);
     this.flowLayoutPanel3.TabIndex      = 0;
     this.label6.AutoSize           = true;
     this.label6.Location           = new Point(3, 0);
     this.label6.Name               = "label6";
     this.label6.Size               = new System.Drawing.Size(177, 15);
     this.label6.TabIndex           = 0;
     this.label6.Text               = "Please type in the url of the blog";
     this.txtTumblrBlogUrl.Location = new Point(3, 30);
     this.txtTumblrBlogUrl.Margin   = new System.Windows.Forms.Padding(3, 15, 3, 3);
     this.txtTumblrBlogUrl.Name     = "txtTumblrBlogUrl";
     this.txtTumblrBlogUrl.Size     = new System.Drawing.Size(305, 23);
     this.txtTumblrBlogUrl.TabIndex = 1;
     this.txtTumblrBlogUrl.Text     = "http://";
     this.label7.AutoSize           = true;
     this.label7.Location           = new Point(3, 56);
     this.label7.Name               = "label7";
     this.label7.Size               = new System.Drawing.Size(204, 15);
     this.label7.TabIndex           = 2;
     this.label7.Text               = "ex: http://artisnotamedia.tumblr.com";
     this.grpTumblrBlog.Controls.Add(this.flowLayoutPanel7);
     this.grpTumblrBlog.Location = new Point(3, 86);
     this.grpTumblrBlog.Margin   = new System.Windows.Forms.Padding(3, 15, 3, 3);
     this.grpTumblrBlog.Name     = "grpTumblrBlog";
     this.grpTumblrBlog.Size     = new System.Drawing.Size(305, 100);
     this.grpTumblrBlog.TabIndex = 3;
     this.grpTumblrBlog.TabStop  = false;
     this.grpTumblrBlog.Text     = "Options";
     this.flowLayoutPanel7.Controls.Add(this.chkTumblrPhotoSets);
     this.flowLayoutPanel7.Controls.Add(this.chkTumblrVideos);
     this.flowLayoutPanel7.Dock                      = DockStyle.Fill;
     this.flowLayoutPanel7.FlowDirection             = FlowDirection.TopDown;
     this.flowLayoutPanel7.Location                  = new Point(3, 19);
     this.flowLayoutPanel7.Name                      = "flowLayoutPanel7";
     this.flowLayoutPanel7.Size                      = new System.Drawing.Size(299, 78);
     this.flowLayoutPanel7.TabIndex                  = 1;
     this.chkTumblrPhotoSets.AutoSize                = true;
     this.chkTumblrPhotoSets.Location                = new Point(3, 3);
     this.chkTumblrPhotoSets.Name                    = "chkTumblrPhotoSets";
     this.chkTumblrPhotoSets.Size                    = new System.Drawing.Size(194, 19);
     this.chkTumblrPhotoSets.TabIndex                = 0;
     this.chkTumblrPhotoSets.Text                    = "Download Photosets (2x slower)";
     this.chkTumblrPhotoSets.UseVisualStyleBackColor = true;
     this.chkTumblrVideos.AutoSize                   = true;
     this.chkTumblrVideos.Location                   = new Point(3, 28);
     this.chkTumblrVideos.Name     = "chkTumblrVideos";
     this.chkTumblrVideos.Size     = new System.Drawing.Size(118, 19);
     this.chkTumblrVideos.TabIndex = 1;
     this.chkTumblrVideos.Text     = "Download Videos";
     this.chkTumblrVideos.UseVisualStyleBackColor = true;
     this.wizardPageValidate.Controls.Add(this.flowLayoutPanel8);
     this.wizardPageValidate.Name        = "wizardPageValidate";
     this.wizardPageValidate.Size        = new System.Drawing.Size(471, 254);
     this.wizardPageValidate.TabIndex    = 3;
     this.wizardPageValidate.Text        = "Validation";
     this.wizardPageValidate.Commit     += new EventHandler <WizardPageConfirmEventArgs>(this.wizardPageValidate_Commit);
     this.wizardPageValidate.Initialize += new EventHandler <WizardPageInitEventArgs>(this.wizardPageValidate_Initialize);
     this.flowLayoutPanel8.Controls.Add(this.label5);
     this.flowLayoutPanel8.Controls.Add(this.txtName);
     this.flowLayoutPanel8.Controls.Add(this.label14);
     this.flowLayoutPanel8.Controls.Add(this.label15);
     this.flowLayoutPanel8.Controls.Add(this.flowLayoutPanel10);
     this.flowLayoutPanel8.Controls.Add(this.label16);
     this.flowLayoutPanel8.Controls.Add(this.groupBox1);
     this.flowLayoutPanel8.Dock          = DockStyle.Fill;
     this.flowLayoutPanel8.FlowDirection = FlowDirection.TopDown;
     this.flowLayoutPanel8.Location      = new Point(0, 0);
     this.flowLayoutPanel8.Name          = "flowLayoutPanel8";
     this.flowLayoutPanel8.Size          = new System.Drawing.Size(471, 254);
     this.flowLayoutPanel8.TabIndex      = 0;
     this.label5.AutoSize  = true;
     this.label5.Location  = new Point(3, 0);
     this.label5.Name      = "label5";
     this.label5.Size      = new System.Drawing.Size(39, 15);
     this.label5.TabIndex  = 0;
     this.label5.Text      = "Name";
     this.txtName.Location = new Point(3, 18);
     this.txtName.Name     = "txtName";
     this.txtName.Size     = new System.Drawing.Size(173, 23);
     this.txtName.TabIndex = 1;
     this.label14.AutoSize = true;
     this.label14.Location = new Point(3, 44);
     this.label14.Name     = "label14";
     this.label14.Size     = new System.Drawing.Size(10, 15);
     this.label14.TabIndex = 2;
     this.label14.Text     = " ";
     this.label15.AutoSize = true;
     this.label15.Location = new Point(3, 59);
     this.label15.Name     = "label15";
     this.label15.Size     = new System.Drawing.Size(104, 15);
     this.label15.TabIndex = 3;
     this.label15.Text     = "Folder to save files";
     this.flowLayoutPanel10.Controls.Add(this.txtFolder);
     this.flowLayoutPanel10.Controls.Add(this.button3);
     this.flowLayoutPanel10.Location   = new Point(3, 77);
     this.flowLayoutPanel10.Name       = "flowLayoutPanel10";
     this.flowLayoutPanel10.Size       = new System.Drawing.Size(274, 29);
     this.flowLayoutPanel10.TabIndex   = 7;
     this.txtFolder.AutoCompleteMode   = AutoCompleteMode.Suggest;
     this.txtFolder.AutoCompleteSource = AutoCompleteSource.FileSystemDirectories;
     this.txtFolder.Location           = new Point(3, 3);
     this.txtFolder.Name     = "txtFolder";
     this.txtFolder.Size     = new System.Drawing.Size(173, 23);
     this.txtFolder.TabIndex = 4;
     this.button3.Location   = new Point(182, 3);
     this.button3.Name       = "button3";
     this.button3.Size       = new System.Drawing.Size(75, 23);
     this.button3.TabIndex   = 5;
     this.button3.Text       = "&Browse";
     this.button3.UseVisualStyleBackColor = true;
     this.button3.Click   += new EventHandler(this.button3_Click);
     this.label16.AutoSize = true;
     this.label16.Location = new Point(3, 109);
     this.label16.Name     = "label16";
     this.label16.Size     = new System.Drawing.Size(10, 15);
     this.label16.TabIndex = 6;
     this.label16.Text     = " ";
     this.groupBox1.Controls.Add(this.flowLayoutPanel9);
     this.groupBox1.Location = new Point(3, 127);
     this.groupBox1.Name     = "groupBox1";
     this.groupBox1.Size     = new System.Drawing.Size(200, 100);
     this.groupBox1.TabIndex = 5;
     this.groupBox1.TabStop  = false;
     this.groupBox1.Text     = "Options";
     this.flowLayoutPanel9.Controls.Add(this.chkRenameFiles);
     this.flowLayoutPanel9.Dock                  = DockStyle.Fill;
     this.flowLayoutPanel9.FlowDirection         = FlowDirection.TopDown;
     this.flowLayoutPanel9.Location              = new Point(3, 19);
     this.flowLayoutPanel9.Name                  = "flowLayoutPanel9";
     this.flowLayoutPanel9.Size                  = new System.Drawing.Size(194, 78);
     this.flowLayoutPanel9.TabIndex              = 0;
     this.chkRenameFiles.AutoSize                = true;
     this.chkRenameFiles.Checked                 = true;
     this.chkRenameFiles.CheckState              = CheckState.Checked;
     this.chkRenameFiles.Location                = new Point(3, 3);
     this.chkRenameFiles.Name                    = "chkRenameFiles";
     this.chkRenameFiles.Size                    = new System.Drawing.Size(184, 19);
     this.chkRenameFiles.TabIndex                = 0;
     this.chkRenameFiles.Text                    = "Rename files using post name";
     this.chkRenameFiles.UseVisualStyleBackColor = true;
     this.wizardPageTumblrTags.Controls.Add(this.flowLayoutPanel4);
     this.wizardPageTumblrTags.Name     = "wizardPageTumblrTags";
     this.wizardPageTumblrTags.NextPage = this.wizardPageValidate;
     this.wizardPageTumblrTags.Size     = new System.Drawing.Size(471, 254);
     this.wizardPageTumblrTags.TabIndex = 7;
     this.wizardPageTumblrTags.Text     = "Tumblr Tags";
     this.wizardPageTumblrTags.Commit  += new EventHandler <WizardPageConfirmEventArgs>(this.wizardPageTumblrTags_Commit);
     this.flowLayoutPanel4.Controls.Add(this.label8);
     this.flowLayoutPanel4.Controls.Add(this.txtTumblrTag);
     this.flowLayoutPanel4.Controls.Add(this.label9);
     this.flowLayoutPanel4.Dock          = DockStyle.Fill;
     this.flowLayoutPanel4.FlowDirection = FlowDirection.TopDown;
     this.flowLayoutPanel4.Location      = new Point(0, 0);
     this.flowLayoutPanel4.Name          = "flowLayoutPanel4";
     this.flowLayoutPanel4.Size          = new System.Drawing.Size(471, 254);
     this.flowLayoutPanel4.TabIndex      = 0;
     this.label8.AutoSize       = true;
     this.label8.Location       = new Point(3, 0);
     this.label8.Name           = "label8";
     this.label8.Size           = new System.Drawing.Size(133, 15);
     this.label8.TabIndex       = 0;
     this.label8.Text           = "Please select a tag to rip";
     this.txtTumblrTag.Location = new Point(3, 30);
     this.txtTumblrTag.Margin   = new System.Windows.Forms.Padding(3, 15, 3, 3);
     this.txtTumblrTag.Name     = "txtTumblrTag";
     this.txtTumblrTag.Size     = new System.Drawing.Size(133, 23);
     this.txtTumblrTag.TabIndex = 1;
     this.label9.AutoSize       = true;
     this.label9.Location       = new Point(3, 56);
     this.label9.Name           = "label9";
     this.label9.Size           = new System.Drawing.Size(75, 15);
     this.label9.TabIndex       = 2;
     this.label9.Text           = "ex: wallpaper";
     this.wizardPage500.Controls.Add(this.flowLayoutPanel5);
     this.wizardPage500.Controls.Add(this.lblError500px);
     this.wizardPage500.Name     = "wizardPage500";
     this.wizardPage500.NextPage = this.wizardPageValidate;
     this.wizardPage500.Size     = new System.Drawing.Size(471, 254);
     this.wizardPage500.TabIndex = 2;
     this.wizardPage500.Text     = "500px";
     this.wizardPage500.Commit  += new EventHandler <WizardPageConfirmEventArgs>(this.wizardPage500_Commit);
     this.flowLayoutPanel5.Controls.Add(this.label10);
     this.flowLayoutPanel5.Controls.Add(this.txt500pxUsername);
     this.flowLayoutPanel5.Controls.Add(this.label11);
     this.flowLayoutPanel5.Controls.Add(this.groupBox2);
     this.flowLayoutPanel5.Dock          = DockStyle.Top;
     this.flowLayoutPanel5.FlowDirection = FlowDirection.TopDown;
     this.flowLayoutPanel5.Location      = new Point(0, 0);
     this.flowLayoutPanel5.Name          = "flowLayoutPanel5";
     this.flowLayoutPanel5.Size          = new System.Drawing.Size(471, 226);
     this.flowLayoutPanel5.TabIndex      = 0;
     this.label10.AutoSize          = true;
     this.label10.Location          = new Point(3, 0);
     this.label10.Name              = "label10";
     this.label10.Size              = new System.Drawing.Size(231, 15);
     this.label10.TabIndex          = 0;
     this.label10.Text              = "Please type in the username on 500px.com";
     this.txt500pxUsername.Location = new Point(3, 30);
     this.txt500pxUsername.Margin   = new System.Windows.Forms.Padding(3, 15, 3, 3);
     this.txt500pxUsername.Name     = "txt500pxUsername";
     this.txt500pxUsername.Size     = new System.Drawing.Size(132, 23);
     this.txt500pxUsername.TabIndex = 1;
     this.label11.AutoSize          = true;
     this.label11.Location          = new Point(3, 56);
     this.label11.Name              = "label11";
     this.label11.Size              = new System.Drawing.Size(55, 15);
     this.label11.TabIndex          = 2;
     this.label11.Text              = "ex: bollzy";
     this.groupBox2.Controls.Add(this.flowLayoutPanel11);
     this.groupBox2.Location = new Point(3, 86);
     this.groupBox2.Margin   = new System.Windows.Forms.Padding(3, 15, 3, 3);
     this.groupBox2.Name     = "groupBox2";
     this.groupBox2.Size     = new System.Drawing.Size(200, 122);
     this.groupBox2.TabIndex = 3;
     this.groupBox2.TabStop  = false;
     this.groupBox2.Text     = "Options";
     this.flowLayoutPanel11.Controls.Add(this.checkBox4);
     this.flowLayoutPanel11.Controls.Add(this.checkBox5);
     this.flowLayoutPanel11.Controls.Add(this.checkBox6);
     this.flowLayoutPanel11.Controls.Add(this.checkBox7);
     this.flowLayoutPanel11.Dock          = DockStyle.Fill;
     this.flowLayoutPanel11.FlowDirection = FlowDirection.TopDown;
     this.flowLayoutPanel11.Location      = new Point(3, 19);
     this.flowLayoutPanel11.Name          = "flowLayoutPanel11";
     this.flowLayoutPanel11.Size          = new System.Drawing.Size(194, 100);
     this.flowLayoutPanel11.TabIndex      = 0;
     this.checkBox4.AutoSize   = true;
     this.checkBox4.Checked    = true;
     this.checkBox4.CheckState = CheckState.Checked;
     this.checkBox4.Enabled    = false;
     this.checkBox4.Location   = new Point(3, 3);
     this.checkBox4.Name       = "checkBox4";
     this.checkBox4.Size       = new System.Drawing.Size(159, 19);
     this.checkBox4.TabIndex   = 0;
     this.checkBox4.Text       = "Download posted photos";
     this.checkBox4.UseVisualStyleBackColor = true;
     this.checkBox5.AutoSize   = true;
     this.checkBox5.Checked    = true;
     this.checkBox5.CheckState = CheckState.Checked;
     this.checkBox5.Enabled    = false;
     this.checkBox5.Location   = new Point(3, 28);
     this.checkBox5.Name       = "checkBox5";
     this.checkBox5.Size       = new System.Drawing.Size(151, 19);
     this.checkBox5.TabIndex   = 1;
     this.checkBox5.Text       = "Download Liked photos";
     this.checkBox5.UseVisualStyleBackColor = true;
     this.checkBox6.AutoSize   = true;
     this.checkBox6.Checked    = true;
     this.checkBox6.CheckState = CheckState.Checked;
     this.checkBox6.Enabled    = false;
     this.checkBox6.Location   = new Point(3, 53);
     this.checkBox6.Name       = "checkBox6";
     this.checkBox6.Size       = new System.Drawing.Size(151, 19);
     this.checkBox6.TabIndex   = 2;
     this.checkBox6.Text       = "Download Fav'd photos";
     this.checkBox6.UseVisualStyleBackColor = true;
     this.checkBox7.AutoSize   = true;
     this.checkBox7.Checked    = true;
     this.checkBox7.CheckState = CheckState.Checked;
     this.checkBox7.Enabled    = false;
     this.checkBox7.Location   = new Point(3, 78);
     this.checkBox7.Name       = "checkBox7";
     this.checkBox7.Size       = new System.Drawing.Size(190, 19);
     this.checkBox7.TabIndex   = 3;
     this.checkBox7.Text       = "Download Commented photos";
     this.checkBox7.UseVisualStyleBackColor = true;
     this.lblError500px.AutoSize            = true;
     this.lblError500px.Location            = new Point(3, 211);
     this.lblError500px.Name     = "lblError500px";
     this.lblError500px.Size     = new System.Drawing.Size(0, 15);
     this.lblError500px.TabIndex = 3;
     this.wizardPageInstagram.Controls.Add(this.lblErrorInstragram);
     this.wizardPageInstagram.Controls.Add(this.lblErrorInstagram);
     this.wizardPageInstagram.Controls.Add(this.flowLayoutPanel6);
     this.wizardPageInstagram.Name     = "wizardPageInstagram";
     this.wizardPageInstagram.NextPage = this.wizardPageValidate;
     this.wizardPageInstagram.Size     = new System.Drawing.Size(471, 254);
     this.wizardPageInstagram.TabIndex = 4;
     this.wizardPageInstagram.Text     = "Instagram";
     this.wizardPageInstagram.Commit  += new EventHandler <WizardPageConfirmEventArgs>(this.wizardPageInstagram_Commit);
     this.lblErrorInstragram.AutoSize  = true;
     this.lblErrorInstragram.Location  = new Point(0, 210);
     this.lblErrorInstragram.Name      = "lblErrorInstragram";
     this.lblErrorInstragram.Size      = new System.Drawing.Size(0, 15);
     this.lblErrorInstragram.TabIndex  = 2;
     this.lblErrorInstagram.AutoSize   = true;
     this.lblErrorInstagram.Location   = new Point(0, 210);
     this.lblErrorInstagram.Name       = "lblErrorInstagram";
     this.lblErrorInstagram.Size       = new System.Drawing.Size(0, 15);
     this.lblErrorInstagram.TabIndex   = 1;
     this.flowLayoutPanel6.Controls.Add(this.label12);
     this.flowLayoutPanel6.Controls.Add(this.txtInstagram);
     this.flowLayoutPanel6.Controls.Add(this.label13);
     this.flowLayoutPanel6.Dock          = DockStyle.Top;
     this.flowLayoutPanel6.FlowDirection = FlowDirection.TopDown;
     this.flowLayoutPanel6.Location      = new Point(0, 0);
     this.flowLayoutPanel6.Name          = "flowLayoutPanel6";
     this.flowLayoutPanel6.Size          = new System.Drawing.Size(471, 203);
     this.flowLayoutPanel6.TabIndex      = 0;
     this.label12.AutoSize      = true;
     this.label12.Location      = new Point(3, 0);
     this.label12.Name          = "label12";
     this.label12.Size          = new System.Drawing.Size(227, 15);
     this.label12.TabIndex      = 0;
     this.label12.Text          = "Please type in the username on Instagram";
     this.txtInstagram.Location = new Point(3, 30);
     this.txtInstagram.Margin   = new System.Windows.Forms.Padding(3, 15, 3, 3);
     this.txtInstagram.Name     = "txtInstagram";
     this.txtInstagram.Size     = new System.Drawing.Size(139, 23);
     this.txtInstagram.TabIndex = 1;
     this.label13.AutoSize      = true;
     this.label13.Location      = new Point(3, 56);
     this.label13.Name          = "label13";
     this.label13.Size          = new System.Drawing.Size(94, 15);
     this.label13.TabIndex      = 2;
     this.label13.Text          = "ex: britneyspears";
     this.wizardPageFlickr.Controls.Add(this.flowLayoutPanel12);
     this.wizardPageFlickr.Name     = "wizardPageFlickr";
     this.wizardPageFlickr.Size     = new System.Drawing.Size(471, 254);
     this.wizardPageFlickr.TabIndex = 8;
     this.wizardPageFlickr.Text     = "Flickr";
     this.wizardPageFlickr.Commit  += new EventHandler <WizardPageConfirmEventArgs>(this.wizardPageFlickr_Commit);
     this.flowLayoutPanel12.Controls.Add(this.label18);
     this.flowLayoutPanel12.Controls.Add(this.txtFlickr);
     this.flowLayoutPanel12.Controls.Add(this.label19);
     this.flowLayoutPanel12.Dock          = DockStyle.Fill;
     this.flowLayoutPanel12.FlowDirection = FlowDirection.TopDown;
     this.flowLayoutPanel12.Location      = new Point(0, 0);
     this.flowLayoutPanel12.Name          = "flowLayoutPanel12";
     this.flowLayoutPanel12.Size          = new System.Drawing.Size(471, 254);
     this.flowLayoutPanel12.TabIndex      = 0;
     this.label18.AutoSize    = true;
     this.label18.Location    = new Point(3, 0);
     this.label18.Name        = "label18";
     this.label18.Size        = new System.Drawing.Size(205, 15);
     this.label18.TabIndex    = 1;
     this.label18.Text        = "Please type in the username on FlickR";
     this.txtFlickr.Location  = new Point(3, 30);
     this.txtFlickr.Margin    = new System.Windows.Forms.Padding(3, 15, 3, 3);
     this.txtFlickr.Name      = "txtFlickr";
     this.txtFlickr.Size      = new System.Drawing.Size(145, 23);
     this.txtFlickr.TabIndex  = 0;
     this.label19.AutoSize    = true;
     this.label19.Location    = new Point(3, 56);
     this.label19.Name        = "label19";
     this.label19.Size        = new System.Drawing.Size(87, 15);
     this.label19.TabIndex    = 2;
     this.label19.Text        = "ex: odins_raven";
     base.AutoScaleDimensions = new SizeF(6f, 13f);
     base.AutoScaleMode       = System.Windows.Forms.AutoScaleMode.Font;
     base.ClientSize          = new System.Drawing.Size(518, 409);
     base.Controls.Add(this.wizardControl1);
     this.glassExtenderProvider1.SetGlassMargins(this, new System.Windows.Forms.Padding(0));
     base.Name = "AddWizard";
     this.Text = "Add Site Wizard";
     ((ISupportInitialize)this.wizardControl1).EndInit();
     this.wizardPage1.ResumeLayout(false);
     this.flowLayoutPanel1.ResumeLayout(false);
     this.flowLayoutPanel1.PerformLayout();
     this.wizardPageTumblr.ResumeLayout(false);
     this.flowLayoutPanel2.ResumeLayout(false);
     this.flowLayoutPanel2.PerformLayout();
     this.wizardPageTumblrBlog.ResumeLayout(false);
     this.wizardPageTumblrBlog.PerformLayout();
     this.flowLayoutPanel3.ResumeLayout(false);
     this.flowLayoutPanel3.PerformLayout();
     this.grpTumblrBlog.ResumeLayout(false);
     this.flowLayoutPanel7.ResumeLayout(false);
     this.flowLayoutPanel7.PerformLayout();
     this.wizardPageValidate.ResumeLayout(false);
     this.flowLayoutPanel8.ResumeLayout(false);
     this.flowLayoutPanel8.PerformLayout();
     this.flowLayoutPanel10.ResumeLayout(false);
     this.flowLayoutPanel10.PerformLayout();
     this.groupBox1.ResumeLayout(false);
     this.flowLayoutPanel9.ResumeLayout(false);
     this.flowLayoutPanel9.PerformLayout();
     this.wizardPageTumblrTags.ResumeLayout(false);
     this.flowLayoutPanel4.ResumeLayout(false);
     this.flowLayoutPanel4.PerformLayout();
     this.wizardPage500.ResumeLayout(false);
     this.wizardPage500.PerformLayout();
     this.flowLayoutPanel5.ResumeLayout(false);
     this.flowLayoutPanel5.PerformLayout();
     this.groupBox2.ResumeLayout(false);
     this.flowLayoutPanel11.ResumeLayout(false);
     this.flowLayoutPanel11.PerformLayout();
     this.wizardPageInstagram.ResumeLayout(false);
     this.wizardPageInstagram.PerformLayout();
     this.flowLayoutPanel6.ResumeLayout(false);
     this.flowLayoutPanel6.PerformLayout();
     this.wizardPageFlickr.ResumeLayout(false);
     this.flowLayoutPanel12.ResumeLayout(false);
     this.flowLayoutPanel12.PerformLayout();
     base.ResumeLayout(false);
 }
Пример #40
0
		/// <summary>
		/// Fires the showFromNext event
		/// </summary>
		/// <param name="wiz">Sender</param>
		public void OnShowFromNext(WizardControl wiz)
		{
			if (ShowFromNext != null)
				ShowFromNext(wiz, EventArgs.Empty);
		}
Пример #41
0
        public LevelWizard3Point(LevelWizardBase.RuningState runningState)
            : base(500, 370, 9)
        {
            bool   allowLessThanZero         = ActiveSliceSettings.Instance.GetActiveValue("z_can_be_negative") == "1";
            string printLevelWizardTitle     = LocalizedString.Get("MatterControl");
            string printLevelWizardTitleFull = LocalizedString.Get("Print Leveling Wizard");

            Title = string.Format("{0} - {1}", printLevelWizardTitle, printLevelWizardTitleFull);
            ProbePosition[] probePositions = new ProbePosition[3];
            probePositions[0] = new ProbePosition();
            probePositions[1] = new ProbePosition();
            probePositions[2] = new ProbePosition();

            printLevelWizard = new WizardControl();
            AddChild(printLevelWizard);

            if (runningState == LevelWizardBase.RuningState.InitialStartupCalibration)
            {
                string requiredPageInstructions = "{0}\n\n{1}".FormatWith(requiredPageInstructions1, requiredPageInstructions2);
                printLevelWizard.AddPage(new FirstPageInstructions(initialPrinterSetupStepText, requiredPageInstructions));
            }

            string pageOneInstructions = string.Format("{0}\n\n\t• {1}\n\t• {2}\n\t• {3}\n\n{4}\n\n{5}\n\n{6}", pageOneInstructionsTextOne, pageOneInstructionsTextTwo, pageOneInstructionsTextThree, pageOneInstructionsTextFour, pageOneInstructionsText5, pageOneInstructionsText6, pageOneInstructionsText7);

            printLevelWizard.AddPage(new FirstPageInstructions(pageOneStepText, pageOneInstructions));

            string homingPageInstructions = string.Format("{0}:\n\n\t• {1}\n\n{2}", homingPageInstructionsTextOne, homingPageInstructionsTextTwo, homingPageInstructionsTextThree);

            printLevelWizard.AddPage(new HomePrinterPage(homingPageStepText, homingPageInstructions));

            Vector2 probeBackCenter = LevelWizardBase.GetPrintLevelPositionToSample(0);

            string             lowPrecisionPositionLabel = LocalizedString.Get("Position");
            string             lowPrecisionLabel         = LocalizedString.Get("Low Precision");
            GetCoarseBedHeight getCourseBedHeight        = new GetCoarseBedHeight(printLevelWizard,
                                                                                  new Vector3(probeBackCenter, 10),
                                                                                  string.Format("{0} {1} 1 - {2}", GetStepString(), lowPrecisionPositionLabel, lowPrecisionLabel),
                                                                                  probePositions[0], allowLessThanZero);

            printLevelWizard.AddPage(getCourseBedHeight);
            string precisionPositionLabel = LocalizedString.Get("Position");
            string medPrecisionLabel      = LocalizedString.Get("Medium Precision");

            printLevelWizard.AddPage(new GetFineBedHeight(string.Format("{0} {1} 1 - {2}", GetStepString(), precisionPositionLabel, medPrecisionLabel), probePositions[0], allowLessThanZero));
            string highPrecisionLabel = LocalizedString.Get("High Precision");

            printLevelWizard.AddPage(new GetUltraFineBedHeight(string.Format("{0} {1} 1 - {2}", GetStepString(), precisionPositionLabel, highPrecisionLabel), probePositions[0], allowLessThanZero));

            Vector2 probeFrontLeft        = LevelWizardBase.GetPrintLevelPositionToSample(1);
            string  positionLabelTwo      = LocalizedString.Get("Position");
            string  lowPrecisionTwoLabel  = LocalizedString.Get("Low Precision");
            string  medPrecisionTwoLabel  = LocalizedString.Get("Medium Precision");
            string  highPrecisionTwoLabel = LocalizedString.Get("High Precision");

            printLevelWizard.AddPage(new GetCoarseBedHeight(printLevelWizard, new Vector3(probeFrontLeft, 10), string.Format("{0} {1} 2 - {2}", GetStepString(), positionLabelTwo, lowPrecisionTwoLabel), probePositions[1], allowLessThanZero));
            printLevelWizard.AddPage(new GetFineBedHeight(string.Format("{0} {1} 2 - {2}", GetStepString(), positionLabelTwo, medPrecisionTwoLabel), probePositions[1], allowLessThanZero));
            printLevelWizard.AddPage(new GetUltraFineBedHeight(string.Format("{0} {1} 2 - {2}", GetStepString(), positionLabelTwo, highPrecisionTwoLabel), probePositions[1], allowLessThanZero));

            Vector2 probeFrontRight         = LevelWizardBase.GetPrintLevelPositionToSample(2);
            string  positionLabelThree      = LocalizedString.Get("Position");
            string  lowPrecisionLabelThree  = LocalizedString.Get("Low Precision");
            string  medPrecisionLabelThree  = LocalizedString.Get("Medium Precision");
            string  highPrecisionLabelThree = LocalizedString.Get("High Precision");

            printLevelWizard.AddPage(new GetCoarseBedHeight(printLevelWizard, new Vector3(probeFrontRight, 10), string.Format("{0} {1} 3 - {2}", GetStepString(), positionLabelThree, lowPrecisionLabelThree), probePositions[2], allowLessThanZero));
            printLevelWizard.AddPage(new GetFineBedHeight(string.Format("{0} {1} 3 - {2}", GetStepString(), positionLabelThree, medPrecisionLabelThree), probePositions[2], allowLessThanZero));
            printLevelWizard.AddPage(new GetUltraFineBedHeight(string.Format("{0} {1} 3 - {2}", GetStepString(), positionLabelThree, highPrecisionLabelThree), probePositions[2], allowLessThanZero));

            string doneInstructions = string.Format("{0}\n\n\t• {1}\n\n{2}", doneInstructionsText, doneInstructionsTextTwo, doneInstructionsTextThree);

            printLevelWizard.AddPage(new LastPage3PointInstructions("Done".Localize(), doneInstructions, probePositions));
        }
Пример #42
0
		public GetCoarseBedHeight(WizardControl container, Vector3 probeStartPosition, string pageDescription, ProbePosition whereToWriteProbePosition, bool allowLessThan0)
			: base(pageDescription, setZHeightCoarseInstruction1, setZHeightCoarseInstruction2, 1, whereToWriteProbePosition, allowLessThan0)
		{
			this.container = container;
			this.probeStartPosition = probeStartPosition;
		}
Пример #43
0
		/// <summary>
		/// Fires the showFromBack event
		/// </summary>
		/// <param name="wiz">sender</param>
		public void OnShowFromBack(WizardControl wiz)
		{
			if (ShowFromBack != null)
				ShowFromBack(wiz, EventArgs.Empty);
		}
Пример #44
0
        /// <summary>
        /// Finds a control.
        /// </summary>
        /// <param name="control">The control to find.</param>
        /// <returns>The control.</returns>
        private Control FindControl(WizardControl control)
        {
            string tag = GetControlTag(control);

            return(this.FindControl(this, tag));
        }