예제 #1
0
파일: frmMain.cs 프로젝트: ywscr/MindMap
        private void button3_Click_1(object sender, EventArgs e)
        {
            pics          pic  = new pics();
            MMViewManeger mmvm = new MMViewManeger(pic, tmr);

            pic.Show();
        }
예제 #2
0
        public pics(MindMapTMR CurrentTMR, MindMapTMR OriginalTMR, MultilevelGenerator.MultiLevel ML, int level, List <pics> PicForms, GoogleImageSearchSettings settings, DrawingSizeMode drawSizeMode)
        {
            _level        = level;
            _settings     = settings;
            _DrawSizeMode = drawSizeMode;
            PicForms.Add(this);
            picForms = PicForms;
            InitializeComponent();
            this.CurrentTMR  = CurrentTMR;
            this.OriginalTMR = OriginalTMR;
            this.ML          = ML;
            this.Height      = 700;
            this.Width       = 1000;
            this.Text        = "Mind Map";

            viewer         = new MMViewManeger(this.panel1, this.CurrentTMR, false, settings, _DrawSizeMode);
            viewer.Control = this.panel1;
            int MaximumY = viewer.getMaximumY();
            int MaximumX = viewer.getMaximumX();

            this.panel1.Height = MaximumY + 40;
            this.panel1.Width  = MaximumX + 40;

            this.AutoScroll = true;
        }
예제 #3
0
        private void Drawing()
        {
            PictureBox    PB   = new PictureBox();
            MMViewManeger mmvm = new MMViewManeger(pictureBox1, tmr);

            groupBox2.Visible      = true;
            dockContainer1.Visible = true;
            dockControl1.Visible   = true;
            dockControl2.Visible   = true;
            dockControl3.Visible   = true;
        }
예제 #4
0
파일: Form3.cs 프로젝트: ywscr/MindMap
        private void Drawing()
        {
            TabPage tp = new TabPage();

            MMViewManeger mmvm = new MMViewManeger(tp, tmr, false);

            tp.Text       = "Mind Map";
            tp.AutoScroll = true;
            tabControl1.TabPages.Add(tp);


            // pics pic = new pics();
            //MMViewManeger mmvm = new MMViewManeger(pic, tmr);
            // pic.Show();
        }
예제 #5
0
 private void btnLoad_Click(object sender, EventArgs e)
 {
     if (this.openFileDialog1.ShowDialog() == DialogResult.OK)
     {
         viewer.Clear();
         IFormatter formatter = new BinaryFormatter();
         Stream     file      = openFileDialog1.OpenFile();
         viewer         = (MMViewManeger)formatter.Deserialize(file);
         viewer.Control = this.pnlDrawing;
         tmr            = viewer._TMR;
         this.UpdateCmbNouns();
         this.UpdateCmbVerbs();
         file.Close();
     }
 }
예제 #6
0
        public FrmNewTMR(mmTMR.MindMapTMR TMR, mmTMR.MindMapTMR OriginalTMR, MultilevelGenerator.MultiLevel ML)
        {
            InitializeComponent();
            this.CurrentTMR  = TMR;
            this.OriginalTMR = OriginalTMR;
            this.ML          = ML;

            viewer         = new MMViewManeger(this.panel1, this.CurrentTMR, false);
            viewer.Control = this.panel1;
            int MaximumY = viewer.getMaximumY();
            int MaximumX = viewer.getMaximumX();

            this.panel1.Height = MaximumY + 40;
            this.panel1.Width  = MaximumX + 40;

            this.AutoScroll = true;
        }
예제 #7
0
파일: Form1.cs 프로젝트: ywscr/MindMap
        private void Form1_Load(object sender, EventArgs e)
        {
            nouns = new List <NounFrame>();
            verbs = new List <VerbFrame>();
            MindMapTMR tmr = new MindMapTMR();

            tmr.Nounframes = nouns;
            tmr.VerbFrames = verbs;
            viewer         = new MMViewManeger(this.pnlDrawing, tmr);

            /*
             * for (int i = 0; i < 3; i++)
             * {
             *      this.cmbDomainRelations.Items.Add(((DomainRelationType)i).ToString());
             * }
             * //nouns[0].*/
/*
 *          StreamReader sr = new StreamReader(@"Formatted OntoSem\Get.txt");
 *                      string str = null;
 *                      int x = 0;
 *          List<string> items = new List<string>();
 *          while ((str = sr.ReadLine()) != null)
 *          {
 *              //if (++x < 2000)
 *              {
 *                  if (str == "")
 *                      continue;
 *                  items.Add(str);
 *                  //cmbConceptNames.Items.Add(str);
 *                  //cmbFirstConcept.Items.Add(str);
 *                  //cmbSecondConcept.Items.Add(str);
 *              }
 *          }
 *
 *          string[] itemsArr = items.ToArray();
 *                      //cmbConceptNames.Items.AddRange(items);
 *                      //cmbFirstConcept.Items.AddRange(items);
 *                      //cmbSecondConcept.Items.AddRange(items);
 *                      sr.Close();
 *          cmbNounConcepts.Items.AddRange(itemsArr);
 *          cmbVerbConcepts.Items.AddRange(itemsArr);
 *                      //TODO: make loading ontology from resource file from resource file*/
            onto = new Ontology(@"Formatted OntoSem");
        }