C# Class MediaConvertGUI.SupportMethods

ファイルを表示 Open project: petrj/MediaConvertGUI Class Usage Examples

Public Methods

Method Description
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

Method Details

ClearCombo() public static method

public static ClearCombo ( Gtk combo ) : void
combo Gtk
return void

Execute() public static method

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

ExecuteAndReturnOutput() public static method

public static ExecuteAndReturnOutput ( string command, string arguments ) : string
command string
arguments string
return string

ExecuteAndReturnOutputAsList() public static method

public static ExecuteAndReturnOutputAsList ( string command, string arguments ) : List
command string
arguments string
return List

ExecuteInShell() public static method

public static ExecuteInShell ( string command ) : void
command string
return void

FillComboBox() public static method

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. ///
return void

FillComboBox() public static method

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. ///
return void

FillComboBoxEntry() public static method

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

FillComboBoxEntry() public static method

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. ///
return void

HuamReadableDuration() public static method

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

HumanReadableSize() public static method

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

IsInt() public static method

public static IsInt ( this s ) : bool
s this
return bool

IsNumeric() public static method

public static IsNumeric ( this s ) : bool
s this
return bool

ParseDecimalValueFromValue() public static method

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

SetAvailability() public static method

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

ToDecimal() public static method

public static ToDecimal ( this s ) : decimal
s this
return decimal