C# 클래스 LitDev.LDDialogs

파일 보기 프로젝트 열기: litdev1/LitDev

공개 프로퍼티들

프로퍼티 타입 설명
_Waiting bool

공개 메소드들

메소드 설명
AddRightClickMenu ( Primitive items, Primitive images ) : void

Add a right click context menu for the GraphicsWindow.

Calendar ( Primitive start ) : Primitive

A popup calendar date chooser - double click a date or press return to select a date.

Colour ( ) : Primitive

Choose a colour from a dialog.

Confirm ( Primitive text, Primitive title ) : Primitive

A message dialog with Yes, No and Cancel options.

EndWait ( ) : void

Close the waiting popup window.

Font ( Primitive font ) : Primitive

Use the font dialog to select a font.

GetFolder ( Primitive InitialFolder ) : Primitive

A Dialog to get a folder (directory).

OpenFile ( Primitive extension, Primitive folder ) : Primitive

Open File Dialogue (get an existing file).

SaveFile ( Primitive extension, Primitive folder ) : Primitive

Save File Dialogue (get a new file).

SetStartupPosition ( Primitive x, Primitive y, Primitive mode ) : void

Set the startup coordinates (top left) for most dialoges. This should be set before the dialog is called.

ToolTip ( Primitive shapeName, Primitive tip ) : void

Set a tooltip popup for common shapes and controls.

Wait ( Primitive text, Primitive colour ) : void

Create a waiting popup window with a text message.

getMenu ( BitmapSource>.Dictionary _savedImages, Primitive items, Primitive images, int iconSize ) : System.Windows.Controls.ContextMenu

비공개 메소드들

메소드 설명
ShowWait ( ) : void
StartPosition ( System form, string title ) : void
_MenuClickEvent ( Object sender, EventArgs e ) : void
getFilter ( Primitive extension ) : string

메소드 상세

AddRightClickMenu() 공개 정적인 메소드

Add a right click context menu for the GraphicsWindow.
public static AddRightClickMenu ( Primitive items, Primitive images ) : void
items Primitive An array of context menu item selection texts.
images Primitive Optional array of image icons, any or all may be "". /// They may be the result of ImageList.LoadImage or local or network image file.
리턴 void

Calendar() 공개 정적인 메소드

A popup calendar date chooser - double click a date or press return to select a date.
public static Calendar ( Primitive start ) : Primitive
start Primitive The initial date in the control, may be "" for today.
리턴 Primitive

Colour() 공개 정적인 메소드

Choose a colour from a dialog.
public static Colour ( ) : Primitive
리턴 Primitive

Confirm() 공개 정적인 메소드

A message dialog with Yes, No and Cancel options.
public static Confirm ( Primitive text, Primitive title ) : Primitive
text Primitive Text question for the dialog.
title Primitive Title for the dialog.
리턴 Primitive

EndWait() 공개 정적인 메소드

Close the waiting popup window.
public static EndWait ( ) : void
리턴 void

Font() 공개 정적인 메소드

Use the font dialog to select a font.
public static Font ( Primitive font ) : Primitive
font Primitive /// An array with the initial font selected. /// It has the same format as the return array, and can be an empty array "". ///
리턴 Primitive

GetFolder() 공개 정적인 메소드

A Dialog to get a folder (directory).
public static GetFolder ( Primitive InitialFolder ) : Primitive
InitialFolder Primitive The initial folder or "" for the last folder selected.
리턴 Primitive

OpenFile() 공개 정적인 메소드

Open File Dialogue (get an existing file).
public static OpenFile ( Primitive extension, Primitive folder ) : Primitive
extension Primitive /// The file type extension, e.g. "sb". /// This may also be an array of extension types such as "1=png;2=jpg;". /// If the extension contains a "|" character then it will be used directly such as "Images|*.bmp;*.jpg;*.gif;*.png|All files (*.*)|*.*". ///
folder Primitive /// The initial folder to open dialog with, can be "". ///
리턴 Primitive

SaveFile() 공개 정적인 메소드

Save File Dialogue (get a new file).
public static SaveFile ( Primitive extension, Primitive folder ) : Primitive
extension Primitive /// The file type extension, e.g. "sb". /// This may also be an array of extension types such as "1=png;2=jpg;". /// If the extension contains a "|" character then it will be used directly such as "Images|*.bmp;*.jpg;*.gif;*.png|All files (*.*)|*.*". ///
folder Primitive /// The initial folder to open dialog with, can be "". ///
리턴 Primitive

SetStartupPosition() 공개 정적인 메소드

Set the startup coordinates (top left) for most dialoges. This should be set before the dialog is called.
public static SetStartupPosition ( Primitive x, Primitive y, Primitive mode ) : void
x Primitive The X coordinate.
y Primitive The X coordinate.
mode Primitive The mode which is one of the following /// 0 : Off (default) /// 1 : The coordinates are relative to the graphics window, equivalent to GraphicsWindow.MouseX/Y. /// 2 : The coordinates are relative to the display window, equivalent to Desktop.MouseX/Y
리턴 void

ToolTip() 공개 정적인 메소드

Set a tooltip popup for common shapes and controls.
public static ToolTip ( Primitive shapeName, Primitive tip ) : void
shapeName Primitive The shape or control.
tip Primitive The text content of the tooltip.
리턴 void

Wait() 공개 정적인 메소드

Create a waiting popup window with a text message.
public static Wait ( Primitive text, Primitive colour ) : void
text Primitive The text to display in the popup window.
colour Primitive The colour of the popup window border, may be "" for default.
리턴 void

getMenu() 공개 정적인 메소드

public static getMenu ( BitmapSource>.Dictionary _savedImages, Primitive items, Primitive images, int iconSize ) : System.Windows.Controls.ContextMenu
_savedImages BitmapSource>.Dictionary
items Primitive
images Primitive
iconSize int
리턴 System.Windows.Controls.ContextMenu

프로퍼티 상세

_Waiting 공개적으로 정적으로 프로퍼티

public static bool _Waiting
리턴 bool