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("-------------------------------------------------------------------------------"); } } } }
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(); } } }
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; } } } }