Beispiel #1
0
 internal PurchaseProcess(Guid purchaseId, PurchaseStage purchaseStage, Guid maker, string comments)
 {
     PurchaseId    = purchaseId;
     PurchaseStage = purchaseStage;
     Maker         = maker;
     DateTime      = DateTimeRangeExtensions.GetDate();
     Comments      = comments ?? throw new ArgumentNullException(nameof(comments));
 }
Beispiel #2
0
 private void statusesDataGrid_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
 {
     if (e.RowIndex >= 0)
     {
         StartLoading();
         var           dg     = (DataGridView)sender;
         var           itemID = dg.Rows[e.RowIndex].Cells["id"].Value.ToString();
         PurchaseStage status = Program.dataManager.GetPurchaseStage(itemID);
         ShowStatus(status);
         FinishLoading();
     }
 }
Beispiel #3
0
        private void ShowStatus(PurchaseStage stage)
        {
            StageEditForm form = new StageEditForm(stage);

            Hide();
            var result = form.ShowDialog();

            Show();
            if (result == DialogResult.OK)
            {
                ReloadTable();
            }
        }
    public void SetStage(
        LevelSelectCreator levelSelect,
        SpecialStage stage,
        GameObject stageSelectActivateTarget,
        GameObject stageSelectDeactivateTarget,
        PurchaseStage purchaseStage,
        GameObject rewardPopUp)
    {
        this.specialStage       = stage;
        this.Label.text         = this.specialStage.Description;
        this.name               = this.specialStage.StageId;
        this.levelSelectCreator = levelSelect;
        this.stageSelectOverrideActivateTarget   = stageSelectActivateTarget;
        this.stageSelectOverrideDeactivateTarget = stageSelectDeactivateTarget;
        this.purchaseStagePopUp = purchaseStage;
        this.rewardedOnlyPopUp  = rewardPopUp;

        this.SetSpecialStageCompletedIcons();
    }
Beispiel #5
0
        public StageEditForm(PurchaseStage stage) : base()
        {
            InitializeComponent();
            InitializeAuraForm();
            _stage = stage;

            creator = new CommandStringCreator("Stages", stage.id.ToString());

            if (stage.id < 1)
            {
                stage.isActual = 1;
            }

            else
            {
                stageName.Text = stage.statusName;
            }

            isActual.SelectedIndex = stage.isActual;
            creator.AddChange(isActual.Name, isActual.SelectedIndex.ToString());
        }
Beispiel #6
0
 public void AddProcess(PurchaseStage purchaseStage, Guid maker, string comments)
 => Processes.Add(new PurchaseProcess(this.Id, purchaseStage, maker, comments));