C# Класс Revit.SDK.Samples.SharedCoordinateSystem.CS.CoordinateSystemDataForm

coordinate system data form
Наследование: System.Windows.Forms.Form
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
CoordinateSystemDataForm ( CoordinateSystemData data, CitySet citySet, SiteLocation siteLocation ) : System

override constructor

Защищенные методы

Метод Описание
Dispose ( bool disposing ) : void

Clean up any resources being used.

Приватные методы

Метод Описание
CheckModify ( ) : bool

check whether user modify the offset value

CheckSelecteCurrent ( ) : void

when the selected item is the current location,make the button to disable

CoordinateSystemDataForm ( ) : System

constructor of form

CoordinateSystemDataForm_Load ( object sender, EventArgs e ) : void

load the form

DealDecimalNumber ( string value ) : string

deal with decimal number

DisplayInformation ( ) : void

display the location information on the form

DoCityNameChanged ( ) : void

call by CitiesNameSelectedChanged,when CitiesName ComboBox selected changed

DoTextBoxChanged ( ) : void

called by some functions to do same operation

GetCityInfo ( string cityName, CityInfoString &cityInfoString ) : bool

used when city name changed

GetCityNameTimeZone ( CityInfoString cityInfoString, string &cityName, string &timeZone ) : void

used when city information changed

InitializeComponent ( ) : void

Required method for Designer support - do not modify the contents of this method with the code editor.

SaveSiteLocation ( ) : void

save siteLocation to Revit

ShowOffsetValue ( ) : void

show the offset values on the form

angleTextBox_Leave ( object sender, EventArgs e ) : void

check the format of the user's input and add a degree symbol behind the angle value

cityNameComboBox_SelectedValueChanged ( object sender, EventArgs e ) : void

be invoked when SelectedValue of control cityNameComboBox changed

duplicateButton_Click ( object sender, EventArgs e ) : void

display the duplicate form

latitudeTextBox_Leave ( object sender, EventArgs e ) : void

be invoked when focus leave control latitudeTextBox

latitudeTextBox_TextChanged ( object sender, EventArgs e ) : void

be invoked when text changed in control latitudeTextBox

locationListBox_SelectedIndexChanged ( object sender, EventArgs e ) : void

the function will be invoked when the selected item changed

longitudeTextBox_Leave ( object sender, EventArgs e ) : void

be invoked when focus leave control longitudeTextBox

longitudeTextBox_TextChanged ( object sender, EventArgs e ) : void

be invoked when text changed in control longitudeTextBox

makeCurrentButton_Click ( object sender, EventArgs e ) : void

set the selected item of the listbox to be the current project location

okButton_Click ( object sender, EventArgs e ) : void

close the form and return true

timeZoneComboBox_SelectedValueChanged ( object sender, EventArgs e ) : void

be invoked when SelectValue of control timeZoneComboBox changed

Описание методов

CoordinateSystemDataForm() публичный Метод

override constructor
public CoordinateSystemDataForm ( CoordinateSystemData data, CitySet citySet, SiteLocation siteLocation ) : System
data CoordinateSystemData a instance of CoordinateSystemData class
citySet CitySet
siteLocation SiteLocation
Результат System

Dispose() защищенный Метод

Clean up any resources being used.
protected Dispose ( bool disposing ) : void
disposing bool true if managed resources should be disposed; otherwise, false.
Результат void