本文整理汇总了C#中Chummer.frmNotes类的典型用法代码示例。如果您正苦于以下问题:C# frmNotes类的具体用法?C# frmNotes怎么用?C# frmNotes使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
frmNotes类属于Chummer命名空间,在下文中一共展示了frmNotes类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: tsVehicleWeaponNotes_Click
private void tsVehicleWeaponNotes_Click(object sender, EventArgs e)
{
bool blnFound = false;
Vehicle objFoundVehicle = new Vehicle(_objCharacter);
Weapon objWeapon = _objFunctions.FindVehicleWeapon(treVehicles.SelectedNode.Tag.ToString(), _objCharacter.Vehicles, out objFoundVehicle);
if (objWeapon != null)
blnFound = true;
if (blnFound)
{
frmNotes frmItemNotes = new frmNotes();
frmItemNotes.Notes = objWeapon.Notes;
string strOldValue = objWeapon.Notes;
frmItemNotes.ShowDialog(this);
if (frmItemNotes.DialogResult == DialogResult.OK)
{
objWeapon.Notes = frmItemNotes.Notes;
if (objWeapon.Notes != strOldValue)
{
_blnIsDirty = true;
UpdateWindowTitle();
}
}
if (objWeapon.Notes != string.Empty)
treVehicles.SelectedNode.ForeColor = Color.SaddleBrown;
else
{
if (objWeapon.Cyberware || objWeapon.Category == "Gear")
treVehicles.SelectedNode.ForeColor = SystemColors.GrayText;
else
treVehicles.SelectedNode.ForeColor = SystemColors.WindowText;
}
treVehicles.SelectedNode.ToolTipText = CommonFunctions.WordWrap(objWeapon.Notes, 100);
}
}
示例2: tsQualityNotes_Click
private void tsQualityNotes_Click(object sender, EventArgs e)
{
try
{
bool blnFound = false;
Quality objQuality = _objFunctions.FindQuality(treQualities.SelectedNode.Tag.ToString(), _objCharacter.Qualities);
if (objQuality != null)
blnFound = true;
if (blnFound)
{
frmNotes frmItemNotes = new frmNotes();
frmItemNotes.Notes = objQuality.Notes;
string strOldValue = objQuality.Notes;
frmItemNotes.ShowDialog(this);
if (frmItemNotes.DialogResult == DialogResult.OK)
{
objQuality.Notes = frmItemNotes.Notes;
if (objQuality.Notes != strOldValue)
{
_blnIsDirty = true;
UpdateWindowTitle();
}
}
if (objQuality.Notes != string.Empty)
treQualities.SelectedNode.ForeColor = Color.SaddleBrown;
else
{
if (objQuality.OriginSource == QualitySource.Metatype || objQuality.OriginSource == QualitySource.MetatypeRemovable)
treQualities.SelectedNode.ForeColor = SystemColors.GrayText;
else if (!objQuality.Implemented)
treQualities.SelectedNode.ForeColor = Color.Red;
else
treQualities.SelectedNode.ForeColor = SystemColors.WindowText;
}
treQualities.SelectedNode.ToolTipText = CommonFunctions.WordWrap(objQuality.Notes, 100);
}
}
catch
{
}
}
示例3: tsVehicleNotes_Click
private void tsVehicleNotes_Click(object sender, EventArgs e)
{
Vehicle objVehicle = new Vehicle(_objCharacter);
VehicleMod objMod = new VehicleMod(_objCharacter);
bool blnFoundVehicle = false;
bool blnFoundMod = false;
try
{
foreach (Vehicle objCharacterVehicle in _objCharacter.Vehicles)
{
if (objCharacterVehicle.InternalId == treVehicles.SelectedNode.Tag.ToString())
{
objVehicle = objCharacterVehicle;
blnFoundVehicle = true;
break;
}
foreach (VehicleMod objVehicleMod in objCharacterVehicle.Mods)
{
if (objVehicleMod.InternalId == treVehicles.SelectedNode.Tag.ToString())
{
objMod = objVehicleMod;
blnFoundMod = true;
break;
}
}
}
if (blnFoundVehicle)
{
frmNotes frmItemNotes = new frmNotes();
frmItemNotes.Notes = objVehicle.Notes;
string strOldValue = objVehicle.Notes;
frmItemNotes.ShowDialog(this);
if (frmItemNotes.DialogResult == DialogResult.OK)
{
objVehicle.Notes = frmItemNotes.Notes;
if (objVehicle.Notes != strOldValue)
{
_blnIsDirty = true;
UpdateWindowTitle();
}
}
if (objVehicle.Notes != string.Empty)
treVehicles.SelectedNode.ForeColor = Color.SaddleBrown;
else
treVehicles.SelectedNode.ForeColor = SystemColors.WindowText;
treVehicles.SelectedNode.ToolTipText = CommonFunctions.WordWrap(objVehicle.Notes, 100);
}
if (blnFoundMod)
{
frmNotes frmItemNotes = new frmNotes();
frmItemNotes.Notes = objMod.Notes;
string strOldValue = objMod.Notes;
frmItemNotes.ShowDialog(this);
if (frmItemNotes.DialogResult == DialogResult.OK)
{
objMod.Notes = frmItemNotes.Notes;
if (objMod.Notes != strOldValue)
{
_blnIsDirty = true;
UpdateWindowTitle();
}
}
if (objMod.Notes != string.Empty)
treVehicles.SelectedNode.ForeColor = Color.SaddleBrown;
else
{
if (objMod.IncludedInVehicle)
treVehicles.SelectedNode.ForeColor = SystemColors.GrayText;
else
treVehicles.SelectedNode.ForeColor = SystemColors.WindowText;
}
treVehicles.SelectedNode.ToolTipText = CommonFunctions.WordWrap(objMod.Notes, 100);
}
}
catch
{
}
}
示例4: tssLimitModifierNotes_Click
private void tssLimitModifierNotes_Click(object sender, EventArgs e)
{
try
{
LimitModifier obLimitModifier = _objFunctions.FindLimitModifier(treLimit.SelectedNode.Tag.ToString(), _objCharacter.LimitModifiers);
if (obLimitModifier != null)
{
frmNotes frmItemNotes = new frmNotes();
frmItemNotes.Notes = obLimitModifier.Notes;
string strOldValue = obLimitModifier.Notes;
frmItemNotes.ShowDialog(this);
if (frmItemNotes.DialogResult == DialogResult.OK)
{
obLimitModifier.Notes = frmItemNotes.Notes;
if (obLimitModifier.Notes != strOldValue)
{
_blnIsDirty = true;
UpdateWindowTitle();
}
}
if (obLimitModifier.Notes != string.Empty)
treLimit.SelectedNode.ForeColor = Color.SaddleBrown;
else
treLimit.SelectedNode.ForeColor = SystemColors.WindowText;
treLimit.SelectedNode.ToolTipText = CommonFunctions.WordWrap(obLimitModifier.Notes, 100);
}
else
{
// the limit modifier has a source
foreach (Improvement objImprovement in _objCharacter.Improvements)
{
if (objImprovement.ImproveType == Improvement.ImprovementType.LimitModifier && objImprovement.SourceName == treLimit.SelectedNode.Tag.ToString())
{
frmNotes frmItemNotes = new frmNotes();
frmItemNotes.Notes = objImprovement.Notes;
string strOldValue = objImprovement.Notes;
frmItemNotes.ShowDialog(this);
if (frmItemNotes.DialogResult == DialogResult.OK)
{
objImprovement.Notes = frmItemNotes.Notes;
if (objImprovement.Notes != strOldValue)
{
_blnIsDirty = true;
UpdateWindowTitle();
}
}
if (objImprovement.Notes != string.Empty)
treLimit.SelectedNode.ForeColor = Color.SaddleBrown;
else
treLimit.SelectedNode.ForeColor = SystemColors.WindowText;
treLimit.SelectedNode.ToolTipText = CommonFunctions.WordWrap(objImprovement.Notes, 100);
}
}
}
}
catch
{
}
}
示例5: tsCyberwareNotes_Click
private void tsCyberwareNotes_Click(object sender, EventArgs e)
{
try
{
bool blnFound = false;
Cyberware objCyberware = _objFunctions.FindCyberware(treCyberware.SelectedNode.Tag.ToString(), _objCharacter.Cyberware);
if (objCyberware != null)
blnFound = true;
if (blnFound)
{
frmNotes frmItemNotes = new frmNotes();
frmItemNotes.Notes = objCyberware.Notes;
string strOldValue = objCyberware.Notes;
frmItemNotes.ShowDialog(this);
if (frmItemNotes.DialogResult == DialogResult.OK)
{
objCyberware.Notes = frmItemNotes.Notes;
if (objCyberware.Notes != strOldValue)
{
_blnIsDirty = true;
UpdateWindowTitle();
}
}
if (objCyberware.Notes != string.Empty)
treCyberware.SelectedNode.ForeColor = Color.SaddleBrown;
else
{
if (objCyberware.Capacity == "[*]")
treCyberware.SelectedNode.ForeColor = SystemColors.GrayText;
else
treCyberware.SelectedNode.ForeColor = SystemColors.WindowText;
}
treCyberware.SelectedNode.ToolTipText = CommonFunctions.WordWrap(objCyberware.Notes, 100);
}
}
catch
{
}
}
示例6: tsAddTechniqueNotes_Click
private void tsAddTechniqueNotes_Click(object sender, EventArgs e)
{
try
{
bool blnFound = false;
MartialArt objMartialArt = new MartialArt(_objCharacter);
MartialArtAdvantage objTechnique = _objFunctions.FindMartialArtAdvantage(treMartialArts.SelectedNode.Tag.ToString(), _objCharacter.MartialArts, out objMartialArt);
if (objTechnique != null)
blnFound = true;
if (blnFound)
{
frmNotes frmItemNotes = new frmNotes();
frmItemNotes.Notes = objTechnique.Notes;
string strOldValue = objTechnique.Notes;
frmItemNotes.ShowDialog(this);
if (frmItemNotes.DialogResult == DialogResult.OK)
{
objTechnique.Notes = frmItemNotes.Notes;
if (objTechnique.Notes != strOldValue)
{
_blnIsDirty = true;
UpdateWindowTitle();
}
}
if (objTechnique.Notes != string.Empty)
treMartialArts.SelectedNode.ForeColor = Color.SaddleBrown;
else
treMartialArts.SelectedNode.ForeColor = SystemColors.WindowText;
treMartialArts.SelectedNode.ToolTipText = CommonFunctions.WordWrap(objTechnique.Notes, 100);
}
}
catch
{
}
}
示例7: imgNotes_Click
private void imgNotes_Click(object sender, EventArgs e)
{
frmNotes frmSpritNotes = new frmNotes();
frmSpritNotes.Notes = _objSpirit.Notes;
frmSpritNotes.ShowDialog(this);
if (frmSpritNotes.DialogResult == DialogResult.OK)
_objSpirit.Notes = frmSpritNotes.Notes;
string strTooltip = "";
if (_objSpirit.EntityType == SpiritType.Spirit)
strTooltip = LanguageManager.Instance.GetString("Tip_Spirit_EditNotes");
else
strTooltip = LanguageManager.Instance.GetString("Tip_Sprite_EditNotes");
if (_objSpirit.Notes != string.Empty)
strTooltip += "\n\n" + _objSpirit.Notes;
tipTooltip.SetToolTip(imgNotes, functions.WordWrap(strTooltip, 100));
}
示例8: tsImprovementNotes_Click
private void tsImprovementNotes_Click(object sender, EventArgs e)
{
try
{
if (treImprovements.SelectedNode.Level > 0)
{
Improvement objImprovement = new Improvement();
foreach (Improvement objCharacterImprovement in _objCharacter.Improvements)
{
if (objCharacterImprovement.SourceName == treImprovements.SelectedNode.Tag.ToString())
{
objImprovement = objCharacterImprovement;
break;
}
}
frmNotes frmItemNotes = new frmNotes();
frmItemNotes.Notes = objImprovement.Notes;
string strOldValue = objImprovement.Notes;
frmItemNotes.ShowDialog(this);
if (frmItemNotes.DialogResult == DialogResult.OK)
{
objImprovement.Notes = frmItemNotes.Notes;
if (objImprovement.Notes != strOldValue)
{
_blnIsDirty = true;
UpdateWindowTitle();
}
}
if (objImprovement.Notes != string.Empty)
{
if (objImprovement.Enabled)
treImprovements.SelectedNode.ForeColor = Color.SaddleBrown;
else
treImprovements.SelectedNode.ForeColor = Color.SandyBrown;
}
else
{
if (objImprovement.Enabled)
treImprovements.SelectedNode.ForeColor = SystemColors.WindowText;
else
treImprovements.SelectedNode.ForeColor = SystemColors.GrayText;
}
treImprovements.SelectedNode.ToolTipText = objImprovement.Notes;
}
}
catch
{
}
}
示例9: tsWeaponNotes_Click
private void tsWeaponNotes_Click(object sender, EventArgs e)
{
try
{
bool blnFound = false;
Weapon objWeapon = (Weapon)_objFunctions.FindEquipment(treWeapons.SelectedNode.Tag.ToString(), _objCharacter.Weapons, typeof(Weapon));
if (objWeapon != null)
blnFound = true;
if (blnFound)
{
frmNotes frmItemNotes = new frmNotes();
frmItemNotes.Notes = objWeapon.Notes;
string strOldValue = objWeapon.Notes;
frmItemNotes.ShowDialog(this);
if (frmItemNotes.DialogResult == DialogResult.OK)
{
objWeapon.Notes = frmItemNotes.Notes;
if (objWeapon.Notes != strOldValue)
{
_blnIsDirty = true;
UpdateWindowTitle();
}
}
if (objWeapon.Notes != string.Empty)
treWeapons.SelectedNode.ForeColor = Color.SaddleBrown;
else
{
if (objWeapon.Category.StartsWith("Cyberware") || objWeapon.Category == "Gear")
treWeapons.SelectedNode.ForeColor = SystemColors.GrayText;
else
treWeapons.SelectedNode.ForeColor = SystemColors.WindowText;
}
treWeapons.SelectedNode.ToolTipText = objWeapon.Notes;
}
}
catch
{
}
}
示例10: imgNotes_Click
private void imgNotes_Click(object sender, EventArgs e)
{
frmNotes frmContactNotes = new frmNotes();
frmContactNotes.Notes = _objContact.Notes;
frmContactNotes.ShowDialog(this);
if (frmContactNotes.DialogResult == DialogResult.OK)
_objContact.Notes = frmContactNotes.Notes;
string strTooltip = "";
if (_objContact.EntityType == ContactType.Enemy)
strTooltip = LanguageManager.Instance.GetString("Tip_Enemy_EditNotes");
else
strTooltip = LanguageManager.Instance.GetString("Tip_Contact_EditNotes");
if (_objContact.Notes != string.Empty)
strTooltip += "\n\n" + _objContact.Notes;
tipTooltip.SetToolTip(imgNotes, strTooltip);
}
示例11: tsComplexFormPluginNotes_Click
private void tsComplexFormPluginNotes_Click(object sender, EventArgs e)
{
bool blnFound = false;
TechProgram objFoundProgram = new TechProgram(_objCharacter);
TechProgramOption objOption = _objFunctions.FindTechProgramOption(treComplexForms.SelectedNode.Tag.ToString(), _objCharacter.TechPrograms, out objFoundProgram);
if (objOption != null)
blnFound = true;
if (blnFound)
{
frmNotes frmItemNotes = new frmNotes();
frmItemNotes.Notes = objOption.Notes;
string strOldValue = objOption.Notes;
frmItemNotes.ShowDialog(this);
if (frmItemNotes.DialogResult == DialogResult.OK)
{
objOption.Notes = frmItemNotes.Notes;
if (objOption.Notes != strOldValue)
{
_blnIsDirty = true;
UpdateWindowTitle();
}
}
if (objOption.Notes != string.Empty)
treComplexForms.SelectedNode.ForeColor = Color.SaddleBrown;
else
treComplexForms.SelectedNode.ForeColor = SystemColors.WindowText;
treComplexForms.SelectedNode.ToolTipText = objOption.Notes;
}
}
示例12: imgNotes_Click
private void imgNotes_Click(object sender, EventArgs e)
{
frmNotes frmPowerNotes = new frmNotes();
frmPowerNotes.Notes = _objPower.Notes;
frmPowerNotes.ShowDialog(this);
if (frmPowerNotes.DialogResult == DialogResult.OK)
_objPower.Notes = frmPowerNotes.Notes;
string strTooltip = LanguageManager.Instance.GetString("Tip_Power_EditNotes");
if (_objPower.Notes != string.Empty)
strTooltip += "\n\n" + _objPower.Notes;
tipTooltip.SetToolTip(imgNotes, strTooltip);
}
示例13: cmdEditWeek_Click
private void cmdEditWeek_Click(object sender, EventArgs e)
{
try
{
ListViewItem objTest = lstCalendar.SelectedItems[0];
}
catch
{
return;
}
CalendarWeek objWeek = new CalendarWeek();
ListViewItem objItem = lstCalendar.SelectedItems[0];
// Find the selected Calendar Week.
foreach (CalendarWeek objCharacterWeek in _objCharacter.Calendar)
{
if (objCharacterWeek.InternalId == objItem.SubItems[2].Text)
{
objWeek = objCharacterWeek;
break;
}
}
frmNotes frmItemNotes = new frmNotes();
frmItemNotes.Notes = objWeek.Notes;
string strOldValue = objWeek.Notes;
frmItemNotes.ShowDialog(this);
if (frmItemNotes.DialogResult == DialogResult.OK)
{
objWeek.Notes = frmItemNotes.Notes;
if (objWeek.Notes != strOldValue)
{
_blnIsDirty = true;
UpdateWindowTitle();
PopulateCalendar();
}
}
}
示例14: imgNotes_Click
private void imgNotes_Click(object sender, EventArgs e)
{
frmNotes frmContactNotes = new frmNotes();
frmContactNotes.Notes = _objContact.Notes;
frmContactNotes.ShowDialog(this);
if (frmContactNotes.DialogResult == DialogResult.OK)
_objContact.Notes = frmContactNotes.Notes;
string strTooltip = "";
strTooltip = LanguageManager.Instance.GetString("Tip_Contact_EditNotes");
if (_objContact.Notes != string.Empty)
strTooltip += "\n\n" + _objContact.Notes;
tipTooltip.SetToolTip(imgNotes, CommonFunctions.WordWrap(strTooltip, 100));
}
示例15: tsVehicleWeaponModNotes_Click
private void tsVehicleWeaponModNotes_Click(object sender, EventArgs e)
{
WeaponMod objMod = _objFunctions.FindVehicleWeaponMod(treVehicles.SelectedNode.Tag.ToString(), _objCharacter.Vehicles);
frmNotes frmItemNotes = new frmNotes();
frmItemNotes.Notes = objMod.Notes;
string strOldValue = objMod.Notes;
frmItemNotes.ShowDialog(this);
if (frmItemNotes.DialogResult == DialogResult.OK)
{
objMod.Notes = frmItemNotes.Notes;
if (objMod.Notes != strOldValue)
{
_blnIsDirty = true;
UpdateWindowTitle();
}
}
if (objMod.Notes != string.Empty)
treVehicles.SelectedNode.ForeColor = Color.SaddleBrown;
else
treVehicles.SelectedNode.ForeColor = SystemColors.WindowText;
treVehicles.SelectedNode.ToolTipText = CommonFunctions.WordWrap(objMod.Notes, 100);
}