private void btnAddCooperation_Click(object sender, RoutedEventArgs e) { object o = PopUpAddCooperation.ShowPopUp(GameObject.GetInstance().HumanAirline, this.Airport.Airport); if (o != null && o is CooperationType) { CooperationType type = (CooperationType)o; if (type.Price < GameObject.GetInstance().HumanAirline.Money) { Cooperation cooperation = new Cooperation(type, GameObject.GetInstance().HumanAirline, GameObject.GetInstance().GameTime); this.Airport.addCooperation(cooperation); } else { WPFMessageBox.Show(Translator.GetInstance().GetString("MessageBox", "2232"), string.Format(Translator.GetInstance().GetString("MessageBox", "2232", "message")), WPFMessageBoxButtons.Ok); } } }
public Cooperation(CooperationType relation, string identifier = null, string name = null, string description = null, string guard = null, ProcessStep source = null, ProcessStep target = null) : this(identifier, name, description, guard, source, target) { Relation = relation; }