Exemplo n.º 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();
         }
     }
 }
Exemplo n.º 2
0
        public ChoseStand(CoutingTable countingTable, Plot plot)
        {
            this.countingTable = countingTable;
            this.plot = plot;

            InitializeComponent();
        }
Exemplo n.º 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();
        }
Exemplo n.º 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();
     }
 }
Exemplo n.º 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();
        }
Exemplo n.º 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;
 }
Exemplo n.º 7
0
        public void setPlot(Plot newPlot)
        {
            this.plot = newPlot;

            loadComponents();
        }
Exemplo n.º 8
0
 public Comment(Plot passedPlot)
 {
     this.plot = passedPlot;
     InitializeComponent();
 }
Exemplo n.º 9
0
 public ChoosePlot(Plot passedPlot, CoutingTable countingTable)
 {
     this.countingTable = countingTable;
     this.plot = passedPlot;
     InitializeComponent();
 }