private void Close_Click(object sender, RoutedEventArgs e)
 {
     if (spl != null)
     {
         PassValuesEventArgs args = new PassValuesEventArgs(spl);
         PassValuesEvent(this, args);
     }
     //  MessageBox.Show("谢谢使用.. 布里兹");
     this.Close();
 }
        private void Button_Click_1(object sender, RoutedEventArgs e)
        {
            spl = new SPL();
            spl.GenerateSample();

            MessageBox.Show("使用样本模型成功 ◑▂◐");

            PassValuesEventArgs args = new PassValuesEventArgs(spl);

            PassValuesEvent(this, args);

            this.Close();
        }
        private void Button_Click(object sender, RoutedEventArgs e)
        {
            MessageBox.Show("开始-生成. 布-里 ●▂● ");
            spl               = new SPL();
            spl.maxFeature    = int.Parse(max.Text);
            spl.maxConstraint = int.Parse(constraint.Text);
            spl.RandomlyGenerate();
            spl.RandomConstraint();

            MessageBox.Show("生成-完毕 布里布里◑▂◐\n共生成节点" + spl.aFeaturePoint.Count + "个\n约束条件" + spl.aConstraint.Count + "条.. 兹--");

            PassValuesEventArgs args = new PassValuesEventArgs(spl);

            PassValuesEvent(this, args);

            this.Close();
        }
Example #4
0
 //---   Receive values from Generator subindow
 private void ReceiveValues(object sender, PassValuesEventArgs e)
 {
     this.spl = e.spl;
     SetArgsWithSPL();
 }