C# Класс MediaConvertGUI.SupportMethods

Показать файл Открыть проект Примеры использования класса

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

Метод Описание
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