Beispiel #1
0
        void ReleaseDesignerOutlets()
        {
            if (TabView != null)
            {
                TabView.Dispose();
                TabView = null;
            }

            if (LabelResx != null)
            {
                LabelResx.Dispose();
                LabelResx = null;
            }

            if (ButtonResx != null)
            {
                ButtonResx.Dispose();
                ButtonResx = null;
            }

            if (ButtonStrings != null)
            {
                ButtonStrings.Dispose();
                ButtonStrings = null;
            }

            if (LabelStrings != null)
            {
                LabelStrings.Dispose();
                LabelStrings = null;
            }
        }
Beispiel #2
0
 private static void LoadLabels()
 {
     try
     {
         _labelStrings = _serializationUtils.Deserialize <LabelStrings>(_labelStringsFilePath);
     }
     catch (Exception)
     {
         _labelStrings = new LabelStrings();
     }
 }