Driver.Dialog.SetVisiblePage(int)

Here are the examples of the csharp api class Driver.Dialog.SetVisiblePage(int) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

4 Examples 7

1. Example

Project: linqpad-soap-driver
Source File: Dialog.xaml.cs
View license
void Back_Click(object sender, EventArgs e)
		{
			SetVisiblePage(page - 1);
		}

2. Example

Project: linqpad-soap-driver
Source File: Dialog.xaml.cs
View license
void Select_Click(object sender, EventArgs e)
		{
			SetVisiblePage(2);
		}

3. Example

Project: linqpad-soap-driver
Source File: Dialog.xaml.cs
View license
void Discovery_Connect(DiscoveryCompleteEventArgs e)
		{
			var reference = e.Reference;
			foreach (var warning in reference.Warnings) logger.Warn(warning);		
			foreach (var error in reference.Errors) logger.Error(error);

			if (reference.HasErrors)
				logger.Write("Cannot create a connection.");
			else
			{
				logger.Write("Click \"Next\" to continue.");
				SelectButton.IsEnabled = true;

				var reset = string.IsNullOrEmpty(Model.BindingName) ||
					!reference.Bindings.Any(b => b.Name == Model.BindingName);
				if (reset)
				{
					Model.BindingName = reference.Bindings.Count > 0
						? reference.Bindings[0].Name : "";
				}

				BindingBox.ItemsSource = reference.Bindings.Select(b => b.Name);
				BindingBox.SelectedItem = Model.BindingName;
			}

			RestartButton.IsEnabled = true;
			Progress.IsIndeterminate = false;
			LogBox.ScrollToEnd();

			if (!reference.HasErrors && !reference.HasWarnings)
			{
				SetVisiblePage(2);
			}		
		}

4. Example

Project: linqpad-soap-driver
Source File: Dialog.xaml.cs
View license
void Connect_Click(object sender, EventArgs e)
		{
			if (Uri.IsWellFormedUriString(Model.Uri, UriKind.Absolute))
			{
				SetVisiblePage(1);
				Connect();
			}
		}