private void InitializeUsers() { for (int x = 0; x < lMog.GetProject().GetUsers().Count; x++) { MOG_User user = (MOG_User)lMog.GetProject().GetUsers()[x]; this.TaskNewUsersListBox.Items.Add(user.GetUserName()); } }
private void InitializePlatforms() { MilestonePlatformComboBox.Items.Clear(); // Add a item for every platform ArrayList platforms = mMog.GetProject().GetPlatforms(); for (int p = 0; p < platforms.Count; p++) { MOG_Platform platform = (MOG_Platform)platforms[p]; MilestonePlatformComboBox.Items.Add(platform.mPlatformName); } //MilestonePlatformComboBox.Items.Add("All"); }
public void Update() { if (DosUtils.FileExist(string.Concat(mMog.GetProject().GetProjectPath(), "\\Surveys\\Contents.info"))) { MOG_Ini contentsInfo = new MOG_Ini(string.Concat(mMog.GetProject().GetProjectPath(), "\\Surveys\\Contents.info")); mainForm.SurveyListView.Items.Clear(); for (int i = 0; i < contentsInfo.CountKeys("SURVEYS"); i++) { string SurveyName = contentsInfo.GetKeyNameByIndex("SURVEYS", i); ListViewItem item = new ListViewItem(contentsInfo.GetString(SurveyName, "Title")); item.SubItems.Add(contentsInfo.GetString(SurveyName, "Time")); item.SubItems.Add(contentsInfo.GetString(SurveyName, "Category")); item.SubItems.Add(contentsInfo.GetString(SurveyName, "Status")); item.SubItems.Add(contentsInfo.GetString(SurveyName, "Priority")); mainForm.SurveyListView.Items.Add(item); } } }
public void LoadSyncFilePrefs() { string prefsSection = mMog.GetProject().GetProjectName() + "." + mMog.GetActivePlatform().mPlatformName; mUserSyncFile = guiUserPrefs.Load(prefsSection, "UserSyncFile"); mProjectSyncFile = guiUserPrefs.Load(prefsSection, "ProjectSyncFile"); }
private void RunXbox() { string output = ""; string xboxExe = ""; string Autoplay = ""; MOG_Ini buttonDefaults = null; if (mainForm.gMog.IsProject()) { // Get the project defaults string projectDefaultButtonsFile = mainForm.gMog.GetProject().GetProjectToolsPath() + "\\" + mainForm.gMog.GetProject().GetProjectName() + ".Client.Buttons.Default.info"; if (DosUtils.FileExist(projectDefaultButtonsFile)) { buttonDefaults = new MOG_Ini(projectDefaultButtonsFile); } } // Do we run autoPlay? if (mainForm.AssetManagerLocalDataXboxAutoplayCheckBox.Checked) { Autoplay = string.Concat(mainForm.AssetManagerLocalDataXboxUserMapComboBox.Text, "?Game=EonEngine.EonGameInfo -NoMenu"); } // Use 'default' as user, if the Default checkbox is checked. This is used for the programmers who debug their code using the default.xbe if (mainForm.AssetManagerLocalDataXboxDefaultCheckBox.Checked) { xboxExe = string.Concat("xE:\\", mMog.GetProject().GetProjectName(), "\\default.xbe", " ", Autoplay); } else { xboxExe = string.Concat("xE:\\", mMog.GetProject().GetProjectName(), ".", mainForm.gMog.GetUser().GetUserName(), "\\default.xbe", " ", Autoplay); } // Get the tool listed on the startup page string command = ""; if (buttonDefaults != null) { if (buttonDefaults.SectionExist(mMog.GetProject().GetProjectName() + ".Buttons")) { if (buttonDefaults.KeyExist(mMog.GetProject().GetProjectName() + ".Buttons", "Run")) { command = buttonDefaults.GetString(mMog.GetProject().GetProjectName() + ".Buttons", "Run"); } } } if (command.IndexOf("[ProjectPath]") != -1) { command = string.Concat(command.Substring(0, command.IndexOf("[")), mMog.GetActivePlatform().mPlatformTargetPath, command.Substring(command.IndexOf("]") + 1)); } // Make sure the tool we need exits if (DosUtils.FileExist(command)) { if (guiCommandLine.ShellExecute(command, string.Concat("/x ", mTargetConsole, " ", xboxExe), ProcessWindowStyle.Hidden, ref output) != 0) { MOG_REPORT.ShowMessageBox("XBox Tools", string.Concat(output), MessageBoxButtons.OK); } } else { MOG_REPORT.ShowMessageBox("XBox Tools", string.Concat("This tool is missing, have you updated to the latest version?"), MessageBoxButtons.OK); } }