示例#1
0
 private void butCreate_Click(object sender, EventArgs e)
 {
     if (CurrentStand.isComplete())
     {
         plot.exportFile();
         CurrentStand.newStand();
         plot = new Plot(CurrentStand.standNum, CurrentStand.plotNum);
         loadComponents();
     }
     else
     {
         if (CurrentStand.standNum == 1)
         {
             this.Close();
         }
         try
         {
             CurrentStand.previousStand();
             loadComponents();
         }catch (ObjectDisposedException exception)
         {
             Application.Exit();
         }
     }
 }
示例#2
0
        public ChoseStand(CoutingTable countingTable, Plot plot)
        {
            this.countingTable = countingTable;
            this.plot = plot;

            InitializeComponent();
        }
示例#3
0
        public SiteClass(Plot plot, string species, int speciesIndex, CoutingTable countingTable)
        {
            this.plot = plot;
            this.species = species;
            this.speciesIndex = speciesIndex;
            this.countingTable = countingTable;

            InitializeComponent();
        }
示例#4
0
 private void butDone_Click(object sender, EventArgs e)
 {
     if (CurrentStand.isComplete())
     {
         CurrentStand.save();
         plot = new Plot(CurrentStand.standNum, CurrentStand.plotNum);
         countingTable.setPlot(plot);
         this.Close();
     }
 }
示例#5
0
        private void butNewPlot_Click(object sender, EventArgs e)
        {
            plot.exportFile();

            CurrentStand.plotNum++;
            CurrentStand.isChanged = true;
            CurrentStand.save();
            plot = new Plot(CurrentStand.standNum, CurrentStand.plotNum);
            countingTable.setPlot(plot);
            loadComponents();
        }
示例#6
0
 private void CoutingTable_Load(object sender, EventArgs e)
 {
     plot = new Plot(1, 1);
     Form choseStand = new ChoseStand(this, plot);
     choseStand.Show();
     choseStand.TopMost = true;
 }
示例#7
0
        public void setPlot(Plot newPlot)
        {
            this.plot = newPlot;

            loadComponents();
        }
示例#8
0
 public Comment(Plot passedPlot)
 {
     this.plot = passedPlot;
     InitializeComponent();
 }
示例#9
0
 public ChoosePlot(Plot passedPlot, CoutingTable countingTable)
 {
     this.countingTable = countingTable;
     this.plot = passedPlot;
     InitializeComponent();
 }