コード例 #1
0
ファイル: FeatsTab.cs プロジェクト: KyleADOlson/CombatManager
        void EditButtonClicked(object sender, EventArgs e)
        {
            if (DisplayItem != null && DisplayItem.IsCustom)
            {
                Feat clone = (Feat)DisplayItem.Clone();

                FeatEditorDialog dlg = new FeatEditorDialog(clone);
                dlg.OKClicked += (object se, EventArgs ea) =>
                {
                    DisplayItem.CopyFrom(clone);
                    Feat.UpdateCustomFeat(DisplayItem);
                    Filter(true);
                };
                MainUI.MainView.AddSubview(dlg.View);
            }
        }