C# Class MediaConvertGUI.SupportMethods

Afficher le fichier Open project: petrj/MediaConvertGUI Class Usage Examples

Méthodes publiques

Méthode 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 méthode

public static ClearCombo ( Gtk combo ) : void
combo Gtk
Résultat void

Execute() public static méthode

public static Execute ( string command, string arguments, bool noErrors = true ) : void
command string
arguments string
noErrors bool
Résultat void

ExecuteAndReturnOutput() public static méthode

public static ExecuteAndReturnOutput ( string command, string arguments ) : string
command string
arguments string
Résultat string

ExecuteAndReturnOutputAsList() public static méthode

public static ExecuteAndReturnOutputAsList ( string command, string arguments ) : List
command string
arguments string
Résultat List

ExecuteInShell() public static méthode

public static ExecuteInShell ( string command ) : void
command string
Résultat void

FillComboBox() public static méthode

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. ///
Résultat void

FillComboBox() public static méthode

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. ///
Résultat void

FillComboBoxEntry() public static méthode

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

FillComboBoxEntry() public static méthode

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. ///
Résultat void

HuamReadableDuration() public static méthode

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

HumanReadableSize() public static méthode

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

IsInt() public static méthode

public static IsInt ( this s ) : bool
s this
Résultat bool

IsNumeric() public static méthode

public static IsNumeric ( this s ) : bool
s this
Résultat bool

ParseDecimalValueFromValue() public static méthode

public static ParseDecimalValueFromValue ( string value, string>.Dictionary dict ) : decimal
value string
dict string>.Dictionary
Résultat decimal

SetAvailability() public static méthode

public static SetAvailability ( Gtk widget, bool editable = false ) : void
widget Gtk
editable bool
Résultat void

ToDecimal() public static méthode

public static ToDecimal ( this s ) : decimal
s this
Résultat decimal