Esempio n. 1
0
 private void exactBrowseBtn_Click(object sender, EventArgs e)
 {
     openFileDialog.InitialDirectory = RandNetSettings.ModelCheckingToolDirectory;
     if (openFileDialog.ShowDialog() == DialogResult.OK)
     {
         RandNetSettings.ModelCheckingToolDirectory = Path.GetDirectoryName(openFileDialog.FileName);
         RandNetSettings.Refresh();
         this.exactFilePathTxt.Text = openFileDialog.FileName;
     }
 }
Esempio n. 2
0
        private void SaveSettingsButton_Click(Object sender, EventArgs e)
        {
            RandNetSettings.LoggingDirectory = loggingDirectoryTxt.Text;
            RandNetSettings.StorageDirectory = storageDirectoryTxt.Text;
            //Settings.ConnectionString = textBoxConnStr.Text;
            RandNetSettings.TracingDirectory = tracingDirectoryTxt.Text;
            if (matrixRadio.Checked)
            {
                RandNetSettings.TracingType = TracingType.Matrix;
            }
            else if (neighbourshipRadio.Checked)
            {
                RandNetSettings.TracingType = TracingType.Neighbourship;
            }

            RandNetSettings.Refresh();
            Close();
        }
Esempio n. 3
0
        private void browse_Click(Object sender, EventArgs e)
        {
            switch (Type)
            {
            case FileInputType.File:

                if (openFileDialog.ShowDialog() == DialogResult.OK)
                {
                    locationTxt.Text = openFileDialog.FileName;
                    RandNetSettings.StaticGenerationDirectory = openFileDialog.InitialDirectory;
                    RandNetSettings.Refresh();
                }
                break;

            case FileInputType.Folder:
                if (folderBrowserDlg.ShowDialog() == DialogResult.OK)
                {
                    locationTxt.Text = folderBrowserDlg.SelectedPath;
                    RandNetSettings.StaticGenerationDirectory = folderBrowserDlg.SelectedPath;
                    RandNetSettings.Refresh();
                }
                break;
            }
        }
Esempio n. 4
0
 private void MatrixConvertionWindow_FormClosing(object sender, FormClosingEventArgs e)
 {
     RandNetSettings.Refresh();
 }