Beispiel #1
0
        private LaborControl wrap(Labor l)
        {
            var ret = new LaborControl(l);

            _controlDict[l]   = ret;
            ret.LaborChanged += OnLaborChanged;
            return(ret);
        }
Beispiel #2
0
        private void newLaborButton_Click(object sender, EventArgs e)
        {
            var newLabor = new Labor("???");

            profile.labors.Add(newLabor);

            var cont = wrap(newLabor);

            laborListFlowLayoutPanel.Controls.Add(cont);

            recalcOdds();

            resetSaveTimer();
        }
Beispiel #3
0
 public LaborControl(Labor inner)
 {
     this.inner = inner;
     InitializeComponent();
 }
Beispiel #4
0
 public LaborChangedEventArgs(Labor labor, LaborChange change)
 {
     this.labor  = labor;
     this.change = change;
 }
Beispiel #5
0
 public LaborControl GetControl(Labor l)
 {
     return(_controlDict[l]);
 }