public UCError(string pStrTitle, string pStrMessage, MaterialDesignThemes.Wpf.PackIconKind pEnmIcon) { InitializeComponent(); tblTitle.Text = pStrTitle; tblMessage.Text = pStrMessage; imgIcon.Kind = pEnmIcon; }
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; }
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; }
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; } }
// -------------------------------------------------------------------------- // 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; } }
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; }
// -------------------------------------------------------------------------- // 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; } }
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; }
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; }
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; }
public Badge(string text, MaterialDesignThemes.Wpf.PackIconKind iconType) { InitializeComponent(); BadgeText.Text = text; BadgeIcon.Kind = iconType; }