Exemplo n.º 1
0
        public string EnterFunc(Button theBTN, requstStutus theStatus, double h, double b, int Q)
        {
            switch (theStatus)
            {
            case requstStutus.show:
                return($"כמות במלאי {BoxM.GetQunt(new Box(h, b))}");

            case requstStutus.add:
                BoxM.AddBox(new Box(h, b), Q);
                return("התווסף בהצלחה");

            case requstStutus.delet:
                BoxM.SellBox(new Box(h, b), Q);
                return("נמכר בהצלחה");
            }
            return(default);
Exemplo n.º 2
0
 public MainWindowModel()
 {
     BoxM theman = new BoxM();
 }