Ejemplo n.º 1
0
 public Window8(Taask task)
 {
     this.task = task;
     Loaded   += Window8_Loaded;
     InitializeComponent();
     Escape.Content = "Назад";
     ForUser.Text   = "Введите ключ редактирования:";
 }
Ejemplo n.º 2
0
 public Window9(Taask task, Taask oldTask, int qestionNumber)
 {
     InitializeComponent();
     this.tasks         = task;
     this.oldTask       = oldTask;
     this.qestionNumber = qestionNumber + 1;
     Initial(oldTask);
 }
Ejemplo n.º 3
0
 public Window9(Taask task)
 {
     tasks        = new Taask();
     oldTask      = task;
     tasks.author = task.author;
     tasks.name   = task.name;
     InitializeComponent();
     qestionNumber  = 1;
     qestionsAll    = task.qestions;
     tasks.qestion  = new List <string>();
     tasks.answers  = new List <string>();
     tasks.pictures = new List <string>();
     tasks.V1       = new List <string>();
     tasks.V2       = new List <string>();
     tasks.V3       = new List <string>();
     tasks.V4       = new List <string>();
     Initial(task);
 }
Ejemplo n.º 4
0
 public void Initial(Taask task)
 {
     qestionsAll        = task.qestions;
     fd                 = new OpenFileDialog();
     QestionNumber.Text = string.Format("ВОПРОС №{0}", this.qestionNumber);
     try
     {
         this.task.Text = task.qestion[qestionNumber - 1];
         V1.Text        = task.V1[qestionNumber - 1];
         V2.Text        = task.V2[qestionNumber - 1];
         V3.Text        = task.V3[qestionNumber - 1];
         V4.Text        = task.V4[qestionNumber - 1];
         if (V1.Text == task.answers[qestionNumber - 1])
         {
             v1.IsChecked = true;
         }
         else if (V2.Text == task.answers[qestionNumber - 1])
         {
             v2.IsChecked = true;
         }
         else if (V3.Text == task.answers[qestionNumber - 1])
         {
             v3.IsChecked = true;
         }
         else if (V4.Text == task.answers[qestionNumber - 1])
         {
             v4.IsChecked = true;
         }
         if (task.pictures[qestionNumber - 1] != "")
         {
             BitmapImage bi = new BitmapImage();
             bi.CacheOption = BitmapCacheOption.OnLoad;
             stream         = File.Open(task.pictures[qestionNumber - 1], FileMode.Open);
             bi.BeginInit();
             bi.StreamSource = stream;
             bi.EndInit();
             Imagee.Source        = bi;
             AddButton.Visibility = Visibility.Collapsed;
             Buton.Visibility     = Visibility.Visible;
         }
     }
     catch { }
 }
Ejemplo n.º 5
0
 public Window4(Taask task)
 {
     InitializeComponent();
     Loaded   += Window4_Loaded;
     this.task = task;
 }