コード例 #1
0
        private void openExistingApplicationButton_Click(object sender, EventArgs e)
        {
            /* SELF NOTE *** NEED TO MAKE SURE ESSENTIAL FILES EXIST IN THE DIRECTORY *** */
            selectedGameGlobal = ApplicationsList.GetItemText(ApplicationsList.SelectedItem);
            DialogResult result = System.Windows.Forms.MessageBox.Show("Application " + "\"" + selectedGameGlobal + "\"" + " is sucessfully loaded.",
                                                                       "Info", MessageBoxButtons.OK, MessageBoxIcon.Information);

            loadedConfigurationLabel.Text = selectedGameGlobal;
        }
コード例 #2
0
        private void openExistingApplicationButton_Click(object sender, EventArgs e)
        {
            selectedGameGlobal = ApplicationsList.GetItemText(ApplicationsList.SelectedItem);
            DialogResult result = System.Windows.Forms.MessageBox.Show("Application " + "\"" + selectedGameGlobal + "\"" + " is sucessfully loaded.",
                                                                       "Info", MessageBoxButtons.OK, MessageBoxIcon.Information);

            loadedConfigurationLabel.Text           = selectedGameGlobal;
            backgroundCalibPictureBox.ImageLocation = Directory.GetCurrentDirectory() + "\\applications\\" + selectedGameGlobal + "\\images\\backgrounds\\default.jpg";
            loadTagInfo();
        }
コード例 #3
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         List <wm.WebApplicationType> appTypes =
             wm.WebApplicationType.GetApplications().FindAll(
                 delegate(wm.WebApplicationType a) { return(a.HasSettings); });
         ApplicationsList.DataSource = appTypes;
         ApplicationsList.DataBind();
     }
 }
コード例 #4
0
        private void DeleteApplicationButton_Click(object sender, EventArgs e)
        {
            string       selected      = ApplicationsList.GetItemText(ApplicationsList.SelectedItem);
            string       selected_path = Directory.GetCurrentDirectory() + @"\applications\" + selected;
            DialogResult result        = System.Windows.Forms.MessageBox.Show("Are you sure to delete " + "\"" + selected + "\"" + " ?",
                                                                              "Warning", MessageBoxButtons.YesNo, MessageBoxIcon.Warning);

            if (result == DialogResult.Yes)
            {
                DeleteFolder(selected_path);
                result = System.Windows.Forms.MessageBox.Show("Application " + "\"" + selected + "\"" + "is sucessfully deleted.",
                                                              "Information", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
                if (result == DialogResult.OK)
                {
                    ApplicationsRefreshButton_Click(DeleteApplicationButton, e);
                }
            }
        }