public ProjectEnvironmentContext(ref NDKEnvironment ndk, ref SDKEnvironment sdk, ref JDKEnvironment jdk, ref PythonEnvironment py)
 {
     NdkEnv      = ndk;
     SdkEnv      = sdk;
     JdkEnv      = jdk;
     PythonEnv   = py;
 }
Beispiel #2
0
        public Nm(NDKEnvironment environment, FileInfo binary, string architecture)
        {
            NdkEnvironment  = environment;
            BinaryFile      = binary;
            SelectedArch    = architecture;

            InitializeComponent();
        }
Beispiel #3
0
        public Addr2line(NDKEnvironment environment, FileInfo binary, string architecture)
        {
            NdkEnvironment      = environment;
            BinaryFile          = binary;
            SelectedArch        = architecture;
            SimpleBinaryName    = BinaryFile.Name;

            InitializeComponent();
        }
 private void NdkDirectoryButton_Click(object sender, EventArgs e)
 {
     if (NUtilityGlobalContext.IsValidNDKDirectory(NdkDirectoryTextBox.Text))   //MainWindow.IsValidNDKDirectory(NdkDirectoryTextBox.Text)
     {
         NDKEnvironment thz = new NDKEnvironment(NdkDirectoryTextBox.Text);
         NUtilityGlobalContext.AddNdkEnvironment(thz);
         Instance.SelectedNdkEnvironment = thz;
         MessageBox.Show("NDK directory sucessfully added!");
     }
     else
     {
         DialogResult dialogResult = MessageBox.Show("The path\n" + NdkDirectoryTextBox.Text + "\nDoes not seem to be a valid NDK Directory. Are you sure you want to change the environment?", "Warning", MessageBoxButtons.YesNo);
         if (dialogResult == DialogResult.Yes)
         {
             NDKEnvironment thz = new NDKEnvironment(NdkDirectoryTextBox.Text);
             NUtilityGlobalContext.AddNdkEnvironment(thz);
            Instance.SelectedNdkEnvironment = thz;
         }
     }
 }
Beispiel #5
0
 // --------
 // NdkChooserComboBox Delegates
 private void NdkChooserComboBox_SelectedIndexChanged(object sender, EventArgs e)
 {
     SelectedNdkEnvironment = (NDKEnvironment)NdkChooserComboBox.SelectedItem;
 }
        public static void AddNdkEnvironment(NDKEnvironment rootDirectory)
        {
            if (NDKEnvironments.Contains(rootDirectory))
            {
                return;
            }

            if (MainWindow.Instance.InvokeRequired)
            {
                MainWindow.Instance.Invoke(new NdkDelegate(AddNdkEnvironment), new object[] { rootDirectory });
                return;
            }
            else
            {
                NDKEnvironments.Add(rootDirectory);
                MainWindow.Instance.NdkChooserComboBox.Items.Clear();
                MainWindow.Instance.NdkChooserComboBox.Items.AddRange(NDKEnvironments.ToArray());
                if (MainWindow.Instance.NdkChooserComboBox.SelectedIndex < 0 && MainWindow.Instance.NdkChooserComboBox.Items.Count > 0)
                {
                    MainWindow.Instance.NdkChooserComboBox.SelectedIndex = 0;
                }
            }

        }