示例#1
0
 public ModalWindow(Typ typ)
 {
     InitializeComponent();
     this.Owner  = App.Current.MainWindow;
     this.Title += " " + typ.ToString();
     dateTb.Text = DateTime.Now.ToString("yyyy-MM-dd");
     this.typ    = typ;
     UstawTekstPolaNumeru(typ);
 }
示例#2
0
        public override string ToString()
        {
            switch (Typ)
            {
            case GriffbewertungsTyp.Punkt:
                return(Punktzahl.ToString());

            default:
                return(Typ.ToString().Substring(0, 1));
            }
        }