Example #1
0
        private void Form1_Load(object sender, EventArgs e)
        {
            UpdateApplication();
            closeGraphToolStripMenuItem.Enabled = false;

            try
            {
                if (!Directory.Exists(DocumentRoot))
                {
                    Directory.CreateDirectory(DocumentRoot);
                }
            }
            catch
            {
                MessageBox.Show("error during document root creation");
            }
            CheckJava();

            LoadConfig();

            ConnectForm.ConnectFuseki();


            UpdateListViewGraph();

            //NewMethod();
        }
Example #2
0
        private void buttonOk_Click(object sender, EventArgs e)
        {
            MainForm.config.GlobalPrefix      = textBoxGraphPrefix.Text;
            MainForm.config.FusekiServer      = textBoxFusekiServer.Text;
            MainForm.config.FusekiPort        = (int)numericUpDownFusekiPort.Value;
            MainForm.config.ShowFusekiConsole = checkBoxShowFusekiConsole.Checked;
            MainForm.config.SetEditorFont(fontDialog1.Font);

            ConnectForm.ConnectFuseki();

            MainForm.config.PredicateList.Clear();
            foreach (ListViewItem item in listViewPredicate.Items)
            {
                MainForm.config.PredicateList.Add(new ConfigPredicate {
                    Url = item.Text, Usage = item.Checked
                });
            }

            MainForm.SaveConfig();
            DialogResult = DialogResult.OK;
            Close();
        }