本文整理汇总了C#中EditType类的典型用法代码示例。如果您正苦于以下问题:C# EditType类的具体用法?C# EditType怎么用?C# EditType使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
EditType类属于命名空间,在下文中一共展示了EditType类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Edit
private int m_iStartB; //Where to Insert or Change in the "B" sequence
#endregion Fields
#region Constructors
public Edit(EditType eType, int iStartA, int iStartB, int iLength)
{
m_eType = eType;
m_iStartA = iStartA;
m_iStartB = iStartB;
m_iLength = iLength;
}
示例2: RoleEditForm
public RoleEditForm(AerospikeClient client, EditType editType, RoleRow row)
{
this.client = client;
this.editType = editType;
InitializeComponent();
grid.AutoGenerateColumns = false;
PrivilegeCodeColumn.DataPropertyName = "Code";
PrivilegeCodeColumn.ValueMember = "PrivilegeCode";
PrivilegeCodeColumn.DisplayMember = "Label";
PrivilegeCodeColumn.DataSource = GetPrivilegeTypeBinding();
NamespaceColumn.DataPropertyName = "Namespace";
SetNameColumn.DataPropertyName = "SetName";
BindingSource bindingSource = new BindingSource();
switch (editType)
{
case EditType.CREATE:
bindingSource.DataSource = new BindingList<Privilege>();
break;
case EditType.EDIT:
this.Text = "Edit Role";
nameBox.Enabled = false;
nameBox.Text = row.name;
bindingSource.DataSource = LoadPrivileges(row.privileges);
oldPrivileges = row.privileges;
break;
}
grid.DataSource = bindingSource;
}
示例3: GetMode
protected override CASMode GetMode(SimDescription sim, ref OutfitCategories startCategory, ref int startIndex, ref EditType editType)
{
editType = mEditType;
if (mStartCategory != OutfitCategories.None)
{
startCategory = mStartCategory;
startIndex = 0;
}
if (sim == null)
{
return CASMode.Dresser;
}
else if (sim.IsEP11Bot)
{
return CASMode.EditABot;
}
else if (sim.IsHuman)
{
return CASMode.Dresser;
}
else if (sim.IsHorse)
{
return CASMode.Tack;
}
else if (sim.IsCat || sim.IsADogSpecies)
{
return CASMode.Collar;
}
else
{
return CASMode.Dresser;
}
}
示例4: DiffViewLine
public DiffViewLine(string strText, int iNumber, EditType Type, bool bEdited)
{
m_strText = strText;
m_iNumber = iNumber;
m_Type = Type;
m_bEdited = bEdited;
}
示例5: GetChangeStruct
private static EditStruct GetChangeStruct(string source, string target, int i, int j, EditType type)
{
EditStruct es = new EditStruct();
es.editType = type;
es.editPos = i - 1;
es.editChar = target[j - 1];
return es;
}
示例6: AddMode
/// <summary>
/// Set Editor to Add Mode. This method must be called before show dialog.
/// </summary>
public void AddMode()
{
OKButtonLabel = "_Save";
OnPropertyChanged("OKButtonLabel");
IsComplete = false;
mode = EditType.Add;
OnModeSet();
}
示例7: BaseAppEditorVM
protected BaseAppEditorVM(Window w)
{
view = w;
view.DataContext = this;
view.Owner = AppData.MainWindowView;
mode = EditType.NotSet;
OKButtonCommand = new RelayCommand(OKAction);
CancelButtonCommand = new RelayCommand(CancelAction);
}
示例8: Translate
public static string Translate(EditType type)
{
switch (type)
{
case EditType.WebEdit:
return HtmlUtility.Encode(SR.StudyDetails_WebEdit_Description);
case EditType.WebServiceEdit:
return HtmlUtility.Encode(SR.StudyDetails_WebServiceEdit_Description);
}
return HtmlUtility.Encode(HtmlUtility.GetEnumInfo(type).LongDescription);
}
示例9: GetMode
protected override CASMode GetMode(SimDescription sim, ref OutfitCategories startCategory, ref int startIndex, ref EditType editType)
{
if (!mAlwaysCAS)
{
if (mCAB)
{
return CASMode.CreateABot;
}
else if (sim.IsEP11Bot)
{
return CASMode.EditABot;
}
}
return CASMode.Full;
}
示例10: GetJqColumnEditTypeValue
public static string GetJqColumnEditTypeValue(EditType? editType)
{
switch (editType)
{
case EditType.Text:
return string.Empty;
case EditType.Select:
return "select";
case EditType.Check:
return "checkbox";
case EditType.TextArea:
return "textarea";
default:
return string.Empty;
}
}
示例11: EditForm
public EditForm(EditType type)
{
this.type = type;
page = 0;
InitializeComponent();
switch (type)
{
case EditType.InventoryEdit:
table = "inventory";
break;
case EditType.CustomerEdit:
table = "customer";
Text = "Customer Edit";
if (DB.Instance.CustomerPagination)
{
showPagination();
}
break;
case EditType.EmployeeEdit:
table = "employee";
Text = "Employee Edit";
if (DB.Instance.EmployeePagination)
{
showPagination();
}
break;
case EditType.OrderEdit:
table = "order";
Text = "Order Edit";
if (DB.Instance.OrderPagination)
{
showPagination();
}
break;
}
if (EditType.OrderEdit == type) fetch(
@"SELECT
O.id, C.first_name, C.last_name, O.dt, sum(I.cost * OI.amount) as Total, OS.title
FROM
order_inventory AS OI
INNER JOIN inventory AS I ON I.id = OI.inventory_id
INNER JOIN `order` AS O ON O.id = OI.order_id
INNER JOIN customer AS C ON C.id = O.customer_id
INNER JOIN order_status AS OS ON OS.id = O.`status`
GROUP BY OI.order_id");
else fetchAll();
}
示例12: OrderEdit
public OrderEdit(uint uid, EditType et)
: this()
{
Tag = et;
query =
@"SELECT
O.id, O.dt, sum(I.cost * OI.amount) as Total, OS.title
FROM
order_inventory AS OI
INNER JOIN inventory AS I ON I.id = OI.inventory_id
INNER JOIN `order` AS O ON O.id = OI.order_id
INNER JOIN customer AS C ON C.id = O.customer_id
INNER JOIN order_status AS OS ON OS.id = O.`status`
WHERE O.customer_id = " + uid + @"
GROUP BY OI.order_id";
refresh();
}
示例13: EditWizardController
// Call to load from the XIB/NIB file
public EditWizardController (EditType type, CmisRepoCredentials credentials, string name, string remotePath, List<string> ignores, string localPath) : base ("EditWizard")
{
FolderName = name;
this.Credentials = credentials;
this.remotePath = remotePath;
this.Ignores = new List<string>(ignores);
this.localPath = localPath;
this.type = type;
Initialize ();
Controller.OpenWindowEvent += () =>
{
InvokeOnMainThread (() =>
{
this.Window.OrderFrontRegardless ();
});
};
}
示例14: EditForm
public EditForm(EditType EditMode,Task StartValue)
{
InitializeComponent();
this.FormClosing += new FormClosingEventHandler(EditForm_FormClosing);
_editmode = EditMode;
_task = StartValue;
Fill();
switch (_editmode)
{
case EditType.New:
{
_task.ID = -1;
break;
}
case EditType.Edit:
{
break;
}
}
}
示例15: SetType
public static void SetType(string name)
{
if(name == "Brush")
{
editType = EditType.Brush;
}
else if (name == "World")
{
editType = EditType.World;
}
else if (name == "Erase")
{
editType = EditType.Erase;
}
else if (name == "Game")
{
editType = EditType.Game;
}
else
{
editType = EditType.None;
}
}