Example #1
0
 private void buttonRebuild_Click(object sender, EventArgs e)
 {
     if (listBoxProject.SelectedIndex >= 0)
     {
         string name = listBoxProject.SelectedItem as string;
         if (!string.IsNullOrEmpty(name))
         {
             Tools.FileSystem.Clear();
             Config.Global.Project = name;
             SetPlatform();
             SetConfigure();
             try
             {
                 BearBuildTool.ClaenProject();
                 BearBuildTool.CompileProject();
             }
             catch (Exception ex)
             {
                 Console.WriteLine("-------------------------Критическая ошибка при сборке-------------------------");
                 Console.Write(ex.ToString());
                 Console.WriteLine("-------------------------------------------------------------------------------");
             }
         }
     }
 }
Example #2
0
 private void buttonClean_Click(object sender, EventArgs e)
 {
     if (listBoxProject.SelectedIndex >= 0)
     {
         string name = listBoxProject.SelectedItem as string;
         if (!string.IsNullOrEmpty(name))
         {
             Tools.FileSystem.Clear();
             Config.Global.Project = name;
             SetPlatform();
             SetConfigure();
             BearBuildTool.ClaenProject();
         }
     }
 }
Example #3
0
        private void buttonGenerateProject_Click(object sender, EventArgs e)
        {
            if (listBoxProject.SelectedIndex >= 0)
            {
                string name = listBoxProject.SelectedItem as string;
                if (!string.IsNullOrEmpty(name))
                {
                    switch (comboBoxTranslator.SelectedIndex)
                    {
                    case 0:
                        BearBuildTool.GenerateProjectFileVS(name);
                        break;

                    case 1:
                        BearBuildTool.GenerateProjectFileVC(name);
                        break;
                    }
                }
            }
        }