예제 #1
0
        private void About_Load(object sender, System.EventArgs e)
        {
            object[] attributes = Assembly.GetAssembly(typeof(BotCycle)).GetCustomAttributes(typeof(AssemblyCopyrightAttribute), false);
            if (attributes.Length > 0)
            {
                lCopyright.Text = ((AssemblyCopyrightAttribute)attributes[0]).Copyright;
            }

            try
            {
                CustomBox.Text = CustomizationApi.GetAbout();
                CustomBox.SelectAll();
                CustomBox.SelectionAlignment = HorizontalAlignment.Center;
            }
            catch (Exception ex)
            {
                LogMessage.Error(ex);
            }
        }
 public void Init()
 {
     instance = new CustomizationApi();
 }
예제 #3
0
 public CustomizationApiTests()
 {
     instance = new CustomizationApi();
 }