コード例 #1
0
ファイル: UCError.xaml.cs プロジェクト: xavl369/UGRS
 public UCError(string pStrTitle, string pStrMessage, MaterialDesignThemes.Wpf.PackIconKind pEnmIcon)
 {
     InitializeComponent();
     tblTitle.Text   = pStrTitle;
     tblMessage.Text = pStrMessage;
     imgIcon.Kind    = pEnmIcon;
 }
コード例 #2
0
        public messageBox(string Titulo, string Mensagem, MaterialDesignThemes.Wpf.PackIconKind packIcon, string contentButtonEsquerda, string contentButtonDireita)
        {
            InitializeComponent();

            txtTitle.Text   = Titulo;
            txtMessage.Text = Mensagem;
            pckIcon.Kind    = packIcon;
            genericButton_Esquerda.Content = contentButtonEsquerda;
            genericButton_Direita.Content  = contentButtonDireita;
        }
コード例 #3
0
 public Sheldue(System.Windows.Visibility Notes, MaterialDesignThemes.Wpf.PackIconKind Kind, string TagNoteButton, string para, string work, string teacher, string auditorya, UserNotes note)
 {
     this.Notes         = Notes;
     this.Kind          = Kind;
     this.TagNoteButton = TagNoteButton;
     Para      = para;
     Work      = work;
     Teacher   = teacher;
     Auditorya = auditorya;
     userNotes = note;
 }
コード例 #4
0
 private void SoundIcon_Click(object sender, RoutedEventArgs e)
 {
     if (MaterialSound.Kind == MaterialDesignThemes.Wpf.PackIconKind.VolumeOff)
     {
         MaterialSound.Kind = SoundIcon_Kepper;
         Media.Volume       = Volume_Kepper;
     }
     else
     {
         Volume_Kepper      = Media.Volume;
         SoundIcon_Kepper   = MaterialSound.Kind;
         Media.Volume       = 0;
         MaterialSound.Kind = MaterialDesignThemes.Wpf.PackIconKind.VolumeOff;
     }
 }
コード例 #5
0
 // --------------------------------------------------------------------------
 // Positionne le type, l'icone (et le type de Parser?).
 // --------------------------------------------------------------------------
 public void SetGenre(Genre genre)
 {
     this.RegGenre = genre;
     if (genre == Genre.file)
     {
         Icon = MaterialDesignThemes.Wpf.PackIconKind.File;
     }
     else if (genre == Genre.hive)
     {
         Icon = MaterialDesignThemes.Wpf.PackIconKind.Cube;
     }
     else
     {
         Icon = MaterialDesignThemes.Wpf.PackIconKind.About;
     }
 }
コード例 #6
0
 public SolarniPanel(string jedinstvenoIme, double maksimalnaSnaga)
 {
     if (jedinstvenoIme == null)
     {
         throw new ArgumentNullException("Jedinstveno ime nesme biti null.");
     }
     if (jedinstvenoIme.Trim() == "")
     {
         throw new ArgumentException("Jedinstveno ime mora da sadrzi karaktere.");
     }
     if (maksimalnaSnaga < 0)
     {
         throw new ArgumentException("Maksimalna snaga mora biti pozitivna.");
     }
     JedinstvenoIme  = jedinstvenoIme;
     MaksimalnaSnaga = maksimalnaSnaga;
     Slika           = MaterialDesignThemes.Wpf.PackIconKind.Waze;
 }
コード例 #7
0
 // --------------------------------------------------------------------------
 // Constructeur: fournir le Nom
 // --------------------------------------------------------------------------
 public RecentRegistry(string name)
 {
     this.Name = name;
     if (Name.StartsWith(@"HKLM\"))
     {
         this.RegGenre = Genre.hive;
         this.Icon     = MaterialDesignThemes.Wpf.PackIconKind.Cube;
     }
     else if (Name.EndsWith(".reg"))
     {
         this.RegGenre = Genre.file;
         this.Icon     = MaterialDesignThemes.Wpf.PackIconKind.File;
     }
     else
     {
         this.RegGenre = Genre.other;
         this.Icon     = MaterialDesignThemes.Wpf.PackIconKind.QuestionMarkCircle;
     }
 }
コード例 #8
0
 public Potrosac(string jedinstvenoIme, double potrosnja)
 {
     if (jedinstvenoIme == null)
     {
         throw new ArgumentNullException("Jedinstveno ime nesme biti null.");
     }
     if (jedinstvenoIme.Trim() == "")
     {
         throw new ArgumentException("Jedinstveno ime mora da sadrzi karaktere.");
     }
     if (potrosnja < 0)
     {
         throw new ArgumentException("Potrosnja mora biti pozitivna.");
     }
     JedinstvenoIme = jedinstvenoIme;
     Potrosnja      = potrosnja;
     Upaljen        = false;
     Slika          = MaterialDesignThemes.Wpf.PackIconKind.PowerPlugOffOutline;
 }
コード例 #9
0
 public ElektricniAutomobil(Baterija baterija, string jedinstvenoIme, bool naPunjacu, bool puniSe)
 {
     if (jedinstvenoIme == null)
     {
         throw new ArgumentNullException("Jedinstveno ime nesme biti null.");
     }
     if (jedinstvenoIme.Trim() == "")
     {
         throw new ArgumentException("Jedinstveno ime mora da sadrzi karaktere.");
     }
     if (baterija.MaksimalnaSnaga <= 0 || baterija.Kapacitet <= 0)
     {
         throw new ArgumentException("Maksimalna snaga ili kapacitete moraju biti brojevi veci od 0.");
     }
     JedinstvenoIme = jedinstvenoIme;
     BaterijaAuta   = baterija;
     NaPunjacu      = naPunjacu;
     PuniSe         = puniSe;
     Slika          = MaterialDesignThemes.Wpf.PackIconKind.Battery0;
 }
コード例 #10
0
        public ElektricniAutomobil(string jedinstvenoIme, double maksimalnaSnaga, double kapacitet, int brojBaterije)
        {
            if (jedinstvenoIme == null)
            {
                throw new ArgumentNullException("Jedinstveno ime nesme biti null.");
            }
            if (jedinstvenoIme.Trim() == "")
            {
                throw new ArgumentException("Jedinstveno ime mora da sadrzi karaktere.");
            }
            if (maksimalnaSnaga <= 0 || kapacitet <= 0)
            {
                throw new ArgumentException("Maksimalna snaga ili kapacitete moraju biti brojevi veci od 0.");
            }
            JedinstvenoIme = jedinstvenoIme;
            Baterija baterija = new Baterija("BaterijaAuta" + brojBaterije.ToString(), maksimalnaSnaga, kapacitet);

            BaterijaAuta = baterija;
            NaPunjacu    = false;
            PuniSe       = false;
            Slika        = MaterialDesignThemes.Wpf.PackIconKind.Battery0;
        }
コード例 #11
0
ファイル: Badge.xaml.cs プロジェクト: radoslawik/SummonMe
 public Badge(string text, MaterialDesignThemes.Wpf.PackIconKind iconType)
 {
     InitializeComponent();
     BadgeText.Text = text;
     BadgeIcon.Kind = iconType;
 }