Better sorting
This commit is contained in:
parent
96da03128e
commit
28549a9137
@ -56,7 +56,6 @@ namespace EduNetworkBuilder
|
|||||||
{
|
{
|
||||||
cbFormFilter.Items.Add(TFD.Prefix);
|
cbFormFilter.Items.Add(TFD.Prefix);
|
||||||
}
|
}
|
||||||
|
|
||||||
panelTranslateFormItems.Enabled = false;
|
panelTranslateFormItems.Enabled = false;
|
||||||
|
|
||||||
NBSettings mySettings = NB.GetSettings();
|
NBSettings mySettings = NB.GetSettings();
|
||||||
@ -89,6 +88,8 @@ namespace EduNetworkBuilder
|
|||||||
Icon = Properties.Resources.NBIco;
|
Icon = Properties.Resources.NBIco;
|
||||||
lblStatus.Text = "";
|
lblStatus.Text = "";
|
||||||
LanguagifyComponents();
|
LanguagifyComponents();
|
||||||
|
|
||||||
|
cbFormFilter.Text = "Any";
|
||||||
}
|
}
|
||||||
|
|
||||||
private void LanguagifyComponents()
|
private void LanguagifyComponents()
|
||||||
@ -128,11 +129,7 @@ namespace EduNetworkBuilder
|
|||||||
FormData.Add(new TranslationFormData("PPF_", "Person Profile Form. When dealing with faculty / students.", 1));
|
FormData.Add(new TranslationFormData("PPF_", "Person Profile Form. When dealing with faculty / students.", 1));
|
||||||
FormData.Add(new TranslationFormData("RPC_", "Random Puzzle Chooser. The form for generating a random puzzle", 5));
|
FormData.Add(new TranslationFormData("RPC_", "Random Puzzle Chooser. The form for generating a random puzzle", 5));
|
||||||
FormData.Add(new TranslationFormData("RTFW_", "RichText Window. A multipurpose window. Used for displaying help or the puzzle description.", 7));
|
FormData.Add(new TranslationFormData("RTFW_", "RichText Window. A multipurpose window. Used for displaying help or the puzzle description.", 7));
|
||||||
FormData.Sort((a, b) =>
|
FormData.Sort((a, b) => a.Prefix.CompareTo(b.Prefix) );
|
||||||
{
|
|
||||||
if (a.Importance != b.Importance) return a.Importance.CompareTo(b.Importance);
|
|
||||||
return a.Prefix.CompareTo(b.Prefix);
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void ClosingStuff()
|
private void ClosingStuff()
|
||||||
@ -401,6 +398,12 @@ namespace EduNetworkBuilder
|
|||||||
cbFormItemChoice.Items.Add(TI.Key);
|
cbFormItemChoice.Items.Add(TI.Key);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if(cbFormItemChoice.SelectedIndex <0)
|
||||||
|
{
|
||||||
|
if (cbFormItemChoice.Items.Count > 0)
|
||||||
|
cbFormItemChoice.SelectedIndex = 1;
|
||||||
|
}
|
||||||
|
else { cbFormItemChoice.Text = ""; }
|
||||||
}
|
}
|
||||||
|
|
||||||
private TranslationResxFile FileFromLangCode(string code)
|
private TranslationResxFile FileFromLangCode(string code)
|
||||||
|
Loading…
Reference in New Issue
Block a user