C# 클래스 MediaConvertGUI.SupportMethods

파일 보기 프로젝트 열기: petrj/MediaConvertGUI 1 사용 예제들

공개 메소드들

메소드 설명
ClearCombo ( Gtk combo ) : void
Execute ( string command, string arguments, bool noErrors = true ) : void
ExecuteAndReturnOutput ( string command, string arguments ) : string
ExecuteAndReturnOutputAsList ( string command, string arguments ) : List
ExecuteInShell ( string command ) : void
FillComboBox ( Gtk combo, List items, bool editable, string currentValue ) : void

Fills the combo box.

FillComboBox ( Gtk combo, Type enumType, bool editable, int currentValue ) : void

Fills the combo box.

FillComboBoxEntry ( Gtk combo, string>.Dictionary items, decimal currentValue, bool editable ) : void
FillComboBoxEntry ( Gtk combo, List items, string currentValue, bool isDecimal, bool editable ) : void

Fills the combo box entry.

HuamReadableDuration ( decimal miliSeconds ) : string

Returns duration (decimal) in miliseconds as string like "hh:mm:ss"

HumanReadableSize ( long sizeInBytes ) : string

Returns size (long) as string like "2 GB"

IsInt ( this s ) : bool
IsNumeric ( this s ) : bool
ParseDecimalValueFromValue ( string value, string>.Dictionary dict ) : decimal
SetAvailability ( Gtk widget, bool editable = false ) : void
ToDecimal ( this s ) : decimal

메소드 상세

ClearCombo() 공개 정적인 메소드

public static ClearCombo ( Gtk combo ) : void
combo Gtk
리턴 void

Execute() 공개 정적인 메소드

public static Execute ( string command, string arguments, bool noErrors = true ) : void
command string
arguments string
noErrors bool
리턴 void

ExecuteAndReturnOutput() 공개 정적인 메소드

public static ExecuteAndReturnOutput ( string command, string arguments ) : string
command string
arguments string
리턴 string

ExecuteAndReturnOutputAsList() 공개 정적인 메소드

public static ExecuteAndReturnOutputAsList ( string command, string arguments ) : List
command string
arguments string
리턴 List

ExecuteInShell() 공개 정적인 메소드

public static ExecuteInShell ( string command ) : void
command string
리턴 void

FillComboBox() 공개 정적인 메소드

Fills the combo box.
public static FillComboBox ( Gtk combo, List items, bool editable, string currentValue ) : void
combo Gtk /// Combo. ///
items List /// Items. ///
editable bool /// Editable. ///
currentValue string /// Current value. ///
리턴 void

FillComboBox() 공개 정적인 메소드

Fills the combo box.
public static FillComboBox ( Gtk combo, Type enumType, bool editable, int currentValue ) : void
combo Gtk /// Combo. ///
enumType System.Type
editable bool /// Editable. ///
currentValue int /// Current value. ///
리턴 void

FillComboBoxEntry() 공개 정적인 메소드

public static FillComboBoxEntry ( Gtk combo, string>.Dictionary items, decimal currentValue, bool editable ) : void
combo Gtk
items string>.Dictionary
currentValue decimal
editable bool
리턴 void

FillComboBoxEntry() 공개 정적인 메소드

Fills the combo box entry.
public static FillComboBoxEntry ( Gtk combo, List items, string currentValue, bool isDecimal, bool editable ) : void
combo Gtk /// Combo. ///
items List /// Items. ///
currentValue string /// Current value. ///
isDecimal bool
editable bool /// Editable. ///
리턴 void

HuamReadableDuration() 공개 정적인 메소드

Returns duration (decimal) in miliseconds as string like "hh:mm:ss"
public static HuamReadableDuration ( decimal miliSeconds ) : string
miliSeconds decimal
리턴 string

HumanReadableSize() 공개 정적인 메소드

Returns size (long) as string like "2 GB"
public static HumanReadableSize ( long sizeInBytes ) : string
sizeInBytes long
리턴 string

IsInt() 공개 정적인 메소드

public static IsInt ( this s ) : bool
s this
리턴 bool

IsNumeric() 공개 정적인 메소드

public static IsNumeric ( this s ) : bool
s this
리턴 bool

ParseDecimalValueFromValue() 공개 정적인 메소드

public static ParseDecimalValueFromValue ( string value, string>.Dictionary dict ) : decimal
value string
dict string>.Dictionary
리턴 decimal

SetAvailability() 공개 정적인 메소드

public static SetAvailability ( Gtk widget, bool editable = false ) : void
widget Gtk
editable bool
리턴 void

ToDecimal() 공개 정적인 메소드

public static ToDecimal ( this s ) : decimal
s this
리턴 decimal